Skip to main content

Network based gene classification

Project description

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

PyGeneplexus

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.

optional arguments:
  -h, --help            show this help message and exit
  -i , --input_file     Input gene list (.txt) file (one gene per line). (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)
  -n , --network        Network to use. {format_choices(config.ALL_NETWORKS)} (default: STRING)
  -f , --feature        Types of feature to use. The choices are: {Adjacency, Embedding,
                        Influence} (default: Embedding)
  -g , --gsc            Geneset collection used to generate negatives and the modelsimilarities.
                        The choices are: {GO, DisGeNet} (default: GO)
  -s , --small_edgelist_num_nodes
                        Number of nodes in the small edgelist. (default: 50)
  -dd , --data_dir      Directory in which the data are stored, if set to None, then use the
                        default data directory ~/.data/geneplexus (default: None)
  -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)
  -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. This computation is not yet available
                        when using custom networks due to the lack of pretrained models for
                        comparison. (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
  2. 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-1.0.0.dev5.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

geneplexus-1.0.0.dev5-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file geneplexus-1.0.0.dev5.tar.gz.

File metadata

  • Download URL: geneplexus-1.0.0.dev5.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for geneplexus-1.0.0.dev5.tar.gz
Algorithm Hash digest
SHA256 1d0c1abf3e329e5a38e33436b041d9569e5918a6eac17aa4359e51489f7cd0a2
MD5 3b12c5d5af8af9af59dcf397afa3d54d
BLAKE2b-256 4e6475550d25a2cc2a8981daa25bdebfca857689d647345bf5cb7df187e38f95

See more details on using hashes here.

File details

Details for the file geneplexus-1.0.0.dev5-py3-none-any.whl.

File metadata

File hashes

Hashes for geneplexus-1.0.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 9f1a3196c17f909d6402f19533b9ec27cfb595f7c55e8581155ef459fc181f6a
MD5 111234cd34f2f153fbad74698aed9187
BLAKE2b-256 375eb4875ac706193c80c1c18e4ad77cc2542a966d80b02bf08b42ef54722b5f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page