| qtl2dplotly | R Documentation |
Interactive visualization of QTL–gene relationships in 2D genomic space, separating cis and trans associations into stable Plotly traces.
qtl2dplotly(
d,
chrlen = gap::hg19,
qtl.id = "SNPid:",
qtl.prefix = "QTL:",
qtl.gene = "Gene:",
target.type = "Protein",
TSS = FALSE,
xlab = "QTL position",
ylab = "Gene position",
...
)
d |
Data frame containing QTL data. Must include SNP, chromosome, position, gene mapping, and cis/trans classification. |
chrlen |
Chromosome length reference (default: |
qtl.id |
Prefix for SNP identifier in tooltip. |
qtl.prefix |
Prefix for QTL coordinate label. |
qtl.gene |
Prefix for gene coordinate label. |
target.type |
Label for target entity type. |
TSS |
Logical. If TRUE, uses transcription start site. |
xlab |
Label for x-axis. |
ylab |
Label for y-axis. |
... |
Additional arguments passed to |
This function wraps gap::qtl2dplot() and converts the output into an
interactive Plotly scatter plot.
Unlike the original implementation, this version:
avoids color = ~cistrans (prevents row dropping in Plotly)
uses explicit traces for cis/trans groups
ensures stable HTML widget rendering
eliminates "Ignoring observations" warnings
A plotly object.
## Not run:
INF <- Sys.getenv("INF")
d <- read.csv(file.path(INF,"work","INF1.merge.cis.vs.trans"),as.is=TRUE)
r <- qtl2dplotly(d)
htmlwidgets::saveWidget(r,file="qtl2dplotly.html")
r
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.