Skip to content

Commit 61deea3

Browse files
committed
Fix for LinkMers.list_contigs(). Since we require all BAMs to have the same contigs, we'll just use the values from the first BAM file.
1 parent e17eaba commit 61deea3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

anvio/bamops.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,11 @@ def report(self, output_file_path):
345345
def list_contigs(self):
346346
self.progress.new('Init')
347347
self.progress.update('Reading BAM File')
348-
bam_file_object = BAMFileObject(self.input_file_path).get()
348+
bam_file_object = BAMFileObject(self.input_file_paths[0]).get()
349349
self.progress.end()
350350

351-
contig_names = self.bam.references
352-
contig_lengths = self.bam.lengths
351+
contig_names = bam_file_object.references
352+
contig_lengths = bam_file_object.lengths
353353

354354
bam_file_object.close()
355355

0 commit comments

Comments
 (0)