R/rqcReadWidthCalc.R

Defines functions rqcReadWidthCalc

Documented in rqcReadWidthCalc

#' @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)
}

Try the Rqc package in your browser

Any scripts or data that you put into this service are public.

Rqc documentation built on Nov. 8, 2020, 5:11 p.m.