Skip to main content

Spatial Single-Cell Analysis Toolkit

Project description

Single-Cell Image Analysis Package


build: Unix-Mac-Win Docs Downloads PyPI Version PyPI License Gitter chat DOI



Scimap is a scalable toolkit for analyzing spatial molecular data. The underlying framework is generalizable to spatial datasets mapped to XY coordinates. The package uses the anndata framework making it easy to integrate with other popular single-cell analysis toolkits. It includes preprocessing, phenotyping, visualization, clustering, spatial analysis and differential spatial testing. The Python-based implementation efficiently deals with large datasets of millions of cells.

Installation

We strongly recommend installing scimap in a fresh virtual environment.

# If you have conda installed
conda create --name scimap python=3.8
conda activate scimap

Install scimap directly into an activated virtual environment:

$ pip install scimap

After installation, the package can be imported as:

$ python
>>> import scimap as sm

Notice for Apple M1 users

Please note that multiple python packages have not yet extended support for M1 users. Below is a temporary solution to install scimap in Apple M1 machines. Please follow the instructions in the given order.

# create and load a new environment
conda create -y -n scimap -c andfoy python=3.9 pyqt
conda activate scimap

# if you do not have xcode please install it
xcode-select --install

# if you do not have homebrew please install it
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# if you do not have cmake install it
brew install cmake

# install h5py
brew install hdf5@1.12
HDF5_DIR=/opt/homebrew/Cellar/hdf5/ pip install --no-build-isolation h5py

# install llvmlite
conda install llvmlite -y

# install leidenalg
pip install git+https://github.com/vtraag/leidenalg.git

# install scimap
pip install -U scimap

# uninstall 
conda remove llvmlite -y
pip uninstall numba -y
pip uninstall numpy -y

# reinstall this specific version of llvmlite (ignore errors/warning)
pip install -i https://pypi.anaconda.org/numba/label/wheels_experimental_m1/simple llvmlite

# reinstall this specific version of numpy (ignore errors/warning)
pip install numpy==1.22.3

# reinstall this specific version of numba (ignore errors/warning)
pip install -i https://pypi.anaconda.org/numba/label/wheels_experimental_m1/simple numba

Get Started

Detailed documentation of scimap functions and tutorials are available here.

SCIMAP development is led by Ajit Johnson Nirmal at the Laboratory of Systems Pharmacology, Harvard Medical School.

Funding

This work is supported by the following NIH grant K99-CA256497

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

scimap-0.22.2.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

scimap-0.22.2-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file scimap-0.22.2.tar.gz.

File metadata

  • Download URL: scimap-0.22.2.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.6 Darwin/19.6.0

File hashes

Hashes for scimap-0.22.2.tar.gz
Algorithm Hash digest
SHA256 6c0faa5718721727e829b2ef28c31907e619e6ece893b08d3552a545690e032f
MD5 f60b2d1ab450bba8058c8abeadb1a03b
BLAKE2b-256 742ea8f594d26410ffa02fff255966f0e0dc421ac5031d97c228b52eab2fda24

See more details on using hashes here.

File details

Details for the file scimap-0.22.2-py3-none-any.whl.

File metadata

  • Download URL: scimap-0.22.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.6 Darwin/19.6.0

File hashes

Hashes for scimap-0.22.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17e3dee3bab0cd1a76c8ca726849a9bd8adaebb0e072ffe921215a29859c4954
MD5 087a676303a2b12f5cb34787c8b1edf5
BLAKE2b-256 64b2a6cab771ed06af23b2a6a87d9f5dee6253700b60b4432dcd3dc94e948e66

See more details on using hashes here.

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