Entering edit mode
Hi,
Is it possible to change the parameters of col, lty, lwd, and fontcolor.exon within a GeneRegionTrack for one specific exon of a gene? I have multiple transcripts of a gene and they differ in the inclusion of one exon. I would like to highlight this, but it only seems to be possible by changing the fill color. From the user guide it seems like this is not possible, but I was wondering whether there were any work arounds?
gene_track <- GeneRegionTrack(
gene_transcripts,
chromosome = seq_name,
name = "gene isoforms",
strand = "+",
transcript = gene_transcripts$transcript,
group = "group",
exonAnnotation = "exon",
transcriptAnnotation = "transcript",
cex.group = cex_transcript_labels,
just.group = "right",
fontcolor.group = "#424949",
stacking = "pack",
mergeGroups = FALSE,
collapse = FALSE,
col = default_border_col,
lwd = default_line_width,
fontcolor.exon = default_font_col,
fontface.exon = 2,
cex.feature = cex_exon_names,
background.title = "#565656",
background.panel = "#FAFAFA",
col.border.title = "#FAFAFA",
frame = TRUE,
col.frame = "#a0a7a8",
col.title = "white",
cex.title = cex_track_names
)
exon_colors <- setNames(
ifelse(gene_transcripts$exon == "exon_X", eX_exon_col, default_exon_col),
gene_transcripts$exon
)
displayPars(gene_track) <- list(fill = exon_colors)
