R/rqcCycleGCCalc.R

Defines functions rqcCycleGCCalc

Documented in rqcCycleGCCalc

#' @describeIn rqcCycleGCPlot calculates necessary statistics
#' @export
rqcCycleGCCalc <- function(rqcResultSet)
{
    f <- function(x) {
        gc <- sum(x$count[c(2,3)]) / sum(x$count) * 100
        data.frame(gc)
    }
    
    df <- perCycleBasecall(rqcResultSet)
    ddply(df, c("filename", "cycle"), f)
}
labbcb/Rqc documentation built on Aug. 2, 2021, 8:43 a.m.