Skip to content

Commit e0d6fa2

Browse files
authored
Merge pull request #109 from Rfam/rfamseq-acc-len
Fixes max lengths for rfamseq_acc and accession in Rfamseq table
2 parents 2666f78 + bafbf39 commit e0d6fa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rfam/Schemata/RfamLive/ResultSet/Rfamseq.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ sub updateRfamseqFromFamilyObj {
111111

112112
# enforce maximum number of characters for each value,
113113
# for overflows in description we just truncate, overflow in others are fatal
114-
if(length($seed_name) > 20) { croak "ERROR in $sub_name, rfamseq_acc $seed_name exceeds 20 characters"; }
115-
if(length($accession) > 15) { croak "ERROR in $sub_name, accession $accession exceeds 15 characters"; }
114+
if(length($seed_name) > 25) { croak "ERROR in $sub_name, rfamseq_acc $seed_name exceeds 25 characters"; }
115+
if(length($accession) > 25) { croak "ERROR in $sub_name, accession $accession exceeds 25 characters"; }
116116
if(length($version) > 6) { croak "ERROR in $sub_name, version $version exceeds 6 characters"; }
117117
if(length($ncbi_id) > 10) { croak "ERROR in $sub_name, ncbi_id $ncbi_id exceeds 10 characters"; }
118118
if(length($length) > 10) { croak "ERROR in $sub_name, length $length exceeds 10 characters"; }

0 commit comments

Comments
 (0)