Dear all, I'm trying to figure out how to use the col.interactions.types parameters from the GenomicInteractions package to specifically color annotated interactions in the gviz plots. Here' s a little snippet showing how I annotate the interactions.
annotateInteractions(interactions,list(promoter=proms,enhancer=SE))
interaction_track <- InteractionTrack(interactions,name='HiC',chromosome = chr)
displayPars(interaction_track) <- list(col.interactions="lightblue",
col.interactions.types=c('promoter-distal'='red'))
I tryied to use
displayPars(interaction_track) <- list(col.interactions="lightblue",
col.interactions.types=c(pd='red'))
or
displayPars(interaction_track) <- list(col.interactions="lightblue",
col.interactions.types=c(is.pd='red'))
with not success. I'm not sure what names in the named vector are recognized. Any help would be appreciated.
thanks

Cool! Working now!! Yes, there's a typo in the
InteractionTrack-classpackage documentation and the online PDF. Any chance the interaction specified incol.interaction.typescould be plotted first? in the example below, the reds on top of the light blues.Alright, the typo should now be fixed both in release and devel, although it'll take a day or two for the changes to propagate. Sorry about that and thanks for noticing it!
The interactions are plotted in order of their start coordinate. To be honest I didn't write this part of the code and I'm not sure if it'd be possible to change the order in which they are plotted. I don't think there's a quick fix to this, but we will bear it in mind for future development.