Skip to content

skip chromosomes not in VCFs#266

Open
mfansler wants to merge 1 commit intowheaton5:masterfrom
mfansler:bam-vcf-filter
Open

skip chromosomes not in VCFs#266
mfansler wants to merge 1 commit intowheaton5:masterfrom
mfansler:bam-vcf-filter

Conversation

@mfansler
Copy link
Contributor

@mfansler mfansler commented Jan 7, 2026

As discussed in #249, computing depth for the BAM regions is non-uniform and, for most scRNA-seq, will bottleneck on the MT chromosome if included. When using known or common variants, one can work around this by only computing depth on chromosomes that are included in the VCF(s). This PR implements that functionality.

In practice with common variants, I see this reduce the get_bam_regions step from over an hour to under 10 mins.

Added functionality to filter BAM regions based on known chromosomes from VCF files and created a new function to read chromosome names from VCF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant