How to map a SNP to all genes within 50kb (upstream or downstream) of the SNP?
1
0
Entering edit mode
arbet003 ▴ 10
@arbet003-13523
Last seen 6.5 years ago

Hello,

Are there any bioconductor R packages or functions that would allow me to map a SNP to all genes within 50kb (upstream or downstream) of the SNP?

Thanks

annotation R snp • 1.3k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 10 hours ago
United States

Yes. You could use the relevant TxDb package to get the gene locations (say in a GRangesList or GRanges), create a GRanges that defines a 100 kb range centered on your SNP and then use e.g., subsetByOverlaps to subset the genes to just those that are overlapped by your 100kb range. The relevant packages are GenomicAlignments and GenomicFeatures, both of which have vignettes you could read.

ADD COMMENT

Login before adding your answer.

Traffic: 563 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6