averageND {rnaSeqMap} | R Documentation |
Set of functions to operate on NucleotideDistr
objects.
averageND calculates the mean for samples, sumND adds up selected samples' distributions, combineND adds two objects with the same size of distribution matrix, log2ND transforms all numeric data in the object into log space.
averageND(nd, exps); sumND(nd, exps); combineND(nd1, nd2); log2ND(nd);
nd, nd1, nd2 |
|
exps |
a pair of numbers of samples in the experiment |
NucleotideDistr
object of the same type as input objects
Michal Okoniewski, Anna Lesniewska
# if (xmapConnected()) # { # rs <- newSeqReads(1,1,20000,1) # nd.cov <- getCoverageFromRS(rs,1:3) # nd.avg <- averageND(nd.cov,c(1,3)) # nd.sum <- averageND(nd.cov,c(1,3)) # nd.sum <- combineND(nd.cov,nd.cov) # nd.log <- log2ND(nd.cov) # }