Network based gene classification
Project description
PyGenePlexus
A Python package of the GenePlexus analysis pipeline.
- The GenePlexus paper
- The repository for reproducing the experiments
- The webserver
- Documentation
- Data
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
- Install doc dependencies
pip install -r docs/requirements.txt
- Build
cd docs
make html
- Open doc
open build/html/index.html
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(31.1 kB
view details)
Built Distribution
File details
Details for the file geneplexus-1.0.1.tar.gz
.
File metadata
- Download URL: geneplexus-1.0.1.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 402959db29fdd4061f6f28168a5303a0b9ae2c0f19823062e62456c520f2f61d |
|
MD5 | f5cf6f00fcd8a60bb795004c6946375b |
|
BLAKE2b-256 | 28e87c5b307047c06db99dd3f6b5ff4c5aed85b56cae7b6523785deee6eaf7ea |
File details
Details for the file geneplexus-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: geneplexus-1.0.1-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6779fe400a15830e68c046efbc80a5bebe3d76900e222b1066481730c8e715fd |
|
MD5 | 257c0bd85b0b5b6a4236fdd004097360 |
|
BLAKE2b-256 | 969055396c4f61cff6d4a45bff8a2056107a3ec7e46ca4031088923445c60db8 |