View source: R/cluster_export.R
cluster_export | R Documentation |
This function creates a clusters.csv
file similar to the ones created by
SpaceRanger at outs/analysis/clustering
but with the key
column that
combines the barcode
and the sample_id
, which is needed when the spe
object contains data from multiple samples given that the barcodes are
duplicated.
cluster_export(
spe,
cluster_var,
cluster_dir = file.path(tempdir(), "exported_clusters"),
overwrite = TRUE
)
spe |
A
SpatialExperiment-class
object. See |
cluster_var |
A |
cluster_dir |
A |
overwrite |
A |
The path to the exported clusters.csv
file.
Other cluster export/import utility functions:
cluster_import()
if (enough_ram()) {
## Obtain the necessary data
if (!exists("spe")) spe <- fetch_data("spe")
## Export two cluster variables
cluster_export(spe, "spatialLIBD")
cluster_export(spe, "GraphBased")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.