Entering edit mode
5.6 years ago
sabin
▴
50
Hello, Has anyone ever used the R library "seq2pathway" and in particular the function "runseq2gene" to map genomic regions to genes? Is it a good alternative to bed tools? I found it very easy to use, I just would like to know if can be considered as a valid alternative since i didnt manage to use bedtools yet. What's your experience with that library?
No experience with this, but you probably want
GenomicRangespackage and its functions such asfindOverlapsandnearest. Essentially the same as bedtools just in R. If you want to map regions to genes in a certain window then simply extend either of them usingGenomicRanges::resizeand then use any of the overlap function from that package, e.g.findOverlaps,subsetbyOverlapsetc to get the overlaps.nearestin case you want the closest gene/region. Be sure that you use the strand options since it is the gene start coordinate that matters and if a gene is on the minus strand then the actual end coordinate is the start.