Skip to content

Commit 3e58aa0

Browse files
committed
updating branch with latest origin/master
2 parents 1496dea + 486dd5b commit 3e58aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

taxon_id_scripts/retrieve_top_blast_hits_LCA_for_each_sequence.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
my $is_diamond_output = $ARGV[4]; # if 1, treats input file with blast output as modified DIAMOND output; format: qseqid stitle (part 1: accession number) stitle (part 2: sequence name) taxonid qlen slen length pident qcovhsp evalue
5050

5151

52-
my $NO_DATA = qr/(NA|N\/A)/; # compiled (qr//) regex matching either 'NA' or 'N/A'
52+
my $NO_DATA = "NA";
5353
my $NEWLINE = "\n";
5454
my $DELIMITER = "\t";
5555
my $TAXONDUMP_DELIMITER = "\t[|]\t"; # nodes.dmp and names.dmp
@@ -206,7 +206,7 @@
206206
my %matched_taxon_ids_set = ();
207207
foreach my $matched_taxon_id(@matched_taxon_ids)
208208
{
209-
if ($matched_taxon_id !~ $NO_DATA) {
209+
if($matched_taxon_id ne $NO_DATA)
210210
{
211211
$matched_taxon_ids_set{$matched_taxon_id} = 1;
212212
}

0 commit comments

Comments
 (0)