normByRUVs: Normalization by RUVSeq

Description Usage Arguments Value Examples

View source: R/normByRUVs.R

Description

Normalization by RUVSeq:RUVs methods

Usage

1
normByRUVs(counts, RPFgroup, mRNAgroup = RPFgroup, k = 1)

Arguments

counts

Output of countReads

RPFgroup, mRNAgroup

Groups for RPF and mRNA files

k

The number of factor of unwanted variation to be estimated from the data. See RUVs

Value

Normalized counts list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: ##waiting for EDASeq fix the issue.
path <- system.file("extdata", package="ribosomeProfilingQC")
#RPFs <- dir(path, "RPF.*?.[12].bam$", full.names=TRUE)
#RNAs <- dir(path, "mRNA.*?.[12].bam$", full.names=TRUE)
#gtf <- file.path(path, "Danio_rerio.GRCz10.91.chr1.gtf.gz")
#cnts <- countReads(RPFs, RNAs, gtf, level="gene")
cnts <- readRDS(file.path(path, "cnts.rds"))
gp <- c("KD1", "KD1", "WT", "WT")
norm <- normByRUVs(cnts, gp, gp)

## End(Not run)

ribosomeProfilingQC documentation built on March 13, 2021, 2:01 a.m.