get shared up and down regulated GO terms for all pairs of cell types
getCellTypeSharedGO( species_1, species_2, analyzed_go_seurat_sp1, analyzed_go_seurat_sp2, cell_type_col_sp1, cell_type_col_sp2, layer_use = "data", p_val_threshould = 0.01 )
species_1
: name of species onespecies_2
: name of species twoanalyzed_go_seurat_sp1
: analyzed GO seurat object of species oneanalyzed_go_seurat_sp2
: analyzed GO seurat object of species twocell_type_col_sp1
: cell type column name for species 1 datacell_type_col_sp2
: cell type column name for species 2 datalayer_use
: layer to use for marker computation, default 'data' which after NormalizeData will be log1p normalized data.p_val_threshould
: p value threshold for selecting DEG (p_adjust)a list with sp1 raw, sp2 raw and shared, significant up and down regulated GO terms per cell type (pair)
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_go_obj_analyzed = analyzeGOSeurat(mmu_go_obj, "cell_type_annotation") dme_go_obj_analyzed = analyzeGOSeurat(dme_go_obj, "annotation") getCellTypeSharedGO(species_1 = 'mmusculus', species_2 = 'dmelanogaster', analyzed_go_seurat_sp1 = mmu_go_obj_analyzed, analyzed_go_seurat_sp2 = dme_go_obj_analyzed, cell_type_col_sp1 = 'cell_type_annotation', cell_type_col_sp2 = 'annotation', layer_use = "data", p_val_threshould = 0.01)
Useful links