Skip to content

Commit

Permalink
Fix output bug of clclassseqv
Browse files Browse the repository at this point in the history
  • Loading branch information
astanabe committed Apr 7, 2022
1 parent 5fed601 commit 187c861
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clclassseqv.pl
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ sub makeConcatenatedFiles {
$filehandleinput1 = &readFile($inputfiles[$i]);
{
my $otuname;
my $tempignoreotuseq;
while (<$filehandleinput1>) {
s/\r?\n?$//;
s/;size=\d+;*//g;
Expand All @@ -377,12 +378,15 @@ sub makeConcatenatedFiles {
elsif ($otuname && exists($ignoreotulist{$otuname}) && /^([^>].*)$/) {
my $tempseq = $1;
$tempseq =~ s/[^A-Za-z]//g;
$ignoreotuseq{$otuname} .= $tempseq;
$tempignoreotuseq .= $tempseq;
}
if ($otuname && !exists($ignoreotulist{$otuname})) {
print($filehandleoutput2 "$_\n");
}
}
if (!exists($ignoreotuseq{$otuname})) {
$ignoreotuseq{$otuname} = $tempignoreotuseq;
}
}
close($filehandleinput1);
}
Expand Down

0 comments on commit 187c861

Please sign in to comment.