Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sirplus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioCellGen-public
sirplus
Commits
d36b8dda
Commit
d36b8dda
authored
8 years ago
by
Luke Zappia
Browse files
Options
Downloads
Patches
Plain Diff
Document Lun2Params
parent
ad4b95bf
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
DESCRIPTION
+1
-1
1 addition, 1 deletion
DESCRIPTION
R/AllClasses.R
+35
-4
35 additions, 4 deletions
R/AllClasses.R
R/Lun2Params-methods.R
+1
-2
1 addition, 2 deletions
R/Lun2Params-methods.R
man/Lun2Params.Rd
+33
-0
33 additions, 0 deletions
man/Lun2Params.Rd
with
70 additions
and
7 deletions
DESCRIPTION
+
1
−
1
View file @
d36b8dda
Package: splatter
Type: Package
Title: Simple Simulation of Single-cell RNA Sequencing Data
Version: 0.7.
1
Version: 0.7.
2
Date: 2016-10-14
Author: Luke Zappia
Authors@R: as.person(c(
...
...
This diff is collapsed.
Click to expand it.
R/AllClasses.R
+
35
−
4
View file @
d36b8dda
...
...
@@ -293,6 +293,39 @@ setClass("LunParams",
#' \item{\code{nGenes}}{The number of genes to simulate.}
#' \item{\code{nCells}}{The number of cells to simulate.}
#' \item{\code{[seed]}}{Seed to use for generating random numbers.}
#' \item{\code{[nPlates]}}{The number of plates to simulate.}
#' \item{\emph{Plate parameters}}{
#' \describe{
#' \item{\code{path.ingroup}}{Plates considered to be part of the
#' "ingroup".}
#' \item{\code{path.mod}}{Plate effect modifier factor. The plate effect
#' variance is divided by this value.}
#' \item{\code{plate.var}}{Plate effect variance.}
#' }
#' }
#' \item{\emph{Gene parameters}}{
#' \describe{
#' \item{\code{gene.means}}{Mean expression for each gene.}
#' \item{\code{gene.disps}}{Dispersion for each gene.}
#' \item{\code{gene.ziMeans}}{Zero-inflated gene means.}
#' \item{\code{gene.ziDisps}}{Zero-inflated gene dispersions.}
#' \item{\code{gene.ziProps}}{Zero-inflated gene zero proportions.}
#' }
#' }
#' \item{\emph{Cell parameters}}{
#' \describe{
#' \item{\code{cell.plates}}{Plate that each cell comes from.}
#' \item{\code{cell.libSizes}}{Library size for each cell.}
#' \item{\code{cell.libMod}}{Modifier factor for library sizes.
#' The library sizes are multiplied by this value.}
#' }
#' }
#' \item{\emph{Differential expression parameters}}{
#' \describe{
#' \item{\code{de.nGenes}}{Number of differentially expressed genes.}
#' \item{\code{de.fc}}{Fold change for differentially expressed genes.}
#' }
#' }
#' }
#'
#' The parameters not shown in brackets can be estimated from real data using
...
...
@@ -318,8 +351,7 @@ setClass("Lun2Params",
cell.libSizes
=
"numeric"
,
cell.libMod
=
"numeric"
,
de.nGenes
=
"numeric"
,
de.fc
=
"numeric"
,
useZINB
=
"logical"
),
de.fc
=
"numeric"
),
prototype
=
prototype
(
nPlates
=
1
,
cell.plates
=
rep
(
1
,
100
),
plate.ingroup
=
1
,
...
...
@@ -333,5 +365,4 @@ setClass("Lun2Params",
cell.libSizes
=
rep
(
70000
,
100
),
cell.libMod
=
1
,
de.nGenes
=
0
,
de.fc
=
3
,
useZINB
=
FALSE
))
\ No newline at end of file
de.fc
=
3
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
R/Lun2Params-methods.R
+
1
−
2
View file @
d36b8dda
...
...
@@ -42,8 +42,7 @@ setValidity("Lun2Params", function(object) {
len
=
nCells
),
cell.libMod
=
checkNumber
(
v
$
cell.libMod
,
lower
=
0
),
de.nGene
=
checkInt
(
v
$
de.nGenes
,
lower
=
0
),
de.fc
=
checkNumber
(
v
$
de.fc
,
lower
=
0
),
useZINB
=
checkLogical
(
v
$
useZINB
,
len
=
1
))
de.fc
=
checkNumber
(
v
$
de.fc
,
lower
=
0
))
if
(
all
(
checks
==
TRUE
))
{
valid
<-
TRUE
...
...
This diff is collapsed.
Click to expand it.
man/Lun2Params.Rd
+
33
−
0
View file @
d36b8dda
...
...
@@ -17,6 +17,39 @@ The Lun2 simulation uses the following parameters:
\item{\code{nGenes}}{The number of genes to simulate.}
\item{\code{nCells}}{The number of cells to simulate.}
\item{\code{[seed]}}{Seed to use for generating random numbers.}
\item{\code{[nPlates]}}{The number of plates to simulate.}
\item{\emph{Plate parameters}}{
\describe{
\item{\code{path.ingroup}}{Plates considered to be part of the
"ingroup".}
\item{\code{path.mod}}{Plate effect modifier factor. The plate effect
variance is divided by this value.}
\item{\code{plate.var}}{Plate effect variance.}
}
}
\item{\emph{Gene parameters}}{
\describe{
\item{\code{gene.means}}{Mean expression for each gene.}
\item{\code{gene.disps}}{Dispersion for each gene.}
\item{\code{gene.ziMeans}}{Zero-inflated gene means.}
\item{\code{gene.ziDisps}}{Zero-inflated gene dispersions.}
\item{\code{gene.ziProps}}{Zero-inflated gene zero proportions.}
}
}
\item{\emph{Cell parameters}}{
\describe{
\item{\code{cell.plates}}{Plate that each cell comes from.}
\item{\code{cell.libSizes}}{Library size for each cell.}
\item{\code{cell.libMod}}{Modifier factor for library sizes.
The library sizes are multiplied by this value.}
}
}
\item{\emph{Differential expression parameters}}{
\describe{
\item{\code{de.nGenes}}{Number of differentially expressed genes.}
\item{\code{de.fc}}{Fold change for differentially expressed genes.}
}
}
}
The parameters not shown in brackets can be estimated from real data using
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment