Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple overlap analysis #17

Closed
lgeistlinger opened this issue Nov 1, 2019 · 1 comment
Closed

Simple overlap analysis #17

lgeistlinger opened this issue Nov 1, 2019 · 1 comment
Assignees

Comments

@lgeistlinger
Copy link
Collaborator

lgeistlinger commented Nov 1, 2019

Vignette Section 6 (Overlap analysis) would benefit from some basic overlap functionality in the beginning of the section, to demonstrate eg how to carry over CNV type from summarized population ranges (CNVRs) to some query regions such as protein coding genes, ie something along the lines:

genes <- genes(TxDb)
cnvrs <- populationRanges(grl)

hits <- findOverlaps(genes, cnvrs, ignore.strand=TRUE)
cgenes <- genes[queryHits(hits)]
cgenes$type <- cnvrs$type[subjectHits(hits)]
cgenes 
@lgeistlinger
Copy link
Collaborator Author

closed via 93b1be4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant