Skip to content

Commit

Permalink
Correct issue with anvio binning file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABignaud committed Apr 12, 2023
1 parent db50d68 commit 732b9e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metator/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,9 @@ def recursive_decontamination(
# Return some values of efficiency of the binning.
give_results_info(bin_summary)

# Correct final bin value in contigs data
contigs_data = correct_final_bin(contigs_data, final_fasta_dir, bin_summary)

# Write relevant bins/contigs information for anvio.
binning_file = join(outdir, "binning.txt")
contigs_data = write_bins_contigs(
Expand All @@ -879,9 +882,6 @@ def recursive_decontamination(
bin_summary_file = join(outdir, "bin_summary.txt")
mio.write_bin_summary(bin_summary, bin_summary_file)

# Correct final bin value in contigs data
contigs_data = correct_final_bin(contigs_data, final_fasta_dir, bin_summary)

# Write the new file
contig_data_file_final = join(outdir, "contig_data_final.txt")
contigs_data.to_csv(
Expand Down

0 comments on commit 732b9e5

Please sign in to comment.