This is a test version of Biostars. For the public version, visit https://www.biostars.org.
identify Gencode genes residing in 1-Mb intervals

Hi

I would like to make the graph of distribution of expressed genes by chromosome form transcripts.gtf file. I need to extract the Gencode genes residing in 1-Mb intervals along the chromosome.How I can calculate genes residing in 1-Mb intervals?

Any suggestion would be appreciated

Thank you

rna-seq

1 answer

I would solve such problem using bedtools.

  1. Divide your genome/chromosome into x bp size windows (have a look at bedtools makewindows);
  2. Intersect windows.bed with transcripts.bed (see bedtools intersect)

Edit:

Before this you have to download chromosome sizes (see Pierre's answer here).

Thank you so much

If my suggestion worked for you, please accept my answer (and post your thanks as comment and not as an additional answer :-) ).

Log in to answer this question.