lawremi / ggbio

Grid and ggplot2 based visualization for biological data
111 stars 24 forks source link

ideo geom #123

Open lfaino opened 4 years ago

lfaino commented 4 years ago

Hi @tengfei , i was wondering if i can use geom ideo in association to eas. I was trying but apparently i can not

cheers Luigi

lawremi commented 4 years ago

I'm having trouble understanding your question. Btw, @tengfei abandoned this project years ago. I try to keep it working to some degree.

lfaino commented 4 years ago

here the problem: i`m running this line

ggplot() + layout_circle(gr, geom = "link", linked.to = "to.gr", radius = 48, trackWidth = 1, aes(color = seqnames)) + layout_circle(gr, geom = "ideogram", radius = 48, trackWidth = 4, aes(fill=color)) + layout_circle(ideo, geom = "text", aes(label = seqnames), radius = 52, trackWidth = 6)

the geom link is on two genome and what i would like to do is to plot the ideogram in two colors one for each genome.

I thought that using aes in the geom ideogram would work but it is not

lawremi commented 4 years ago

It would help to have a reproducible example, i.e., the gr object in the above.

lfaino commented 4 years ago

here some test files you can use this two files. I have 2 genomes and I want that in the ideogram i get one genome in a color and another in another

that`s it

scriptCirco_Fvert_test.R.txt matchlarger5k.txt

sanchit-saini commented 3 years ago

Hi @lfaino, I tried to reproduce it with the provided files( scriptCirco_Fvert_test.R.txt and matchlarger5k.txt). But it seems it is not enough to reproduce as scriptCirco_Fvert_test.R.txt code relies on another file(listChrMatchFv10027OnFOL), which is not provided. If you can provide it also, we might be able to help out.