Onkopus: A modular variant interpretation framework
What is Onkopus?
Onkopus is an easy-to-use cancer variant interpretation framework to annotate, interpret and prioritize genetic alterations in cancer. Onkopus provides annotation for different mutation types including a wide range of features, including genomic, transcriptomic and protein information, biochemical features, pathogenicty prediction, functional effect prediction, and potential therapies.
Getting started
Install the Onkopus python package via pip:
python -m pip install onkopus
You can use Onkopus both as a command line tool and in python. All modules can also be installed locally as well.
Use Onkopus from the command line
Onkopus provides a command line tool to directly annotate variant files.
Run the onkopus tool by specifying an input file (-i) and the genome version (-g) ('hg19'/'hg38'/'t2t').
Optionally pass an output file (-o) and specific modules (-m):
onkopus run -i somatic_mutations.vcf -g hg38 -o somatic_mutations.ann.vcf
(Note: This will annotate will all Onkopus modules, including potential therapies and drug classifications. Since this process may take a while, use it only for small to medium-sized variant files.)
To functionally annotate large VCF files, run
onkopus run -i somatic_mutations.vcf -g hg38 -m functional_annotation -o somatic_mutations.fn.ann.vcf
To annotate with specific Onkopus modules, select the module with the -m option:
onkopus run -i somatic_mutations.vcf -g hg38 -m alphamissense
onkopus run -i somatic_mutations.vcf -g hg38 -m revel,primateai
Liftover between reference genomes: Use the -g option to define the source file's genome version, and the -t
option to define the target genome (here: hg19 to hg38).
onkopus run -i somatic_mutations.vcf -m liftover -g hg19 -t hg38
To test Onkopus with one of the built-in sample VCF files, run:
onkopus run -i somaticMutations.vcf -md test -g hg38 -o somaticMutations.ann.vcf
Liftover
To convert a variant file into another genome assembly, use the AdaGenes Liftover module integrated in Onkopus. Use
g to specifiy the reference genome of the source file, and the -t option for the reference genome the file
should be converted to (hg19/hg38/t2t).
onkopus run -i somaticMutations.vcf -m liftover -g hg19 -t hg38 -o somaticMutations.GRCh38.vcf
Install Onkopus locally
By default, Onkopus accesses the publicly available modules to annotate variants. It is also possible to install Onkopus completely locally, e.g. to process sensitive patient data.
To install Onkopus locally, make sure that you have installed Docker on your host system.
To change the configuration to use locally running modules, configure the following environment variables before you start Onkopus:
export ONKOPUS_MODULE_PROTOCOL=https
export ONKOPUS_MODULE_SERVER=localhost
export ONKOPUS_PORTS_ACTIVE=1
In the next step, you can install the Onkopus modules individually or all together. To install an
Onkopus module, run onkopus install -m followed by the module identifier, e.g.
onkopus install -m clinvar
Run onkopus list-modules to get a complete list of all available modules.
To install all available modules in one step, run
onkopus install -m all
(Note: This will install all available Onkopus modules. The required databases are installed as soon as you start Onkopus.)
After you have installed all the modules you need, you can start Onkopus with
onkopus start
To make sure that the installation and start of the modules was successful, you can run
docker ps
If the Onkopus modules have been successfully started, you should see an overview of the running modules.
To stop all Onkopus modules, run
onkopus stop
Use Onkopus from Python
You can also use Onkopus to directly load your variant data in your Python code as an AdaGenes biomarker frame.
(Note: This will load the entire variant data into memory and is thus only applicable for small to medium sized variant
files.)
Use Onkopus from Python by running the full annotation pipeline or instantiate
custom Onkopus clients and calling process_data:
Annotate variants with all modules
For a complete variant annotation, including functional and clinical annotation, run
import onkopus as op
bframe = op.read_file('./somatic_mutations.vcf', genome_version="hg38", input_format="vcf")
bframe = op.annotate(bframe)
Annotate with specific modules
import onkopus as op
genome_version="hg38"
bframe = op.read_file('./somatic_mutations.vcf', input_format='vcf')
# Annotate with ClinVar
client = op.ClinVarClient(genome_version=genome_version)
bframe.data = client.process_data(bframe.data)
# Annotate with AlphaMissense
client = op.AlphaMissenseClient(genome_version=genome_version)
bframe.data = client.process_data(bframe.data)
op.write_file('./somatic_mutations.annotated.vcf', bframe)
License
GPLv3
Documentation
A detailed documentation on how to use the Onkopus web application, the CLI and the python package can be found on the public Onkopus website.
Public version
A public instance of Onkopus Web is available at https://mtb.bioinf.med.uni-goettingen.de/onkopus.
Metadata
Release files for onkopus 0.7.0
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 |
|---|---|---|---|---|
| onkopus-0.7.0.tar.gz | 110.9 kB | Without provenance | Details for onkopus-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onkopus-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for onkopus-0.7.0-py3-none-any.whl |
Total release size: 324.5 kB
Release files / onkopus-0.7.0.tar.gz
| Download URL | onkopus-0.7.0.tar.gz |
|---|---|
| Size | 110.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea2d3a6be3bef7ad0cfcb3d7e62d9a3aa4275e57fc0df5debac2adb3c4f79aae
|
|
BLAKE2b-256 checksum How to use checksums |
b243ddb55ad167d97e5cde2dc5267a2ec3384b85a6ba1c2e55766768225166cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0rc1
|
Release files / onkopus-0.7.0-py3-none-any.whl
| Download URL | onkopus-0.7.0-py3-none-any.whl |
|---|---|
| Size | 213.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a26d07191eb22b4b6dd8f6e90cd6b896bd6c8410f6de7d8b57ffc715451dc3e1
|
|
BLAKE2b-256 checksum How to use checksums |
6aa5fc3b219eeee5c5fd6b4874b67af0425bba2682335c9ad66d54416784f066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0rc1
|
Security for onkopus 0.7.0
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.