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: https://doi.org/10.1016/j.ymeth.2015.06.021

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
purposes.

### Installation

This package is hosted at PyPi (https://pypi.org/project/pypairs/) and can be installed on any system running Python3
with:

```
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](http://www.numpy.org/)
* [Numba](https://numba.pydata.org/)
* [Pandas](https://pandas.pydata.org/)
* [Scanpy](https://github.com/theislab/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.

Source Distribution

pypairs-2.0.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

pypairs-2.0.5-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pypairs-2.0.5.tar.gz.

File metadata

  • Download URL: pypairs-2.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

File hashes

Hashes for pypairs-2.0.5.tar.gz
Algorithm Hash digest
SHA256 902eeb0714d1102776160acbd60dd5efb4cbbfbcf49123b3a001b8d572c7e19f
MD5 813ef5cd8fd0f48d3736be215be83653
BLAKE2b-256 edcb84166c8f0783a355875f19b33c5c3be11407ac67ff1148b52263c58ced0e

See more details on using hashes here.

File details

Details for the file pypairs-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: pypairs-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

File hashes

Hashes for pypairs-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2b80dd5f330f46376bf307589e885036828ac3aa43a993d1f4da57bf7bb83e1d
MD5 ae1a0423e6c78d613333568e6af008cf
BLAKE2b-256 daddd29d5d36e9c89783d2cdc29b4f5d83a6fc834c9671530dbd91c6d80b502f

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