Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zwets committed Dec 30, 2024
1 parent 121e9ef commit 9f758db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hAMRonization/AmrFinderPlusIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, source, metadata):
header = next(fh).strip().split("\t")
try:
first_result = next(fh)
prot_id = header.index("Protein identifier")
prot_id = header.index("Protein identifier")
if first_result.strip().split("\t")[prot_id] == "NA":
self.field_mapping = nucleotide_field_mapping
else:
Expand Down
2 changes: 1 addition & 1 deletion hAMRonization/hAMRonizedResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __post_init__(self):
input_file_name = getattr(self, "input_file_name")
input_file_name = os.path.basename(input_file_name)

for suffix in [ ".gz", ".fna", ".fasta", ".fsa", ".faa", ".fa" ]:
for suffix in [".gz", ".fna", ".fasta", ".fsa", ".faa", ".fa"]:
input_file_name = input_file_name.removesuffix(suffix)

setattr(self, "input_file_name", input_file_name)

0 comments on commit 9f758db

Please sign in to comment.