#' @describeIn rqcReadWidthPlot calculates necessary statistics
#' @export
rqcReadWidthCalc <- function(rqcResultSet)
{
df <- perReadWidth(rqcResultSet)
total <- perFileInformation(rqcResultSet)[, c("filename", "reads")]
df <- merge(df, total)
transform(df, width = factor(df$width), percentage=df$count / df$reads * 100)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.