scrat.new | R Documentation |
This function initializes the scrat environment and sets the preferences.
scrat.new(preferences)
preferences |
list with the following parameters:
|
scrat requires input of mapped read counts or preprocessed expression data. Additionally, it is recommended to provide group information about the cells (e.g. celltypes), otherwise groups will be assigned automatically based on cells' expression landscapes.
indata
is to be provided as Seurat
object, or as two-dimensional numerical matrix (columns and rows represent the cells and genes, respectively). scrat can apply read count preprocessing or use preprocessed expression values.
Please check the vignette for more details on the parameters.
A new scrat environment which is passed to scrat.run
.
env <- scrat.new(list(dataset.name="Example", dim.1stLvlSom="auto", database.dataset="auto", standard.spot.modules="kmeans", preprocessing = list( cellcycle.correction = FALSE, create.meta.cells = TRUE, feature.centralization = TRUE, sample.quantile.normalization = TRUE ), pseudotime.estimation = list( n.waypoints=20, n.iterations=20, k=30, I=5, initiator.sample=1) ) ) # definition of indata, group.labels and group.colors env$indata = matrix( runif(1000), 100, 10 ) env$group.labels = c( rep("class 1", 5), rep("class 2", 4), "class 3" ) env$group.colors = c( rep("red", 5), rep("blue", 4), "green" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.