cd tests/pysam_data/
python3 import pysam samfile = pysam.AlignmentFile("example_aligned_pairs.sam") samfile.count()
输出结果示例52,成功运行pysam解析“sam”文件。