Skip to main content

PORI cBioportal

build PyPi

This repository is part of the Platform for Oncogenomic Reporting and Interpretation (PORI).

This python package uses the IPR and GraphKB PORI adaptors to create PORI reports from dumps of cbioportal data.

Getting Started

Install via pip

pip install pori_cbioportal

Download Study Data

Study data should be downloaded from cbioportal, for example

wget https://cbioportal-datahub.s3.amazonaws.com/laml_tcga_pan_can_atlas_2018.tar.gz
tar -xvzf laml_tcga_pan_can_atlas_2018.tar.gz

The folder should have the variant and metadata files, for example

laml_tcga_pan_can_atlas_2018
|-- data_clinical_patient.txt
|-- data_clinical_sample.txt
|-- data_CNA.txt
|-- data_fusions.txt
|-- data_log2CNA.txt
|-- data_mutations_extended.txt
`-- data_RNA_Seq_v2_mRNA_median_all_sample_Zscores.txt

Generate Reports

This is then used to generate individual reports for all patients included in the study. Note to do this you will need access to both a GraphKB server for matching and an IPR server for upload.

pori_cbioportal laml_tcga_pan_can_atlas_2018 \
    --study_id "LAML TCGA" \
    --password $PASSWORD \
    --ipr_url https://YOUR_IPR_API_HOST/api \
    --graphkb_url https://YOUR_GRAPHKB_API_HOST/api

The loader will expect default names for the files but this can be overwritten with the other command line arguments. See the help menu for more options

pori_cbioportal --help

Getting Started (For developers)

Install

clone this repository

git clone ssh://git@svn.bcgsc.ca:7999/dat/pori_cbioportal.git
cd pori_cbioportal

create a virtual environment

python3 -m venv venv
source venv/bin/activate

install the package and its development dependencies

pip install -e .[dev]

Run the tests

pytest tests

Deployment (Publishing)

Install the deployment dependencies

pip install .[deploy]

Build the distribution files

python setup.py install sdist bdist_wheel

Upload the distibutions to the package server (-r defined in your pypirc)

twine upload -r bcgsc dist/*

Deployment (Scripts)

A buildout config is included by default which will build all console scripts defined in the package.

create a virtual environment and install buildout

python3 -m venv venv
source venv/bin/activate
pip install -U pip setuptools zc.buildout

run buildout

buildout

This will create a directory bin with the executable scripts

Metadata

Release files for pori-cbioportal 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pori-cbioportal 0.1.1
File Size Uploaded Provenance Actions
pori_cbioportal-0.1.1.tar.gz 24.4 kB Without provenance Details for pori_cbioportal-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pori-cbioportal 0.1.1
File Interpreter ABI Platform Actions
pori_cbioportal-0.1.1-py3-none-any.whl Python 3 none any Details for pori_cbioportal-0.1.1-py3-none-any.whl

Total release size: 48.9 kB

Release files / pori_cbioportal-0.1.1.tar.gz

Download URL pori_cbioportal-0.1.1.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eaba38e923757996aadf25aa0b1bc9a75629c626d9031e39bcc43ad4027f5c5f
BLAKE2b-256 checksum
How to use checksums
27ea6e6e12e62e23b56e75d74f55eb557ca8f6fc963d9e3d28146ea01b66a2d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / pori_cbioportal-0.1.1-py3-none-any.whl

Download URL pori_cbioportal-0.1.1-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ca801be781cbb55c7c84d3fd736f43b6e0b9a32a5bbf0c840e2b5555c949254
BLAKE2b-256 checksum
How to use checksums
3f95b1133ab62a06751aa94ea5151a54ec733af9eb8d8be7c2a510bbd2a43215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Security for pori-cbioportal 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page