Skip to content

feat: allow snp_allele_frequencies to accept genomic regions#1076

Open
joshitha1808 wants to merge 2 commits intomalariagen:masterfrom
joshitha1808:feat-allow-region-input-snp-allele-frequencies
Open

feat: allow snp_allele_frequencies to accept genomic regions#1076
joshitha1808 wants to merge 2 commits intomalariagen:masterfrom
joshitha1808:feat-allow-region-input-snp-allele-frequencies

Conversation

@joshitha1808
Copy link

What problem does this solve:

Previously, snp_allele_frequencies() required a transcript as input. This meant analyses were limited to coding regions, and users couldn’t easily check SNP allele frequencies for arbitrary genomic regions.

How does it solve it:

This PR adds an optional region parameter, so users can now specify any genomic region directly. The function will accept either a transcript or a region .When a region is used, SNP calls and allele frequencies are calculated for that region. Effect annotations are still only generated if a transcript is provided. Plot titles are automatically adjusted to work with both transcript- and region-based queries.

Issue number:

Closes #805

Testing done:

Added unit tests for region-based queries.

Verified that all existing transcript-based tests still pass.

Confirmed that effect annotations are applied correctly when using transcripts.

Breaking changes or migration notes:

No.

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.

Modify snp_allele_frequencies to allow investigation of any genomic region.

1 participant