Skip to content

Commit

Permalink
removed debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkc committed Dec 7, 2023
1 parent 63200b2 commit 75a65e7
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions prp/parse/phenotype/resfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,22 @@ def _parse_resfinder_amr_genes(
category = ElementType(res_category)

# store results
try:
gene = ResistanceGene(
gene_symbol=info["name"],
accession=info["ref_acc"],
depth=info["depth"],
identity=info["identity"],
coverage=info["coverage"],
ref_start_pos=info["ref_start_pos"],
ref_end_pos=info["ref_end_pos"],
ref_gene_length=info["ref_seq_length"],
alignment_length=info["alignment_length"],
phenotypes=info["phenotypes"],
ref_database=info["ref_database"][0],
ref_id=info["ref_id"],
element_type=category,
element_subtype=_assign_res_subtype(info, category),
)
except:
import pdb; pdb.set_trace()
gene = ResistanceGene(
gene_symbol=info["name"],
accession=info["ref_acc"],
depth=info["depth"],
identity=info["identity"],
coverage=info["coverage"],
ref_start_pos=info["ref_start_pos"],
ref_end_pos=info["ref_end_pos"],
ref_gene_length=info["ref_seq_length"],
alignment_length=info["alignment_length"],
phenotypes=info["phenotypes"],
ref_database=info["ref_database"][0],
ref_id=info["ref_id"],
element_type=category,
element_subtype=_assign_res_subtype(info, category),
)
results.append(gene)
return results

Expand Down

0 comments on commit 75a65e7

Please sign in to comment.