Skip to main content

No project description provided

Project description

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

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

pheval_phen2gene-0.2.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

pheval_phen2gene-0.2.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file pheval_phen2gene-0.2.2.tar.gz.

File metadata

  • Download URL: pheval_phen2gene-0.2.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pheval_phen2gene-0.2.2.tar.gz
Algorithm Hash digest
SHA256 da8e08cf12e0d952be94dce386b637cfe7d4c7d4cb4f0862ca707f4d9b5cdf76
MD5 56de00da1cc136fc9b62bed50e2ad085
BLAKE2b-256 604c2427226c0fd4ac1408a242659cf8f31476dc3ea6c5e22efd81fe821331bf

See more details on using hashes here.

File details

Details for the file pheval_phen2gene-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pheval_phen2gene-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b04f266c11bf647193c774869e5b32201f20e7d3bb8d1f2f0596b3e2acf46969
MD5 42d2b1d6118414b35b85477648e7c7d0
BLAKE2b-256 3e42e17c1f4650918497fae4cb737b165a587ca16c230f63cc46c5c26775b680

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