Extract information from GenomicRanges
2
0
Entering edit mode
ribioinfo ▴ 100
@ribioinfo-9434
Last seen 3.7 years ago

Hi I have a a data frame with chromosome and position columns (for example chr1 12000). I have extracted the transcripts with the function transcripts() from Genomic Features. I would like to check if some position are in some transcripts. Is there a function in GenomicRanges that could help me?

Thank you

Riccardo

genomicranges genomicfeatures • 968 views
ADD COMMENT
1
Entering edit mode
@michael-lawrence-3846
Last seen 2.4 years ago
United States

Create a GRanges from the data.frame, then see ?findOverlaps. Something like:

overTx <- makeGRangesFromDataFrame(df) %over% tx
ADD COMMENT
0
Entering edit mode
ribioinfo ▴ 100
@ribioinfo-9434
Last seen 3.7 years ago

Thank, could you explain me what is %over%?

ADD COMMENT
0
Entering edit mode

Check the man page. ?%over%

ADD REPLY

Login before adding your answer.

Traffic: 683 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