saveDataset | R Documentation |
Save a single-cell dataset to disk, usually in preparation for upload.
saveDataset(x, path, metadata)
x |
A SummarizedExperiment or one of its subclasses. |
path |
String containing the path to a new directory in which to save |
metadata |
Named list containing metadata for this dataset,
see the schema returned by |
x
and its metadata are saved into path
, and NULL
is invisibly returned.
Aaron Lun
https://github.com/ArtifactDB/bioconductor-metadata-index, on the expected schema for the metadata.
polishDataset
, to polish x
before saving it.
uploadDirectory
, to upload the saved contents.
library(SingleCellExperiment)
sce <- SingleCellExperiment(list(counts=matrix(rpois(1000, lambda=1), 100, 10)))
rownames(sce) <- sprintf("GENE_%i", seq_len(nrow(sce)))
colnames(sce) <- head(LETTERS, 10)
meta <- list(
title="My dataset",
description="This is my dataset",
taxonomy_id="10090",
genome="GRCh38",
sources=list(list(provider="GEO", id="GSE12345")),
maintainer_name="Shizuka Mogami",
maintainer_email="mogami.shizuka@765pro.com"
)
tmp <- tempfile()
saveDataset(sce, tmp, meta)
list.files(tmp, recursive=TRUE)
alabaster.base::readObject(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.