Phen2Gene Runner for PhEval
This is the Phen2Gene plugin for PhEval. With this plugin, you can leverage the gene prioritisation tool, Phen2Gene, to run the PhEval pipeline seamlessly. The setup process for running the full PhEval Makefile pipeline differs from setting up for a single run. The Makefile pipeline creates directory structures for corpora and configurations to handle multiple run configurations. Detailed instructions on setting up the appropriate directory layout, including the input directory and test data directory, can be found here.
Installation
Clone the pheval.phen2gene repo and set up the poetry environment:
git clone https://github.com/monarch-initiative/pheval.phen2gene.git
cd pheval.phen2gene
poetry shell
poetry install
or install with PyPi:
pip install pheval.phen2gene
Configuring a single run
Setting up the input directory
A config.yaml should be located in the input directory and formatted like so:
tool: phen2gene
tool_version: 1.2.3
variant_analysis: False
gene_analysis: True
disease_analysis: False
tool_specific_configuration_options:
environment: local
phen2gene_python_executable: Phen2Gene/phen2gene.py
post_process:
score_order: descending
The bare minimum fields are filled to give an idea on the requirements, as Phen2Gene is gene prioritisation tool, only gene_analysis should be set to True in the config. An example config has been provided pheval.phen2gene/config.yaml.
The Phen2Gene input data directory should also be located in the input directory - or a symlink pointing to the location in a directory named lib.
The phen2gene_python_executable points to the name of the Phen2Gene python executable file - this is usually located within the Phen2Gene directory within the input directory.
The overall structure of the input directory should look something like so (omitting files in the lib for clarity):
.
├── config.yaml
├── lib
│ ├── Knowledgebase
│ ├── lib
│ ├── phen2gene.py
│ ├── skewness
│ └── weights
└── Phen2Gene
├── accuracy.py
├── accuracy.sh
├── calcs
├── Dockerfile
├── environment.yml
├── example
├── generate_ranking_data.py
├── getbenchmark.sh
├── lib
├── LICENSE
├── phen2gene.py
├── README.md
├── requirements.txt
├── runtest.sh
├── setup.sh
└── test
Setting up the testdata directory
The Phen2Gene plugin for PhEval accepts phenopackets as an input for running Phen2Gene.
The testdata directory should include a subdirectory named phenopackets:
├── testdata_dir
└── phenopackets
Run command
Once the testdata and input directories are correctly configured for the run, the pheval run command can be executed.
pheval run --input-dir /path/to/input_dir \
--testdata-dir /path/to/testdata_dir \
--runner phen2genephevalrunner \
--output-dir /path/to/output_dir \
--version 1.2.3
Metadata
Release files for pheval-phen2gene 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pheval_phen2gene-0.2.2.tar.gz | 8.4 kB | Without provenance | Details for pheval_phen2gene-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pheval_phen2gene-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for pheval_phen2gene-0.2.2-py3-none-any.whl |
Total release size: 20.0 kB
Release files / pheval_phen2gene-0.2.2.tar.gz
| Download URL | pheval_phen2gene-0.2.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da8e08cf12e0d952be94dce386b637cfe7d4c7d4cb4f0862ca707f4d9b5cdf76
|
|
BLAKE2b-256 checksum How to use checksums |
604c2427226c0fd4ac1408a242659cf8f31476dc3ea6c5e22efd81fe821331bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / pheval_phen2gene-0.2.2-py3-none-any.whl
| Download URL | pheval_phen2gene-0.2.2-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b04f266c11bf647193c774869e5b32201f20e7d3bb8d1f2f0596b3e2acf46969
|
|
BLAKE2b-256 checksum How to use checksums |
3e42e17c1f4650918497fae4cb737b165a587ca16c230f63cc46c5c26775b680
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for pheval-phen2gene 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.