Skip to content

DDDoGGie/STAE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STAE

STAE:Spatial Temporal Auto-Encoder
This is an R package
website url:http://db.regeomics.cn/

Overview

 
With the spatial transcriptomics data of single-cell resolution, we can recognize the spatio-temporal patterns of planarian. As the single cell RNA-seq data are characterized by high signature dimensions and feature redundancy, the predictions made directly in the original space can lead to unsatisfactory pattern recognition for differentiation and migration. To discover the temporal and spatial pattern, we propose the Spatial Temporal Auto-Encoder (STAE) algorithm to extract recessive features from single cell data and fuse the cell’s temporal and spatial properties to infer differentiation and migration.
 
 
STAE  
 

Installation

Setup

STAE is available from GitHub with:

#If you don't have devtools installed, please install it first

install.packages("devtools")

devtools::install_github("zenglab-regeneration/STAE")

Depend

Some programs of our project require a python environment, so if you don't have a python environment, please follow the steps below.

  • install anaconda
  • Create a python3.9 environment

When you have anaconda installed, you need to create a python conda.

conda create -n testconda python = 3.9

Examples from paper

Dataset

  • bimr before_iterative_mapping_result -By matching single cells, the gene expression of the spatial data at the previous time point is obtained
  • aimr after_iterative_mapping_result -By matching single cells, the gene expression of the spatial data at the latter time point is obtained
  • bsd before_sc_data -Gene expression in single cells at the previous time point
  • asd after_sc_data -Gene expression in cells at the latter time point
  • pse pseudotime -Pseudo-time information for each cell

Environment settings

library('STAE')
help(package = 'STAE')

#set the py conda
pythonEnvSet("D:/anaconda/envs/testconda")

#Check the dependent environment for the program to run, and automatically install the missing python package
testEnv()

Data processing

#Please note that data processed by this function will be stored in the package and not be return
dataProcessing(bimr,aimr,bsd,asd,pse)  

#If you don't have a pse file please pass in an empty data frame
pse <- as.data.frame(matrix(nrow=0,ncol=3))
dataProcessing(bimr,aimr,bsd,asd,pse) 

Run

#position distance ratio
pdr = 0.1  

#pseflag :Pseudo-time files are not used by default
pseflag <- FALSE

#data used for this process will be automatically called if dataProcessing has been run
stae(pdr,pseflag)  

Stae plot

#Differentiation and migration of cell type
dam = c('Nb2') 
staePlot(dam)

Result plot

STAE_example

About

Spatial Temporal Auto-Encoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.2%
  • R 13.8%