Skip to main content

Pipeline result processor (PRP)

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

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 format-jasen --sample /path/to/sample.cnf.yml -o dump.json

Validate output format of result json file

prp validate-result -o OUTPUT_FILE [-h]

Create CDM input from pipeline data

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

prp format-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 bonsai-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

Metadata

Release files for bonsai-prp 1.6.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 bonsai-prp 1.6.1
File Size Uploaded
bonsai_prp-1.6.1.tar.gz 66.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bonsai-prp 1.6.1
File Interpreter ABI Platform
bonsai_prp-1.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 148.4 kB

Release files / bonsai_prp-1.6.1.tar.gz

Download URL bonsai_prp-1.6.1.tar.gz
Size 66.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c02c923b17ab80ef3f792da2820d2428c6e4fbd2358c0d081223c3e4d531099b
BLAKE2b-256 checksum
How to use checksums
4ecda363c86258cd2d5f4579705aa61d00b054184d94d456b907cbb3f457032e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / bonsai_prp-1.6.1-py3-none-any.whl

Download URL bonsai_prp-1.6.1-py3-none-any.whl
Size 81.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17f25c66b4d53bac48861f01cd487f276f133353830a636f9f1d3082c78698b8
BLAKE2b-256 checksum
How to use checksums
cdb522ff70015f2bc3980a0f2af581a98278f65f3dd5b81b0bb43696e780568f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

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