downSample: Down-sample RNA-seq data. Down-sample full dataset to a...

Description Usage Arguments Value

Description

Down-sample RNA-seq data. Down-sample full dataset to a smaller dataset of specified size.

Usage

1
downSample(dataset, group = NULL, nreps, depth, nsims = 20)

Arguments

dataset

Numeric count matrix; full dataset from which to down-sample. Note that for my purposes, this full dataset is simulated.

group

Vector or factor giving the experimental group/condition for each sample/library in the full dataset.

nreps

Desired number of replicates per group.

depth

Desired depth (library size) in millions for each sample.

nsims

Number of simulations to run, i.e. number of datasets to generate of this size.

Value

Doesn't return anything, just saves the down-sampled datasets as RData.


fayezor/myRpackage documentation built on May 16, 2019, 11:01 a.m.