Skip to content

Commit 9bc0df3

Browse files
authored
Fixed metbat2 parser
I suspect the parser was not up to date with the most recent metabat2 release. Adjusted it appropriately.
1 parent 9a02f22 commit 9bc0df3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎anvio/drivers/metabat2.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def cluster(self, input_files, args, work_dir, threads=1, log_file_path=None):
140140
bin_count += 1
141141
with open(bin_file, 'r') as f:
142142
pretty_bin_name = os.path.basename(bin_file).replace('.', '_')
143-
clusters[pretty_bin_name] = list(map(str.strip, f.readlines()))
144-
143+
if pretty_bin_name != "METABAT__BinInfo_txt":
144+
clusters[pretty_bin_name] = [l.split("\t")[0] for l in f.readlines()]
145+
145146
return clusters

0 commit comments

Comments
 (0)