Skip to content

Commit

Permalink
CARD ensure is AMR Gene Family
Browse files Browse the repository at this point in the history
  • Loading branch information
tseemann committed Sep 10, 2019
1 parent 56be55b commit 336e3b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/abricate-get_db
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ sub get_card {
# ARO_category => {
# 'category_aro_name' => 'cephalosporin',
# 'category_aro_class_name' => 'Drug Class',
my $is_amr_gene = 0;
my @abx;
for my $key (keys $g->{ARO_category}->%*) {
my $c = $g->{ARO_category}{$key};
Expand All @@ -455,8 +456,11 @@ sub get_card {
$abx =~ s/\s/_/g;
push @abx, $abx;
}
if ($c->{category_aro_class_name} eq 'AMR Gene Family') {
$is_amr_gene++;
}
}
#msg("CARD | $id | ", Dumper($g->{ARO_category}) );
#err("CARD | $id | ", Dumper($g->{ARO_category}) ) unless $is_amr_gene;
#msg("ABX=$_") for @abx;

$id =~ s/\s+/_/g;
Expand Down

0 comments on commit 336e3b0

Please sign in to comment.