sRNADiffExp {srnadiff} | R Documentation

## Constructor.

### Description

Constructor.

### Usage

    sRNADiffExp(annotation = NULL, bamFileNames, replicates, conditions,
      lazyload = FALSE)

### Arguments

`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.

### Value

An `sRNADiff` object.

### Examples

    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)

[Package srnadiff version 1.2.1 Index]