Description Usage Arguments Details Value Examples
View source: R/exportFromSeurat.R
This function allows to export a Seurat object to visualize in Cerebro.
1 2 3 4 5 | exportFromSeurat(object, file, experiment_name, organism,
column_sample = "sample", column_cluster = "cluster",
column_nUMI = "nUMI", column_nGene = "nGene",
column_cell_cycle_seurat = NULL, column_cell_cycle_cyclone = NULL,
add_all_meta_data = TRUE)
|
object |
Seurat object. |
file |
Where to save the output. |
experiment_name |
Experiment name. |
organism |
Organism, e.g. hg (human), mm (mouse), etc. |
column_sample |
Column in object@meta.data that contains information about sample; defaults to 'sample'. |
column_cluster |
Column in object@meta.data that contains information about cluster; defaults to 'cluster'. |
column_nUMI |
Column in object@meta.data that contains information about number of transcripts per cell; defaults to 'nUMI'. |
column_nGene |
Column in object@meta.data that contains information about number of expressed genes per cell; defaults to 'nGene'. |
column_cell_cycle_seurat |
Optional column in object@meta.data that contains information about cell cycle phase based on Regev method (default of Seurat); defaults to NULL. |
column_cell_cycle_cyclone |
Optional column in object@meta.data that contains information about cell cycle phase based on Cyclone method; defaults to NULL. |
add_all_meta_data |
If set to TRUE, all further meta data columns will be extracted as well. |
Export Seurat object to Cerebro.
Returns object to be saved and loaded in Cerebro.
1 2 3 4 5 6 7 8 9 10 11 12 13 | exportFromSeurat(
object = seurat,
file = 'PDX_patient_A.crb',
experiment_name = 'PDX_patient_A',
organism = 'hg',
column_sample = 'sample',
column_cluster = 'cluster',
column_nUMI = 'nUMI',
column_nGene = 'nGene',
column_cell_cycle_seurat = 'cell_cycle_seurat',
column_cell_cycle_cyclone = 'cell_cycle_cyclone',
add_all_meta_data = TRUE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.