View source: R/anndata_to_ctd.R
anndata_to_ctd | R Documentation |
AnnData
==> CellTypeDataset
Convert: AnnData
==> CellTypeDataset
anndata_to_ctd(
obj,
annotLevels,
dataset = basename(tempfile()),
chunk_size = NULL,
agg_fun = "mean",
agg_method = c("monocle3", "stats"),
dropNA = TRUE,
standardise = TRUE,
as_sparse = TRUE,
as_delayedarray = FALSE,
verbose = TRUE,
...
)
obj |
A single-cell object supported by scKirby. See converters for a table of all supported conversions. |
annotLevels |
List with arrays of strings containing the cell type
names associated with each column in |
dataset |
CellTypeData. name. |
chunk_size |
An integer indicating number of cells to include per chunk.
This can be a more memory efficient and scalable way of aggregating on-disk
data formats like AnnData,
rather than reading in the entire matrix into memory at once
(default: |
agg_fun |
Aggregation function passed to
aggregate_mapped_genes.
Set to |
agg_method |
Aggregation method. |
dropNA |
Drop genes assigned to |
standardise |
Run standardise_ctd. |
as_sparse |
Convert
If |
as_delayedarray |
Convert aggregated matrix to DelayedArray. |
verbose |
Print messages. |
... |
Arguments passed on to
|
obj <- example_obj("anndata")
obj2 <- anndata_to_ctd(obj, annotLevels=list(groups=NULL))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.