Example 4: Analysis of mouse whole-embryo slices across distinct ST technologies.
- Run INSPIRE on the whole-embryo datasets generated by seqFISH and Stereo-seq
- Import packages
- Load data
- Data preprocessing
- Build spatial graph and prepare node features for LGCN
- Run INSPIRE model
- Access spot representations, proportions of spatial factors in spots, and gene loading matrix
- Spatial distributions of spatial factors in embryos
- Spot representations and spatial domain identification
- Save results
- Analysis of spatial factors
- Validate INSPIRE’s gene imputation capability
- Impute gene expressions for seqFISH data from Stereo-seq data
- Differentially expressed gene analysis based on measured and imputed genes