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)
}

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.