filterCDS: Filter CDS by size

Description Usage Arguments Value Examples

View source: R/filterCDS.R

Description

Filter CDS by CDS size.

Usage

1
filterCDS(CDS, sizeCutoff = 100L)

Arguments

CDS

Output of preparedCDS

sizeCutoff

numeric(1). Cutoff size for CDS. If the size of CDS is less than the cutoff, it will be filtered out.

Value

A GRanges object with filtered CDS.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#library(GenomicFeatures)
library(BSgenome.Drerio.UCSC.danRer10)
#txdb <- makeTxDbFromGFF(system.file("extdata",
 #         "Danio_rerio.GRCz10.91.chr1.gtf.gz",
 #         package="ribosomeProfilingQC"),
 #         organism = "Danio rerio",
 #         chrominfo = seqinfo(Drerio)["chr1"],
 #         taxonomyId = 7955)
#CDS <- prepareCDS(txdb)
CDS <- readRDS(system.file("extdata", "CDS.rds",
                           package="ribosomeProfilingQC"))
filterCDS(CDS)

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