Skip to main content

Cell command line predictor

Project description

cPredictor package

PyPI version CI/CD Maintainability Test Coverage Ruff DOI

This repository defines a command-line tool to predict (cPredictor) datasets according to a cell meta-atlases. At the present time only the meta-atlas for the cornea has been implemented.

Conda and pip

If you have not used Bioconda before, first set up the necessary channels (in this order!). You only have to do this once.

$ conda config --add channels defaults
$ conda config --add channels bioconda
$ conda config --add channels conda-forge

Install cPredictor into a conda environment and install with PyPI:

$ conda create -n cPredictor python=3.9 pip
$ conda activate cPredictor
$ pip install cPredictor

To see what each of the current functions do you can run these commands:

$ SVM_performance --help
$ SVM_predict --help
$ SVM_import --help
$ SVM_pseudobulk --help

Docker

Alternatively you can run the package containerized through docker:

$ docker pull artsofcoding/cpredictor:latest
$ docker tag artsofcoding/cpredictor:latest cpredictor
$ docker run -it --name cpredictor -p 8080:80 -v {path_to_H5AD_object}:/data cpredictor

In the activated docker container you can then go to the terminal:

# cd /data
# SVM_predict --query_H5AD {H5AD_object}.h5ad --OutputDir {your_output_dir} --meta_atlas

Performance with the corneal meta-atlas

Pretrained models can run on ~100.000 cells within 2 minutes on a standard laptop (4 core CPU & 8GB RAM)

To run the container locally you will need a computer with at least 28 GB of RAM and a 4-core processor.

The documentation will be extended and improved upon in later versions.

How to cite

When using this software package, please correctly cite the accompanied DOI under "Citation": https://zenodo.org/doi/10.5281/zenodo.10621121

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cPredictor-0.4.6-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file cPredictor-0.4.6-py3-none-any.whl.

File metadata

  • Download URL: cPredictor-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cPredictor-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2b874062694827011bc8354749c2a6580fe42534546257f3d4e49e96f2f465
MD5 fa7e57026ef03544b488bb384e70104d
BLAKE2b-256 da1a40723daf87a608c18ea754e7a14ba398e2ef4495dc2200a6259a5bd28f43

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