Quick way to find the nearest genes
1
0
Entering edit mode
2.1 years ago
chipolino ▴ 150

Hi!

I have a bed file with coordinates of OCRs (open chromatin regions, ATAC-seq) for mm10 (mouse). My goal is to find for each region in my file the closest promoter with the respective distance. Can it be done quickly in python or R? And can it be generalizable? So I can use the same pipeline but for human regions?

Thanks

genes bed genome enhancers • 638 views
ADD COMMENT
1
Entering edit mode
2.1 years ago
ATpoint 82k

In R you can use the nearest() function from GenomicRanges. A standalone software would be bedtools closest. I would use a reference GTF file to run this against, which you can subset for transcription start sites or gene coordinates.

ADD COMMENT
0
Entering edit mode

thanks for your reply, I will try to use bedtools command with the GTF file

ADD REPLY

Login before adding your answer.

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