Skip to main content

The SAMap algorithm

Project description

SAMap -- version 2.0.2

Citation

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.

Installation

pip

pip install sc-samap

Manual installation

Download Anacodna from here: https://www.anaconda.com/download/

Create and activate a new environment for SAMap as follows:

# Install SAMap dependencies availabe in conda
conda create -n SAMap -c conda-forge python=3.9 numpy=1.23.5 pip pybind11 h5py=3.8.0 leidenalg python-igraph texttable
conda activate SAMap

Having activated the environment, install SAMap like so:

git clone https://github.com/atarashansky/SAMap.git samap_directory
cd samap_directory
pip install .

NCBI BLAST must be installed for the commandline.

# Define NCBI BLAST version.
ncbi_blast_version='2.9.0'

# Download NCBI BLAST tarball.
wget "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${ncbi_blast_version}/ncbi-blast-${ncbi_blast_version}+-x64-linux.tar.gz"

# Extract NCBI BLAST binaries in current conda environment bin directory.
tar -xzvf "ncbi-blast-${ncbi_blast_version}+-x64-linux.tar.gz" \
    -C "${CONDA_PREFIX}/bin/" \
    --strip-components=2 \
    "ncbi-blast-${ncbi_blast_version}+/bin/"

Alternatively, add the NCBI BLAST binaries manually to the path:

# Define NCBI BLAST version.
ncbi_blast_version='2.9.0'

# Download NCBI BLAST tarball.
wget "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${ncbi_blast_version}/ncbi-blast-${ncbi_blast_version}+-x64-linux.tar.gz"

# Extract NCBI BLAST tarball.
tar -xzvf "ncbi-blast-${ncbi_blast_version}+-x64-linux.tar.gz"

# Add NCBI BLAST programs to PATH.
echo "export PATH=\"$PATH:/your/directory/ncbi-blast-${ncbi_blast_version}+/bin\"" >> ~/.bashrc
source ~/.bashrc

Installation time should take no more than 10 minutes.

Running BLAST

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.

Running SAMap

To run SAMap, use the SAMAP function in samap/mapping.py. Please see its function documentation for a description of the inputs and outputs. Take a look at the provided Jupyter notebook to get started (SAMap_vignette.ipynb).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc_samap-3.0.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sc_samap-3.0.0-py3-none-any.whl (92.1 kB view details)

Uploaded Python 3

File details

Details for the file sc_samap-3.0.0.tar.gz.

File metadata

  • Download URL: sc_samap-3.0.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sc_samap-3.0.0.tar.gz
Algorithm Hash digest
SHA256 2f2b1492ec774da7aee532c94633c849920f856fb1f5384d7c3be08fcb7be30b
MD5 b3cc4866428d13bdd9285bb7fc70f9cd
BLAKE2b-256 a9dc44af133787394908435c2ddb6b07915e00ff8bbe45ff36c31b23906749c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_samap-3.0.0.tar.gz:

Publisher: release.yml on atarashansky/SAMap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc_samap-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: sc_samap-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 92.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sc_samap-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a872a3f0efa16fb3173f9eaca3a668f29ad356a8d6f7cc594110ebf2a3a9bac7
MD5 ce51f79422a6d608a38dcdc3ec449c1a
BLAKE2b-256 e7148d34f7281d63a79c612116b72d34bcd1a453df57e7fd3f6a66ea7b096406

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc_samap-3.0.0-py3-none-any.whl:

Publisher: release.yml on atarashansky/SAMap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page