File: simulate_2comp.Rd

package info (click to toggle)
r-bioc-demixt 1.14.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,300 kB
  • sloc: ansic: 1,591; cpp: 1,209; makefile: 5; sh: 4
file content (53 lines) | stat: -rw-r--r-- 2,347 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate_2comp.R
\name{simulate_2comp}
\alias{simulate_2comp}
\title{Function to simulate two-component test data}
\usage{
simulate_2comp(G = 500, My = 100, M1 = 100, output.more.info = FALSE)
}
\arguments{
\item{G}{Number of genes for simulation.}

\item{My}{Number of mixture tumor samples for simulation.}

\item{M1}{Number of normal reference for simulation.}

\item{output.more.info}{The logical flag indicating wheter to show
True.data.T and True.data.N1 in the output. The default is FALSE.}
}
\value{
\item{pi}{A matrix of estimated proportion. First row and second row
corresponds to the proportion estimate for the known components and unkown
component respectively for two or three component settings. Each column
corresponds to one sample.} \item{Mu}{Simulated \eqn{Mu} of log2-normal
distribution for both known (\eqn{MuN1}) and unknown component (\eqn{MuT}).}
\item{Sigma}{Simulated \eqn{Sigma} of log2-normal distribution for both
known (\eqn{SigmaN1}) and unknown component (\eqn{SigmaT}).} \item{data.Y}{A
SummarizedExperiment object of expression data from mixed tumor samples. It
is a \eqn{G} by \eqn{My} matrix where \eqn{G} is the number of genes and
\eqn{My} is the number of mixed samples. Samples with the same tissue type
should be placed together in columns.} \item{data.N1}{A SummarizedExperiment
object of expression data from reference component 1 (e.g., normal). It is a
\eqn{G} by \eqn{M1} matrix where \eqn{G} is the number of genes and \eqn{M1}
is the number of samples for component 1.} \item{True.data.T}{A
SummarizedExperiment object of simulated tumor expression data. It is a
\eqn{G} by \eqn{My} matrix, where \eqn{G} is the number of genes and
\eqn{My} is the number of mixed samples. This is enabled only when
output.more.info = TRUE.} \item{True.data.N1}{A SummarizedExperiment object
of simulated true expression data for reference component 1 (e.g., normal).
It is a \eqn{G} by \eqn{M1} matrix where \eqn{G} is the number of genes and
\eqn{M1} is the number of samples for component 1. This is enabled only when
output.more.info = TRUE.}
}
\description{
Function to simulate two-component test data for DeMixT.
}
\examples{

test.data = simulate_2comp(G = 500, My = 100, M1 = 100)
test.data$pi
test.data$Mu
test.data$Sigma

}