Skip to contents

Takes a dataframe of the barcode cpm counts, calculate the relative abundance of each barcode in each sample. Then, barcodes of all samples are ordered for the reference sample in decreasing order and the cumulative sum is calculated for each sample. Cumulative sum is then plotted against the reference sample

Usage

plotBarcodeCumSum(dgeObject, referenceSample = NULL, samples = NULL)

Arguments

dgeObject

DGE object containing CPM counts

referenceSample

sample to compare others against

samples

vector of sample names to be plotted against reference sample

Value

Returns a plot of the cumulative sum of read counts per barcode

Details

plotBarcodeCumSum

Plot the cumulative sum of barcode CPM counts for a list of samples against and ordered by sample1.

Examples

data(test.dge)
plotBarcodeCumSum(test.dge, referenceSample = 'T0-1', samples = c('T0-1','S9-1', 'S8-1'))