convert: convert

Description Usage Arguments Value Examples

View source: R/ascend_utilities.R

Description

Conversion function for working with the 'ascend“ package. This conversion function will convert an EMSet to the following classes: SingleCellExperiment, Seurat, and SconeExperiment. This function will also convert SingleCellExperiment and Seurat objects to an EMSet. To convert between Seurat and SingleCellExperiment, it is recommended you use the instructions for Seurat [here](https://satijalab.org/seurat/conversion_vignette.html#converting-tofrom-singlecellexperiment).

Usage

1
convert(x, to = c("sce", "seurat", "scone", "EMSet"))

Arguments

x

Object to convert

to

sce, seurat, scone, EMSet

Value

Object in specified format

Examples

1
2
3
4
5
# Load EMSet
em_set <- ascend::raw_set

# Convert to Single Cell Experiment
sce <- convert(em_set, to =  "sce")

IMB-Computational-Genomics-Lab/ascend documentation built on Aug. 29, 2019, 4:10 a.m.