From 81c0b0ff6fec6a0440fa5592da5a45b59621bd8d Mon Sep 17 00:00:00 2001 From: Torsten Seemann Date: Tue, 27 Oct 2015 13:45:41 +1100 Subject: [PATCH] Filter new abaumannii 'species' column (Issue #8) --- bin/mlst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mlst b/bin/mlst index e363b002..ee55b202 100755 --- a/bin/mlst +++ b/bin/mlst @@ -137,7 +137,8 @@ sub scheme_alleles { my $header = ; 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]; } @@ -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; }