signac icon indicating copy to clipboard operation
signac copied to clipboard

Enhanced CoveragePlot() options

Open zrcjessica opened this issue 4 years ago • 4 comments

I am interested in showing the pseudo-bulk accessibility around the TSS of marker genes for specific cell types. I want to have the marker genes of interest on the y-axis and the cell types on the x-axis. Here is an example of what I'm thinking of:

cell_marker_atac

Currently, I can't figure out how to do this without manually putting together individual CoveragePlots.

zrcjessica avatar Dec 10 '20 20:12 zrcjessica

I can confirm this is not currently possible without making several individual coverage plots. We can try to add something like this in a future release

timoast avatar Dec 15 '20 14:12 timoast

Hi, I have some similar needs as zrcjessica's. Seems there is not a way to make this kind of plot directly, but I am trying to play with the code to make generating this plot a bit easier. In particular, I am wondering if there is any way to remove the facet titles in the coverage plot? (e.g. I want to remove 'CD4 naive', 'CD4 memory', etc. in the figure below).

I have tried adding theme(strip.text = element_blank(),strip.background = element_blank()) to the coverage track plot, but seems it is not the way to go.

image

RuiyangLiu94 avatar Jun 10 '21 01:06 RuiyangLiu94

never mind, I figured it out lastly... Turned out the way to remove the cell type labels is to specify themes in another way: p <- p + theme(strip.text.y.left = element_blank(),strip.background = element_blank())

RuiyangLiu94 avatar Jun 11 '21 16:06 RuiyangLiu94