This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Plotting Density Of Reads On Chromosomes

I want to plot a picture like this:

< image "20141014104516" not found >

Short reads mapped to genome with bowtie etc. And then, Plot the reads density and depth of each chomosome, with a sliding window(1 K).

Could you give me some advice ? Thanks .

rna-seq r next-gen genome

Which one? :)

The picture has been updated

check R:Bioconductor packages 'GRanges' and 'ggbio'.

I will check the two packages. Thanks for your help.

3 answers

  1. Get the bam files after mapping to genome.
  2. Sort bam files according to genome position.
  3. Predefine window size (say 1Mbp).
  4. Calculate number of reads within that window size
  5. Standardize that count to get gene density
  6. Plot these data (x= genome position (Mbp) and y=gene density)

What about a circos plot?

Circos Histogram Bam File

I wrote this tool some time ago: BamGenScan

but didn't use it much (= use cautiously)

Log in to answer this question.