def chromosome_names(self):
"""
Returns
-------
tuple
Chromosome names ordered by sequence order in fasta
"""
fastafile = pysam.FastaFile(self.filepath)
names = fastafile.references
fastafile.close()
# pysam's .lengths does not return a tuple (despite what is in the docs),
# so, convert to tuple before returning.
return tuple(names)
评论列表
文章目录