averageND {rnaSeqMap}R Documentation

averageND, sumND, combineNS, log2ND - operations on distributions

Description

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.

Usage

averageND(nd, exps);
sumND(nd, exps);
combineND(nd1, nd2);
log2ND(nd);

Arguments

nd, nd1, nd2

NucleotideDistr objects

exps

a pair of numbers of samples in the experiment

Value

NucleotideDistr object of the same type as input objects

Author(s)

Michal Okoniewski, Anna Lesniewska

Examples

#  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)
#  }

[Package rnaSeqMap version 2.38.0 Index]