To install HomologySeeker, please use:
if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("YenLab/HomologySeeker", upgrade = FALSE, dependencies = TRUE)
## or
if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("YenLab/HomologySeeker", upgrade = FALSE, dependencies = TRUE)
HomologySeeker requires single-cell matrics (row as genes and column as samples) from two species to seek Homo-HVGs.
In this vignette, we provied pre-built single-cell RNA-seq dataset sampled from mouse and human midbrain by Manno et al., Cell., 2016:
## Midbrain_singlecell_Manno.RData contains single-cell matrix of mouse and human
## Download it with
download.file("https://github.com/Soap4/Data/raw/main/scRNA-seq/Midbrain_singlecell_Manno.RData","Midbrain_singlecell_Manno.RData")
load("Midbrain_singlecell_Manno.RData")
## Or directly load it with
load(url("https://github.com/Soap4/Data/raw/main/scRNA-seq/Midbrain_singlecell_Manno.RData"))
To use HomologySeeker, you can simply run:
library(HomologySeeker)
midbrain <- HomoSeeker(RefSpec = "mouse", ## Name for species 1
QuySpec = "human", ## Name for species 2
RefSpec_mat = mouse, ## Single-cell matrix for species 1
QuySpec_mat = human, ## Single-cell matrix for species 2
HVGs_method = "seurat_vst") ## HVG selection method
The HomoSeeker()
function returns midbrain
, a HomoHVG object
that contains 6 slots: (access different slot by using midbrain@slot name
)
Species
: Species offical nameHomoHVG
: Species whole/overlapped Homo-HVGs listMatrix_orig
: Original single-cell matrixMatrix_homo
: Single-cell matrix with homologous genes as rowHVG_feature
: HVG informationTable_homo
: Homology information
To use HomologySeeker more flexibly, you can use standard HomologySeeker pipline as well:
First of all, HomologySeeker extract homologous information between input species by using HomoSelector()
function:
- You can check available species name by using
GetSpecNames()
function
library(HomologySeeker)
homo_mat <- HomoSelector(RefSpec = "mouse", ## Name for species 1
QuySpec = "human", ## Name for species 2
usedataset = TRUE) ## Whether use pre-built dataset
The homo_mat
contains homologous information between species 1 and 2 and used as input for further HVG selection.
- We implemented pre-built homologous table: Mouse-Human, Mouse-Zebrafish and Human-Zebrafish in HomologySeeker. Those datasets are available through
AvilData()
function.
Next, HomologySeeker identify Homo-HVGs through HVGSelector()
function:
midbrain <- HVGSelector(RefSpec = "mouse", ## Name for species 1
QuySpec = "human", ## Name for species 1
RefSpec_mat = mouse, ## Single-cell matrix for species 1
QuySpec_mat = human, ## Single-cell matrix for species 2
RefSpec_gene = "Gene_sym", ## Type of gene name of single-cell matrix of species 1
QuySpec_gene = "Gene_sym", ## Type of gene name of single-cell matrix of species 2
homo_mat = homo_mat, ## Homologous table returned by HomoSelector()
HVGs_method = "seurat_vst", ## HVG selection method
verbose = TRUE)
HVGSelector()
returns a HomoHVG object
as describe above.
🧐 Any possible questions or improvements for HomologySeeker are welcome to post on the issue page
Shaokang Mo🤡
soap79022@outlook.com
Mo, S., Qu, K., Huang, J., Li, Q., Zhang, W., Yen, K. Cross-species transcriptomics reveals bifurcation point during the arterial-to-hemogenic transition. Commun Biol. 6, 827 (2023). doi: 10.1038/s42003-023-05190-6