-
Notifications
You must be signed in to change notification settings - Fork 289
Closed
Description
I'm trying to package pysam 0.22.1 with htslib 1.20 (so we can get rid of 1.18 in our repo) and have run into one base modifications failure:
______________________________________________________________________________ TestBaseModifications.testChebi _______________________________________________________________________________
self = <AlignedSegment_test.TestBaseModifications testMethod=testChebi>
def testChebi(self):
"""reference bases should always be the same nucleotide
"""
filename = os.path.join(BAM_DATADIR, "MM-chebi.bam")
expect = {
("C", 0, "m"): [(6, 102), (17, 128), (20, 153), (31, 179), (34, 204)],
("N", 0, "n"): [(15, 212)],
("C", 0, 76792): [(19, 161), (34, 187)],
}
with pysam.AlignmentFile(filename, check_sq=False) as inf:
r = next(iter(inf))
> self.assertDictEqual(r.modified_bases, expect)
E AssertionError: None is not an instance of <class 'dict'> : First argument is not a dictionary
expect = {('C', 0, 'm'): [(6, 102), (17, 128), (20, 153), (31, 179), (34, 204)],
('C', 0, 76792): [(19, 161), (34, 187)],
('N', 0, 'n'): [(15, 212)]}
filename = '/var/tmp/portage/sci-biology/pysam-0.22.1/work/pysam-0.22.1-python3.12/tests/pysam_data/MM-chebi.bam'
inf = <pysam.libcalignmentfile.AlignmentFile object at 0x7faa179c41f0>
r = <pysam.libcalignedsegment.AlignedSegment object at 0x7faa169f4640>
self = <AlignedSegment_test.TestBaseModifications testMethod=testChebi>
tests/AlignedSegment_test.py:1077: AssertionError
Metadata
Metadata
Assignees
Labels
No labels