File: getMeanVariance.Rd

package info (click to toggle)
r-bioc-bitseq 1.26.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,620 kB
  • sloc: cpp: 6,506; sh: 4; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 1,809 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\name{getMeanVariance}
\alias{getMeanVariance}
\title{Calculate mean and variance of expression samples}
\description{Calculate mean and variance of expression samples or log-expression samples}
\usage{
getMeanVariance(sampleFiles, outFile, log=NULL, type=NULL, verbose=NULL,
      norm=NULL, pretend=FALSE)
}
\arguments{
\item{sampleFiles}{Vector of one or more files containing the expression samples.}
\item{outFile}{Name of the output file.}
\item{log}{Use logged values.}
\item{type}{Type of variance, possible values: \code{sample},\code{sqDif} for sample variance or squared difference.}
\item{verbose}{Verbose output.}
\item{norm}{Vector of (multiplicative) normalization constants for library size normalization of expression samples. Number of constants has to match the number of expression samples files.} 
\item{pretend}{Do not execute, only print out command line calls for the C++ version of the program.}
}
\details{
The \code{getMeanVariance} function computes means and variances of MCMC expression samples.
These can be computed either from single file or from multiple files using sample variance. 
Variance of two experiments (i.e. technical or biological replicates) can be estimated also by using \code{sqDif} option for \code{type} which specify the computation of the average square distance between the samples from two sets.
}
\value{
\item{.means}{File containing means (first column) and variance (second column) for each transcript (or row in the sample files)}
}
\author{Peter Glaus}

\seealso{\code{\link{estimateExpression}}}
\examples{
setwd(system.file("extdata",package="BitSeq"));
sampleFileNames = c("data-c1b0.rpkm","data-c1b1.rpkm")
getMeanVariance(sampleFiles=sampleFileNames, outFile="data-c1.Lmean", log=1,
      norm=c(1.0017, 0.9998))
}

\keyword{expression mean}