Skip to content

Commit

Permalink
Filter new abaumannii 'species' column (Issue #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseemann committed Oct 27, 2015
1 parent d1121b0 commit 81c0b0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/mlst
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ sub scheme_alleles {
my $header = <TSV>;
chomp $header;
my @x = split m/\t/, $header;
pop(@x) if $x[-1] eq 'clonal_complex';
pop(@x) if $x[-1] =~ m/species/;
pop(@x) if $x[-1] =~ m/clonal_complex/;
return @x[1 .. $#x];
}

Expand All @@ -160,7 +161,7 @@ sub load_scheme {
next;
}
if ($. == 1) {
@gene = grep { $_ !~ m/(^ST|complex|clade)/ } @x;
@gene = grep { $_ !~ m/(^ST|complex|clade|species)/ } @x;
$st{GENES} = [ @gene ];
print "Allelles: @gene\n" if $verbose;
}
Expand Down

0 comments on commit 81c0b0f

Please sign in to comment.