R/libScales.R

Defines functions libScales

Documented in libScales

libScales <- function(rC, riboDat, lengths, frames, method = "edgeR") {
    riboC <- sliceCounts(rC, lengths = lengths, frames = frames)
    if(length(riboDat@rnaGR) > 0) {
        rnaC <- rnaCounts(riboDat, rC@CDS)
        rnaLS = getLibsizes(data = rnaC, replicates = riboDat@replicates, estimationType = "edgeR")
    } else rnaLS <- NULL
    riboLS = getLibsizes(data = riboC, replicates = riboDat@replicates, estimationType = "edgeR")    
    list(riboLS = riboLS, rnaLS = rnaLS)
}

Try the riboSeqR package in your browser

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

riboSeqR documentation built on Nov. 8, 2020, 8:23 p.m.