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 9f93e25 commit f97d3a8Copy full SHA for f97d3a8
LABEL_RES/scripts/interleavedSamples.pl
@@ -196,16 +196,15 @@
196
my $fasta_record;
197
while ( $fasta_record = <$IN> ) {
198
chomp($fasta_record);
199
- my @lines = split( /\r\n|\n|\r/smx, $fasta_record );
200
- my $header = shift(@lines);
201
- if ( defined $underscoreHeader ) { $header =~ tr/ /_/; }
+ my @lines = split( /\r\n|\n|\r/smx, $fasta_record );
+ my $header = shift(@lines);
202
my $sequence = lc( join( q{}, @lines ) );
203
204
- my $length = length($sequence);
205
- if ( $length == 0 ) {
+ if ( length($sequence) == 0 ) {
206
next;
207
}
208
+ if ( defined $underscoreHeader ) { $header =~ tr/ /_/; }
209
my $index = $id % $numberGroups;
210
$id++;
211
$count[$index]++;
0 commit comments