This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to create a metagene plot for different features of genes?

Hi all,

I wanted to do metagene plot for different features of genes. I have RNA-Seq sample. So would like to create a plot which contains TSS, 5pUTR, first exon, internal exons, last exon, TES and 3pUTR. Is it possible to do? Can someone please suggest me something?

metagene rna-seq deeptools r

1 answer

Yes, it's possible, but it depends on what you know or are willing to learn. I'm sure there are a variety of ways to do it. One method using R would be to use the GRanges library to manage all your features - for instance if you have gene definitions in gff, or at biomart, you can read them into GRanges and then define TSS by resizing all start coordinates to be the size you consider a TSS to be, and then use those GRanges to extract coverage from either bigWig files, or a coverage object, of your RNA Seq data. There are a variety of ways to do this step as well, some of them are more confusing than others. You would tweak these steps for your various feature types. Once you build a matrix of coverages across your uniform features, the metagene is simply the column averages.

If you like R, look up how to use GRanges, GenomicFeatures, and rtracklayer.

Log in to answer this question.