Skip to main content

Pipline result processing program for the JASEN pipeline and Bonsai tool.

Project description

Pipeline result processor (prp)

A collection of parsers and data models for creation and validation of a standardized output for the jasen pipeline which is used as an input for bonsai.

[!WARNING] Bonsai-PRP is under development in an alpha stage. Expect uneven documentation, breaking changes, and bugs until the official 1.0 release.

Dependencies (latest)

  • biopython
  • pydantic=2.5.3
  • python=3.10

Using prp

Use the help argument for information regarding the prp's methods

prp --help

Use the method help argument for information regarding the input for each of prp's methods (add-igv-annotation-track, annotate-delly, create-bonsai-input, create-cdm-input, create-qc-result, print-schema, rerun-bonsai-input, validate)

prp <method> --help

Create bonsai input from pipeline data

prp create-bonsai-input -i SAMPLE_ID -u RUN_METADATA_FILE -q QUAST_FILENAME -d PROCESS_METADATA_FILE -k KRAKEN_FILE -a AMRFINDER_FILE -m MLST_FILE -c CGMLST_FILE -v VIRULENCEFINDER_FILE -r RESFINDER_FILE -p POSTALIGNQC_FILE -k MYKROBE_FILE -t TBPROFILER_FILE --vcf VCF_FILE [--snv-vcf SNV_VCF_FILE] [--sv-vcf SV_VCF_FILE] [--symlink-dir SYMLINK_DIR] [--correct_alleles] -o OUTPUT_FILE [-h]

Create CDM input from pipeline data

prp create-cdm-input -q QUAST_FILENAME -c CGMLST_FILE -p POSTALIGNQC_FILE [--correct_alleles] -o OUTPUT_FILE [-h]

Create QC result from bam file

prp create-qc-result -i SAMPLE_ID --b BAM_FILE [-e BED_FILE] [-a BAITS_FILE] -r REFERENCE_FILE [-c CPUS] -o OUTPUT_FILE [-h]

Rerun bonsai input creation for all samples

prp rerun-bonsai-input -i INPUT_DIR  -j JASEN_DIR -s SYMLINK_DIR -o OUTPUT_DIR -o OUTPUT_FILE [-h]

Add IGV annotation track to result

prp add-igv-annotation-track -n TRACK_NAME -a ANNOTATION_FILE -b BONSAI_INPUT_FILE -o OUTPUT_FILE [-h]

Validate output format of result json file

prp validate -o OUTPUT_FILE [-h]

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

bonsai_prp-0.11.4.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

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

bonsai_prp-0.11.4-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

Details for the file bonsai_prp-0.11.4.tar.gz.

File metadata

  • Download URL: bonsai_prp-0.11.4.tar.gz
  • Upload date:
  • Size: 47.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for bonsai_prp-0.11.4.tar.gz
Algorithm Hash digest
SHA256 a706866d876f1dc79a9ab8918869fa5fd4e765105ecc106b523a83e2c205f27e
MD5 57eed99ff712d6938ccf8adda1ff0729
BLAKE2b-256 b2733a1ee342c8abde0bc69faa48f1666bf7fc1f1efc99e2420ccca0dcb3d118

See more details on using hashes here.

File details

Details for the file bonsai_prp-0.11.4-py3-none-any.whl.

File metadata

  • Download URL: bonsai_prp-0.11.4-py3-none-any.whl
  • Upload date:
  • Size: 55.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for bonsai_prp-0.11.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7f5f411fe530b4f483cefe26116a1f6e39ec22b9a6081b1ed0bf0d9d574305b9
MD5 c707ad7492ff1a12ebc959323fb4654a
BLAKE2b-256 1bfa44ca054f214de5279988af3ab8b4b8172f0cd43f69772acbbc9e7b15b04e

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