-
Notifications
You must be signed in to change notification settings - Fork 23
/
create_testset_multibatch.Rd
44 lines (41 loc) · 1.43 KB
/
create_testset_multibatch.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_testset_multibatch.R
\name{create_testset_multibatch}
\alias{create_testset_multibatch}
\title{create_testset_multibatch}
\usage{
create_testset_multibatch(n.genes = 1000, n.batch = 3,
plattform = c("C1", "dropseq", "any"))
}
\arguments{
\item{n.genes}{nummber of sampled genes}
\item{n.batch}{number of batches in the data set}
\item{plattform}{maximum number of cells (samples) per batch.
There are three modes:
\enumerate{
\item \code{C1} - 96 cells (max)
\item \code{dropseq} - 1000 cells (max)
\item \code{any} - 300 cells (max)
}
The number of cell per batch is varied by a Beta distributed random
variable to simulate a quality control, where
80\% of the samples pass.}
}
\value{
list object
\enumerate{
\item \code{data} - simulated data set with #rows: cells, columns: 'genes'
\item \code{batch} - vector with batch identity for each cell
\item \code{comment} - 'testSet_multibatch_<n.genes>genes_<n.batch>batches_<plattform>'
}
}
\description{
\code{create_testset_multibatch} simulates single-cell RNA-seq data
as zero-inflated negative binomial counts.
The observe several batches that differ from each other - the difference is
randomly chosen from the Beta distribution with a = 1, b = 9,
i.e. the expected fraction of varied genes is 1/10.
}
\examples{
testdata <- create_testset_multibatch(n.genes=1000, n.batch=3, plattform='any')
}