Closed anmwinter closed 6 years ago
If you had an mcols variable representing the up/down and treatment status on the trans
GRanges, I think you could map that to a color by passing e.g. fill=that_variable
to the autoplot()
call that makes p4
.
@lawremi Thanks! So I can add columns to the trans
Granges? Or does that need to happen before the Granges object?
Yes, like mcols(trans)$foo <- "bar"
.
Thanks! That worked well.
Hello,
First, thanks for making and maintaining ggbio. I have a de novo genome and a set of transcripts across treatments (pure, early infection, late infection) that are up or down regulated. I used gmap to build a bam and gff file for reading into ggbio.
For plotting I want to show the whole genome. We have it as a single contig. And I want to show where the UTRs, Transcripts, and Genes map to.
That will yield this plot, which I think is good so far.
I would like to color code the Transcripts by up or down regulated and by treatment. Where in the ggbio pipeline would add this additional data. For a given transcript id like TRINITY_DN2409_c0_g2_i1 I have the up or down and the infection stage.
Thanks for any advice or help. ara