Skip to main content

Network based gene classification

Reason this release was yanked:

There was a problem with scaling giving wrong probabilities

Project description

Tests Documentation Status PyPI PyPI - Python Version License Code style: black

PyGenePlexus DOI

A Python package of the GenePlexus analysis pipeline.

Quick start

Installation

Install the GenePlexus package via pip.

pip install geneplexus

Run GenePlexus pipline

Example script

See example/example_run.py for example usage of the API.

Command-line interface

geneplexus --input_file example/input_genes.txt --output_dir example_result

Full CLI options (check out with geneplexus --help)

Run the GenePlexus pipline on a input gene list.

options:
  -h, --help            show this help message and exit
  -i , --input_file     Input gene list (.txt) file. (default: None)
  -d , --gene_list_delimiter
                        Delimiter used in the gene list. Use 'newline' if the genes are separated
                        by new line, and use 'tab' if the genes are seperate by tabs. Other
                        generic separator are also supported, e.g. ', '. (default: newline)
  -dd , --data_dir      Directory in which the data are stored, if set to None, then use the
                        default data directory ~/.data/geneplexus (default: None)
  -n , --network        Network to use. The choices are: {BioGRID, STRING, IMP} (default: STRING)
  -f , --feature        Types of feature to use. The choices are: {SixSpeciesN2V} (default:
                        SixSpeciesN2V)
  -s1 , --sp_trn        Species of training data The choices are: {Human, Mouse, Fly, Worm,
                        Zebrafish, Yeast} (default: Human)
  -s2 , --sp_res        Species of results data The choices are: {Human, Mouse, Fly, Worm,
                        Zebrafish, Yeast} (default: Mouse)
  -g1 , --gsc_trn       Geneset collection used to generate negatives. The choices are: {GO,
                        Monarch, Mondo, Combined} (default: GO)
  -g2 , --gsc_res       Geneset collection used for model similarities. The choices are: {GO,
                        Monarch, Mondo, Combined} (default: GO)
  -s , --small_edgelist_num_nodes
                        Number of nodes in the small edgelist. (default: 50)
  -od , --output_dir    Output directory with respect to the repo root directory. (default:
                        result/)
  -l , --log_level      Logging level. The choices are: {CRITICAL, ERROR, WARNING, INFO, DEBUG}
                        (default: INFO)
  -ad, --auto_download_off
                        Turns off autodownloader which is on by default. (default: False)
  -q, --quiet           Suppress log messages (same as setting log_level to CRITICAL). (default:
                        False)
  -z, --zip-output      If set, then compress the output directory into a Zip file. (default:
                        False)
  --clear-data          Clear data directory and exit. (default: False)
  --overwrite           Overwrite existing result directory if set. (default: False)
  --skip-mdl-sim        Skip model similarity computation (default: False)
  --skip-sm-edgelist    Skip making small edgelist. (default: False)

Dev

Installation

Install the PyGenePlexus package in editable mode with dev dependencies

pip install -e ."[dev]"

Testing

Run the default test suite

pytest test/

By default, test data will be cached. Thus, after the first test run, data redownload will not be tested. To force redownload, specify the --cache-clear option

pytest test/ --cache-clear

Building Documentation

  1. Install doc dependencies
pip install -r docs/requirements.txt
  1. Build
cd docs
make html
  1. Open doc
open build/html/index.html

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

geneplexus-2.0.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

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

geneplexus-2.0.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file geneplexus-2.0.0.tar.gz.

File metadata

  • Download URL: geneplexus-2.0.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for geneplexus-2.0.0.tar.gz
Algorithm Hash digest
SHA256 701b659fb5ff64e145bcc6f4f775653e8e85761a12ad131c0550ccae992a3de7
MD5 5a67ce0bb2b83e16f1dcaf90cc372d6e
BLAKE2b-256 d3840280a0e5ebe1f9c3a2e3b1f33dfdef6f65af1f9a078712d58f4a1ab4a798

See more details on using hashes here.

File details

Details for the file geneplexus-2.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for geneplexus-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f04218d22193fa6fe5b489adb9eb8e8307a6a4a36f503cac8d9c686c99fcd783
MD5 1f78dea3d87e161c94887d553ff891d6
BLAKE2b-256 5251da3308cf1e9a9a3052041d51fbff1f60de64cc9bf1a6ff826c42815d07a5

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