Please cite the following paper if using SAMap: https://elifesciences.org/articles/66747
Tarashansky, Alexander J., et al. "Mapping single-cell atlases throughout Metazoa unravels cell type evolution." Elife 10 (2021): e66747.
Requirements: Python ≥3.11. See
pyproject.tomlfor the full dependency list.
SAMap requires Python ≥3.11.
conda create -n SAMap -c conda-forge python=3.12 pip
conda activate SAMap
pip install sc-samapconda create -n SAMap -c conda-forge python=3.12 pip
conda activate SAMap
git clone https://github.com/atarashansky/SAMap.git
cd SAMap
pip install -e .SAMap requires NCBI BLAST on your PATH for the homology mapping step.
Easiest via conda:
conda install -c bioconda blastOr download binaries directly from NCBI.
Installation time should take no more than 10 minutes.
The BLAST mapping script can be run from the SAMap_vignette.ipynb Jupyter notebook.
Depending on the number of cores available on your machine and the size/type of the input fasta files, this step may take up to around 4 hours.
To run SAMap, use the SAMAP class from samap:
from samap import SAMAP
sm = SAMAP(sams={'sp1': 'species1.h5ad', 'sp2': 'species2.h5ad'}, f_maps='maps/')
sm.run()See the function documentation for a description of the inputs and outputs. Take a look at the provided Jupyter notebook to get started (SAMap_vignette.ipynb).