The main Haystack function
haystack(x, ...)# S3 method for matrix
haystack(
x,
dim1 = 1,
dim2 = 2,
detection,
method = "highD",
use.advanced.sampling = NULL,
dir.randomization = NULL,
scale = TRUE,
grid.points = 100,
grid.method = "centroid",
...
)
# S3 method for data.frame
haystack(
x,
dim1 = 1,
dim2 = 2,
detection,
method = "highD",
use.advanced.sampling = NULL,
dir.randomization = NULL,
scale = TRUE,
grid.points = 100,
grid.method = "centroid",
...
)
# S3 method for Seurat
haystack(
x,
assay = "RNA",
slot = "data",
coord = "pca",
dims = NULL,
cutoff = 1,
method = NULL,
use.advanced.sampling = NULL,
...
)
# S3 method for SingleCellExperiment
haystack(
x,
assay = "counts",
coord = "TSNE",
dims = NULL,
cutoff = 1,
method = NULL,
use.advanced.sampling = NULL,
...
)
An object of class "haystack"
a matrix or other object from which coordinates of cells can be extracted.
further parameters passed down to methods.
column index or name of matrix for x-axis coordinates.
column index or name of matrix for y-axis coordinates.
A logical matrix showing which genes (rows) are detected in which cells (columns)
choose between highD (default) and 2D haystack.
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 assay data for Seurat method.
name of slot for assay data for Seurat method.
name of coordinates slot for specific methods.
dimensions from coord to use. By default, all.
cutoff for detection.