Skip to content

[How to use] Can pysamstats accept multiple coordinate parameters at the same time? #108

@b-niu

Description

@b-niu

Dear author, thanks for this great tool!

I would like to ask, can we pass in multiple coordinates at the same time to save running time?
Just like:

import pysam
import pysamstats

mybam = pysam.AlignmentFile('/path/to/your/bamfile.bam')
pysamstats.load_coverage(mybam, chrom='chr1', start=10000, end=20000)

The following operation is used to query the depth of a group of mutations. Is it OK?

mybam = pysam.AlignmentFile('/path/to/your/bamfile.bam')
pysamstats.load_coverage(
    mybam,
    chrom=['chr1', 'chr2', 'chr3'],
    start=[10000, 1500, 1200],
    end=[10000, 1500, 1200])

Thanks again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions