Skip to main content

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

Project description

Pipeline result processor (PRP)

A collection of tools for working with JASEN results or uploading it to the visualization tool Bonsai.

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

Using prp

Use the help argument for information on prp's functions.

prp --help

PRP takes a file with information on the sample and paths to the individual results generated by JASEN as input. The sample file is created by default by JASEN during the analysis but can be modified or extended. An example of the input file can be found among the test files.

Parse

This commands combines the JASEN output into serialized json object. This is good for backuping or computational analysis of the data.

prp parse --sample /path/to/sample.cnf.yml -o dump.json

Validate output format of result json file

prp validate -o OUTPUT_FILE [-h]

Create CDM input from pipeline data

Calculate quality metrics and present them in a format compatible with CDM.

prp cdm --sample /path/to/sample.cnf.yml -o dump.json

Upload a sample to Bonsai

Use the sample config to upload a sample to Bonsai.

The username and password can be set using either flags or by setting the environment variables BONSAI_USER and BONSAI_PASSWD.

prp upload                         \
  --sample /path/to/sample.cnf.yml \
  --api http://bonsai/api          \
  --username admin                 \
  --password secret                \

The sample file

The sample file is generated by JASEN and catalogs the different output files. Additionally, the sample file can also contain information on how the sample should be presented in Bonsai. For example, which groups the sample should be added to or which IGV tacks should be available.

The groups field should be a list of the different group_ids. These are set when creating a group in Bonsai.

groups:  # list of Bonsai groups to add the sample to
  - bonsai_group_id_1
  - bonsai_group_id_2

Use the igv_annotations field to add one or more IGV annoatation tracks. It should be a list of mappings, where each mapping should contian the fields name, type and uri. The name is the track name, the is the type of annotation track (annotation, variant, alignment) and URI is how to access the resource. See the IGV documentation for more information on the tracks and supported file formats.

igv_annotations:  # list of IGV tracks
  - name: Cool variants
    type: variant
    uri: file://rs-fe1/path/to/variants.vcf

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-1.3.2a1.tar.gz (54.5 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-1.3.2a1-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

Details for the file bonsai_prp-1.3.2a1.tar.gz.

File metadata

  • Download URL: bonsai_prp-1.3.2a1.tar.gz
  • Upload date:
  • Size: 54.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for bonsai_prp-1.3.2a1.tar.gz
Algorithm Hash digest
SHA256 b00d3db7983a3f8afffbf32f2534edf4318a85331b2e30162bbf9fcc6c0ca11a
MD5 ba7973a837536a4e887ea1d614077848
BLAKE2b-256 d645385f75ebc6b07ec6e4ff9600e8f0a0f1a9d770b3467dec2d59e6e03f54f2

See more details on using hashes here.

File details

Details for the file bonsai_prp-1.3.2a1-py3-none-any.whl.

File metadata

  • Download URL: bonsai_prp-1.3.2a1-py3-none-any.whl
  • Upload date:
  • Size: 67.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for bonsai_prp-1.3.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3985fce71344fec396ce7cb9c52da3e241fc54248a3dea4a845ba7fe6b1daad2
MD5 56aaf480f8522446f4d157a88cbb8203
BLAKE2b-256 bec00a2dac29a77ce5dde630f6d81bd526a135c01c1d79bc32137438d788ecee

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