baseLineCalc: Function to calculate the average number of reads mapped on...

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/baseLineCalc.R

Description

This function calculates the mean genome-wide read depth.

Usage

1
baseLineCalc(covData)

Arguments

covData

A vector with the numbers of sequences aligned at each genomic position to be considered in the analysis

Details

This function adds the numbers of sequences observed at each position and divides this number by the genome size (total number of nucleotides).

Value

The average number of reads mapped on each nucleotide in the genome.

Note

Detailed information and tutorials can be found online http://bpeaks.gene-networks.net/.

Author(s)

Gaelle LELANDAIS

References

http://bpeaks.gene-networks.net/

See Also

bPeaksAnalysis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# get library
library(bPeaks)

# get PDR1 data
data(dataPDR1)

# mean genome-wide read depth in IP data
meanIPcov = baseLineCalc(dataPDR1$IPdata[,3])
print(meanIPcov)

# mean genome-wide read depth in control data
meanContCov = baseLineCalc(dataPDR1$controlData[,3])
print(meanContCov) 

bPeaks documentation built on May 1, 2019, 10:14 p.m.