sRNADiffExp {srnadiff} | R Documentation |
Constructor.
sRNADiffExp(annotation = NULL, bamFileNames, replicates, conditions, lazyload = FALSE)
annotation |
The GRanges annotation |
bamFileNames |
The name of one read file in BAM format. |
replicates |
The names of the replicates. |
conditions |
The condition to which each replicate belongs. |
lazyload |
Usual for S4 functions. |
An sRNADiff
object.
dir <- system.file("extdata", package="srnadiff", mustWork = TRUE) data <- read.csv(file.path(dir, "data.csv")) gtfFile <- file.path(dir, "Homo_sapiens.GRCh38.76.gtf.gz") annotation <- readWholeGenomeAnnotation(gtfFile) bamFiles <- file.path(dir, data$FileName) replicates <- data$SampleName conditions <- factor(data$Condition) exp <- sRNADiffExp(annotation, bamFiles, replicates, conditions)