We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c7e1d commit ad061efCopy full SHA for ad061ef
util/gff3_file_to_proteins.pl
@@ -124,6 +124,13 @@
124
next;
125
}
126
127
+
128
+ my $seqlen = length($seq);
129
+ if ($seq =~ /\*$/) {
130
+ $seqlen -= 1; # dont count stop codon
131
+ }
132
133
134
$seq =~ s/(\S{60})/$1\n/g; # make fasta format
135
chomp $seq;
136
@@ -148,12 +155,7 @@
148
155
#if ($seq_type eq 'prot' || $seq_type eq 'CDS') { # this was a bad idea, just use the original id.
149
156
# $isoform_id = "cds.$isoform_id";
150
157
#}
151
-
152
- $seqlen = length($seq);
153
- if ($seq =~ /\*$/) {
154
- $seqlen -= 1; # dont count stop codon
- }
158
159
print ">$isoform_id $gene_id $locus_string $com_name len:$seqlen $asmbl_id:$model_lend-$model_rend($orientation)\n$seq\n";
160
161
0 commit comments