This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Defining the genomic context given a genomic position

Hi all,

How can we find out the genomic context (genomic elements) given a genomic position (such as given a bed file).

Is the position in an intron or exon of a gene? If the position is intergenic : which gene are upstream and downstream (and distances) or maybe promoter, enhancer?

Are there maybe tools or R packages, python packages for doing this? Thank you!

rna-seq exon intro enhancer promoter

In addition, please use the search function and google. The keyword is 'annotation' of genomic regions. Plenty of posts on that available. If you need intron positions etc. based on a GTF file, see my tutorial.

1 answer

The R package ChIPseeker does basically everything you want and is relatively easy to use. It'll also spit out some summary figures for you if you want them. Can also manually do this in R or python manually using biomart and a bit of thought if you wanted.

Awesome! Thank you very much.

Log in to answer this question.