View source: R/gemini_initialize.R
gemini_initialize | R Documentation |
Creates a gemini.model object given Input data and initialization parameters.
gemini_initialize( Input, guide.pair.annot = "guide.pair.annot", replicate.map = "replicate.map", sample.column.name = "samplename", LFC.name = "LFC", nc_gene, CONSTANT = 32, concordance = 1, prior_shape = 0.5, pattern_join = ";", pattern_split = ";", window = NULL, monotonize = FALSE, verbose = FALSE, cores = 1, save = NULL )
Input |
an object of class gemini.input |
guide.pair.annot |
the name of an object within |
replicate.map |
the name of an object within |
sample.column.name |
a character or integer indicating which column of |
LFC.name |
a character indicating an object within Input to treat as LFC. By default, "LFC" is used,
which is the output of |
nc_gene |
a character naming the gene to use as a negative control. See details for more. |
CONSTANT |
a numeric indicating a constant value that shifts counts to reduce outliers, see Details (default = 32). |
concordance |
a numeric value to initialize x (default = 1) |
prior_shape |
shape parameter of Gamma distribution used to model the variation in the
data in |
pattern_join |
a character to join the gene combinations found in
|
pattern_split |
a character to split the guide combinations found in
|
window |
a numeric if window smoothing should be done on initialized tau values, otherwise NULL (default) for no window smoothing |
monotonize |
a logical specifying whether the variance should be monotonically increasing. (default FALSE) |
verbose |
default FALSE |
cores |
numeric indicating the number of cores to use. See details in |
save |
a character (file path) or logical indicating whether the initialized model should be saved. |
guide.pair.annot is created with the following format:
1st column contains guide pairs, joined by pattern_split
.
2nd column contains the name of gene mapping to the first guide in the 1st column.
3rd column contains the name of gene mapping to the second guide in the 1st column.
Additional columns may be appended to guide.pair.annot, but the first three columns must be defined as above.
Use of negative control As described in Zamanighomi et al., it is highly recommended to specify a negative control. In the event that no negative control is specified, GEMINI will use the median LFC of all guide pairs targeting a gene to initialize that gene's effect. While this may be reasonable in large all-by-all screens, it is not recommended in smaller screens or some-by-some screens. As a result, when possible, be sure to specify a negative control.
a Model object of class gemini.model
data("Input", package = "gemini") Model <- gemini_initialize(Input, nc_gene = "CD81")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.