Skip to content

Commit

Permalink
fix: correct reading multiple lines for amrfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
matinnuhamunada committed Jul 15, 2024
1 parent 4d8cd79 commit f796d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .examples/Lactobacillus_delbrueckii/project_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ rules:
cblaster-genome: TRUE
cblaster-bgc: FALSE
gecco: TRUE
amrfinderplus: TRUE
amrfinderplus: FALSE
4 changes: 2 additions & 2 deletions workflow/bgcflow/bgcflow/data/gather_amrfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def gather_amrfinder(input_list, output_file):
dataframes = []

with open(input_list, "r") as f:
data = f.readlines()
data = f.read()

dataframes = pd.concat([cleanup_amrfinder(i.strip("\n")) for i in data])
dataframes = pd.concat([cleanup_amrfinder(i) for i in data.split()])
dataframes.to_csv(output_file, index=False)
return

Expand Down

0 comments on commit f796d1c

Please sign in to comment.