View source: R/functions-core.R
bindSeuratObj | R Documentation |
Allows user to attach batch-normalized reference cell data from Seurat into 'Phemd' object containing raw expression data and metadata
bindSeuratObj(phemd_obj, seurat_obj, batch.colname = "plt")
phemd_obj |
Phemd object initialized using createDataObj |
seurat_obj |
S4 'seurat' object containing batch-normalized reference cell data |
batch.colname |
Name of column in Seurat object that denotes batch ID |
'Phemd' object containing with attached Seurat object
my_phemdObj <- createDataObj(all_expn_data, all_genes, as.character(snames_data))
my_seuratObj <- Seurat::CreateSeuratObject(counts = t(all_expn_data[[1]]), project = "A")
my_seuratObj <- Seurat::FindVariableFeatures(object = my_seuratObj)
my_seuratObj <- Seurat::ScaleData(object = my_seuratObj, do.scale=FALSE, do.center=FALSE)
my_seuratObj <- Seurat::RunPCA(object = my_seuratObj, pc.genes = colnames(all_expn_data[[1]]), do.print = FALSE)
my_seuratObj <- Seurat::FindNeighbors(my_seuratObj, reduction = "pca", dims.use = 1:10)
my_seuratObj <- Seurat::FindClusters(my_seuratObj, resolution = 0.6, print.output = 0, save.SNN = TRUE)
my_phemdObj <- bindSeuratObj(my_phemdObj, my_seuratObj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.