Skip to content

Commit

Permalink
remove "bin" from gtdbtk out name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-xy-Liu committed May 15, 2023
1 parent d3dbbf7 commit 3a3802f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion metagenomics/taxonomy_on_bin/lib/gtdbtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def gtdbtk_procedure(context: JobContext, SAMPLE, BINS, GTDBTK_WS, GTDBTK_TAX, C
},
)

summary = context.output_folder.joinpath(f"{sample}-bins.tax.tsv")
summary = context.output_folder.joinpath(f"{sample}.tax.tsv")
written_header = False
with open(summary, "w") as out:
for table in file_candidates:
Expand All @@ -95,6 +95,13 @@ def gtdbtk_procedure(context: JobContext, SAMPLE, BINS, GTDBTK_WS, GTDBTK_TAX, C
for l in tsv:
out.write(l)

# todo: return trees as well
# out_tree = context.output_folder.joinpath(f"{sample}.tax.tree")
# file_candidates = os.listdir(classify_out) if classify_out.exists() else []
# file_candidates = [classify_out.joinpath(f) for f in file_candidates if (f.endswith(".tree") and "backbone" not in str(f))]
# with open(out_tree, "w") as out:


#clean up
context.shell(f"""\
cd {context.output_folder} && rm -r {TEMP_PREFIX}*
Expand Down

0 comments on commit 3a3802f

Please sign in to comment.