Renders a reactive allelic discrimination plot that is suitable for
assigning to an UI output
slot.
renderADplot(inputId, label = NULL, adData,
targetColumn = "target.dyeId", xAxisTarget = "FAM",
yAxisTarget = "HEX", valueColumn = "endPointRFU",
colorBy = "genotype", polar = FALSE, showLegend = FALSE,
plotlyCode = NULL, cssFile = NULL, cssText = NULL,
interactive = TRUE)
The input
slot that will be used to modify plot.
Display label for the control, or NULL
for no label.
Allelic descrimination data with
RDML$AsTable()
format.
Column name that contains axis splitting (dye or target).
X axis target (dye) name.
X axis target (dye) name.
Column name that contains discrimination value (RFU or cq).
Column name that contains color levels data.
Enables polar coordinates.
Show plot legend.
Your quoted custom plotly code.
Path to the css styles file.
CSS styles as text.
Should be this adPLot
interactive or not.
Other render elements:
renderAmpCurves()
,
renderMeltCurves()
library(RDML)
rdml <- RDML$new(system.file("/extdata/test.rdml", package = "shinyMolBio"))
#>
#> Loading experiment: All Wells
#> run: Amp Step 3_FAM
#>
#> run: Amp Step 3_HEX
#>
#> Combining Bio-Rad runs
tbl <- rdml$AsTable(endPointRFU = mean(tail(data$adp$fpoints$fluor, 5)))
tbl <- group_by(tbl, position)
tbl <- mutate(tbl,
genotype = paste(
if (endPointRFU[1] > 400 && endPointRFU[2] > 400) "AG"
else if (endPointRFU[1] > 400) "AA"
else if (endPointRFU[2] > 400) "GG"
else "NA"
))
renderADplot("f", "aa", tbl, polar = TRUE, showLegend = TRUE)