Package introducing the InSituPy framework to analyze single-cell spatial transcriptomics data.
Project description
InSituPy: A framework for histology-guided, multi-sample analysis of single-cell spatial transcriptomics data
InSituPy is a Python package designed to facilitate the analysis of single-cell spatial transcriptomics data. With InSituPy, you can easily load, visualize, and analyze the data, enabling and simplifying the comprehensive exploration of spatial gene expression patterns within tissue sections and across multiple samples. Currently the analysis is focused on data from the Xenium In Situ methodology but a broader range of reading functions will be implemented in the future.
Latest changes
!!!Warning: This repository is under very active development and it cannot be ruled out that changes might impair backwards compatibility. If you observe any such thing, please feel free to contact us to solve the problem. Thanks!
For the latest developments check out the releases.
Installation
Prerequisites
Create and activate a conda environment:
conda create --name insitupy python=3.10
conda activate insitupy
Method 1: From PyPi
pip install insitupy-spatial
Method 2: Installation from Cloned Repository
-
Clone the repository to your local machine:
git clone https://github.com/SpatialPathology/InSituPy.git
-
Navigate to the cloned repository and select the right branch:
cd InSituPy # Optionally: switch to dev branch git checkout dev
-
Install the required packages using
pipwithin the conda environment:# basic installation pip install . # for developmental purposes add the -e flag pip install -e .
Method 3: Direct Installation from GitHub
-
Install directly from GitHub:
# for installation without napari use pip install git+https://github.com/SpatialPathology/InSituPy.git
Make sure you have Conda installed on your system before proceeding with these steps. If not, you can install Miniconda or Anaconda from https://docs.conda.io/en/latest/miniconda.html.
To ensure that the InSituPy package is available as a kernel in Jupyter notebooks within your conda environment, you can follow the instructions here.
Getting started
Documentation
For detailed instructions on using InSituPy, refer to the official documentation.
Features
- Data Preprocessing: InSituPy provides functions for normalizing, filtering, and transforming raw in situ transcriptomics data.
- Interactive Visualization: Create interactive plots using napari to easily explore spatial gene expression patterns.
- Annotation: Annotate Xenium In Situ data in the napari viewer or import annotations from external tools like QuPath.
- Multi-sample analysis: Perform analysis on an experiment-level, i.e. with multiple samples at once.
Contributing
Contributions are welcome! If you find any issues or have suggestions for new features, please open an issue or submit a pull request.
License
InSituPy is licensed under the BSD-3-Clause.
InSituPy is developed and maintained by Johannes Wirth and Anna Chernysheva. Feedback is highly appreciated and hopefully InSituPy helps you with your analysis of spatial transcriptomics data. The package is thought to be a starting point to simplify the analysis of in situ sequencing data in Python and it would be exciting to integrate functionalities for larger and more comprehensive data structures. Currently, the framework focuses on the analysis of Xenium In Situ data but it is planned to integrate more methodologies and any support on this is highly welcomed.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file insitupy_spatial-0.7.0.tar.gz.
File metadata
- Download URL: insitupy_spatial-0.7.0.tar.gz
- Upload date:
- Size: 452.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.12 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9705818c15f587881a020d9618fa536888ec1612067d3ec1bca9a5f3cd7f0894
|
|
| MD5 |
13a79bcae5d5f75115a7c8678276cd09
|
|
| BLAKE2b-256 |
5d5dc2fe360453f1374d4d4d3bda80065dfe91753bd21ef06036c9526d147acb
|
File details
Details for the file insitupy_spatial-0.7.0-py3-none-any.whl.
File metadata
- Download URL: insitupy_spatial-0.7.0-py3-none-any.whl
- Upload date:
- Size: 478.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.12 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d73c4463549a5f8a6f9827b818d154b4d10014b262c7e08abd880deeb02cbb4
|
|
| MD5 |
09f5f4d1af2884afaa9b605d3e1ac82e
|
|
| BLAKE2b-256 |
05dd0b2c651d444218aacd0b0c48007ff5f67cb4b5fa12f98ca579a015ed5e57
|