averageND: averageND, sumND, combineNS, log2ND - operations on...

Description Usage Arguments Value Author(s) Examples

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

1
2
3
4
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

1
2
3
4
5
6
7
8
9
#  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)
#  }

rnaSeqMap documentation built on Nov. 8, 2020, 5:50 p.m.