A collection of tools for working with JASEN results or uploading it to the visualization tool Bonsai.
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.
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.jsonprp validate-result -o OUTPUT_FILE [-h]
Calculate quality metrics and present them in a format compatible with CDM.
prp format-cdm --sample /path/to/sample.cnf.yml -o dump.jsonUse 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 \Bootstrap a new test instance of Bonsai by setting up users and groups from a configuration file.
prp bonsai bootstrap \
--api http://bonsai/api \
--username admin \
--password secret \
--config bootstrap/default.yaml \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_2Use 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