crossSpeciesCellTypeGOCorr {scGOclust}R Documentation

calculate cross-species correlation between cell types represented by scaled GO

Description

calculate cross-species correlation between cell types represented by scaled GO

Usage

crossSpeciesCellTypeGOCorr(
  species_1,
  species_2,
  cell_type_go_sp1,
  cell_type_go_sp2,
  corr_method = "pearson"
)

Arguments

species_1

name of species one

species_2

name of species two

cell_type_go_sp1

cell type GO table of species one calculated via getCellTypeGO

cell_type_go_sp2

cell type GO table of species two calculated via getCellTypeGO

corr_method

correlation method, choose among "pearson", "kendall", "spearman", default 'pearson'

Value

correlation between cell types

Examples


library(scGOclust)
library(httr)
httr::set_config(httr::config(ssl_verifypeer = FALSE))
data(mmu_tbl)
data(mmu_subset)
data(dme_tbl)
data(dme_subset)
mmu_go_obj = makeGOSeurat(ensembl_to_GO = mmu_tbl,
 seurat_obj = mmu_subset,
 feature_type = "external_gene_name")
dme_go_obj = makeGOSeurat(ensembl_to_GO = dme_tbl,
 seurat_obj = dme_subset,
 feature_type = "external_gene_name")

mmu_cell_type_go = getCellTypeGO(go_seurat_obj = mmu_go_obj, cell_type_co = "cell_type_annotation")
dme_cell_type_go = getCellTypeGO(go_seurat_obj = dme_go_obj, cell_type_co = "annotation")

crossSpeciesCellTypeGOCorr(species_1 = 'mmusculus',
 species_2 = 'dmelanogaster',
 cell_type_go_sp1 = mmu_cell_type_go,
 cell_type_go_sp2 = dme_cell_type_go)


[Package scGOclust version 0.2.1 Index]