Skip to content

Document performance considerations? #125

@alexlenail

Description

@alexlenail

I'd like to use pyBigWig to collect values at many intervals from many bigwigs, and I'd love to know what's performant.

  1. is there overhead to opening a bigwig with pyBigWig? i.e. what's the runtime difference between:
with pyBigWig.open(bigwig_file) as bw:
    for chrom, start, stop in intervals:
        bw.values(chrom, start, stop)

and

for chrom, start, stop in intervals:
    with pyBigWig.open(bigwig_file) as bw:
        bw.values(chrom, start, stop)
  1. If the former is optimal, is there any advantage to the intervals being sorted?

  2. Do you know relative performance of pyBigWig entries() queries of bigBed files versus tabix queries of gzipped bed files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions