haystack.Rd
The main Haystack function
haystack(x, ...)
# S3 method for matrix
haystack(
x,
expression,
weights.advanced.Q = NULL,
dir.randomization = NULL,
scale = TRUE,
grid.points = 100,
grid.method = "centroid",
...
)
# S3 method for data.frame
haystack(
x,
expression,
weights.advanced.Q = NULL,
dir.randomization = NULL,
scale = TRUE,
grid.points = 100,
grid.method = "centroid",
...
)
# S3 method for Seurat
haystack(
x,
coord,
assay = "RNA",
slot = "data",
dims = NULL,
cutoff = 1,
method = NULL,
weights.advanced.Q = NULL,
...
)
# S3 method for SingleCellExperiment
haystack(
x,
assay = "counts",
coord = "TSNE",
dims = NULL,
cutoff = 1,
method = NULL,
weights.advanced.Q = NULL,
...
)
a matrix or other object from which coordinates of cells can be extracted.
further parameters passed down to methods.
a matrix with expression data of genes (rows) in cells (columns)
If NULL naive sampling is used. If a vector is given (of length = no. of cells) sampling is done according to the values in the vector.
If NULL, no output is made about the random sampling step. If not NULL, files related to the randomizations are printed to this directory.
Logical (default=TRUE) indicating whether input coordinates in x should be scaled to mean 0 and standard deviation 1.
An integer specifying the number of centers (gridpoints) to be used for estimating the density distributions of cells. Default is set to 100.
The method to decide grid points for estimating the density in the high-dimensional space. Should be "centroid" (default) or "seeding".
name of coordinates slot for specific methods.
name of assay data for Seurat method.
name of slot for assay data for Seurat method.
dimensions from coord to use. By default, all.
cutoff for detection.
choose between highD (default) and 2D haystack.
An object of class "haystack"