Skip to main content

A Python-reimplementation of the Pairs algorithm described by A. Scialdone et al. (2015)

Project description

# PyPairs - A python scRNA-Seq classifier

This is a python-reimplementation of the _Pairs_ algorithm as described by A. Scialdone et. al. (2015).
Original Paper available under:

The algorithm aims to classify single cells based on their transcriptomic signal. Initially created to predict cell
cycle phase from scRNA-Seq data, this algorithm can be used for various applications.

It is a supervised maschine learning algorithm and as such it consits of two components:
training (sandbag) and prediction (cyclone)

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing

### Installation

This package is hosted at PyPi ( and can be installed on any system running Python3

python3 -m pip install pypairs

### Minimal example

Assuming you have two scRNA count files (csv, columns = samples, rows = genes) and one annotation file (csv, no header,
two rows: "gene, class") a minimal example would look like this:

from pypairs import wrapper

trainings_matrix = [PATH TO MATRIX]
annotation = [PATH TO ANNOTATION]
testing_matrix = [PATH TO MATRIX]

marker_pairs = wrapper.sandbag_from_file(trainings_matrix, annotation)

prediction = wrapper.cyclone_from_file(testing_matrix, marker_pairs)

## Core Dependencis

* [Numpy](
* [Numba](
* [Pandas](
* [Scanpy](

## Authors

* **Antonio Scialdone** - *original algorithm*
* **Ron Fechtner** - *implementation and extension in Python*

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

Project details

Download files

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

Files for pypairs, version 2.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pypairs-2.0.5-py3-none-any.whl (9.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pypairs-2.0.5.tar.gz (8.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page