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.
pip install pori_cbioportalStudy 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.gzThe 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
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/apiThe 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 --helpclone this repository
git clone ssh://git@svn.bcgsc.ca:7999/dat/pori_cbioportal.git
cd pori_cbioportalcreate a virtual environment
python3 -m venv venv
source venv/bin/activateinstall the package and its development dependencies
pip install -e .[dev]Run the tests
pytest testsInstall the deployment dependencies
pip install .[deploy]Build the distribution files
python setup.py install sdist bdist_wheelUpload the distibutions to the package server (-r defined in your pypirc)
twine upload -r bcgsc dist/*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.buildoutrun buildout
buildoutThis will create a directory bin with the executable scripts