Reporting Tips
Alternative PURPLE solutions
When an alternate solution is better:
Search file_provenance for the alternate solutions directory:
file_provenance=/scratch2/groups/gsi/production/vidarr/vidarr_files_report_latest.tsv.gz zcat $file_provenance | grep ${donor} | grep .purple_alternates.zip | cut -f 1,2,8,14,19,31,47Copy the alternate solution zip file to your working directory. Use the purple_summarize_alts.py script in djerba_prototypes to see the potential purity and ploidy in each solution:
python3 ~/git/djerba_prototypes/scripts/purple_summarize_alts.py .
Unzip the alternate directory and manually assign the purple outputs in the .ini. Solutions directories are labeled according to their ploidy; if your favoured solution has a ploidy between 1-2, choose
sol1; between 2-3, choosesol2etc. Specify your solution in the INI using:[wgts.cnv_purple] purple_zip = ${NAME}.purple.zipRelaunch Djerba
If you still don’t like your solution, PURPLE can be relaunched manually, specifying the wanted purity and ploidy in the workflow.json for deployment in cromwell. Alternate solutions can be launched according to the following procedure
Open purple.alternate.json in the report folder and change the min/max purity/ploidy parameters (in string format) in the .json to match with your desired solution. Fill the tumour/normal bam/bai file directories as well, which can be fetched using the following command:
file_provenance=/scratch2/groups/gsi/production/vidarr/vidarr_files_report_latest.tsv.gz zgrep ${DONOR} $file_provenance | grep .filter.deduped.recalibrated.bam | cut -f1,2,47,23,31,14 zgrep ${DONOR} $file_provenance | grep .filter.deduped.recalibrated.bai | cut -f1,2,47,23,31,14Clone purple.wdl to a local directory
Launch cromwell on the HPC with purple.wdl using the following:
module load cromwell java -jar $CROMWELL_ROOT/share/cromwell.jar submit purple.wdl \ --inputs purple.alternate.json \ --host http://cromwell-dev-2.hpc.oicr.on.ca:8000 >purple.alternate.txt
Retrieve the workflow outputs from the Cromwell workflow manager using the workflow ID in purple.alternate.txt. Click the “OUTPUT” tab and copy the “.solPrimary.purple.zip” file stored in “purple_directory” to your working directory
Complete the procedure as in alt-solution above.
Interpreting variants in Whizbam
These are examples from targeted reports of true and false positives in Whizbam (IGV).
Example 1:
According to data_mutations_extended_oncogenic.txt, this is a G -> T nonsense mutation. As this call has many supporting reads in the tumour but not in the normal, it is a confident call and should be kept for reporting.
Example 2:
According to data_mutations_extended_oncogenic.txt, this is a frame-shift insertion. A frame-shift insertion is represented by a short purple line. This insertion can be better seen when scrolling down:
As the frame-shift insertion has no supporting reads in the normal, it is likely a confident call and should be kept for reporting.
Examples of variants to remove
Example 1:
Upon initial review, this looks like a A -> T SNP call, as this variant does not have supporting reads in the normal. However, according to data_mutations_extended_oncogenic.txt, this call is actually a frame-shift deletion. Indeed, when scrolling down, this frame-shift deletion is visible:
As this frame-shift deletion has supporting reads in the normal, it is likely to be an artifact and must be removed.
Example 2:
According to data_mutations_extended_oncogenic.txt, this call is actually a frame-shift insertion. A frame-shift insertion is represented by a short purple line (such as on the right of the above screenshot). As there are no short purple lines present in the tumour, this variant does not pass QC and must be removed.
Interpreting ichorCNA CNV plots
These are examples of CNV plots from ichorCNA for targeted reports.
Example of a plot centered at 0 (it will appear blue):
Example of a plot not centered at 0 (it will appear brown):
Example of a high purity solution likely driven by potentially artifact chromosomal regions (ex. 1p, 17, 22):
Example of a high purity solution which is likely correct:
TAR variant cross-check
TAR sequencing sometimes produces false positive variant calls in particular sequence contexts. If a call occurs in multiple, unrelated samples, it is likely to be an artifact rather than a true somatic variant.
Therefore, if a variant call appears plausible on initial review of Whizbam plots, CGI interpreters cross-check the result against other donors. Accepted practice is to compare the sample in question with 8 other donors, which may be arbitrarily chosen from recent TAR cases. Interpreters check for presence of the variant in tumour and/or normal sequence, including at levels below the assay’s limit of detection. If the variant is observed for most or all of the other donors, it may be deemed an artifact and removed from the report.
Cross-checking is required for all variants meeting any of the Extended review criteria.
Whizbam plots may be “stacked” across multiple samples for ease of comparison. For CHARM2 REVOLVE cases, the script multibam_for_revolve.py🔒 can automatically generate an appropriate Whizbam link.
Working with JSON and Djerba
It is helpful to use json tools to make editing the Djerba json easier:
$ cat djerba_report.json | python3 -m json.tool > report/djerba_report_machine.pretty.json
$ vim report/djerba_report_machine.pretty.json
$ djerba.py render -j report/djerba_report_machine.pretty.json -o report -p
Change Log
Adding pseudogene review guidelines for TAR (#16) by Oumaima Hamza at 2026-11-04 21:01:53
Clinical report updates (#15) by Iain Bancarz PhD at 2026-08-07 17:36:52
Batch of updates, mostly for clinical reporting: - Document the cross-check on TAR variants - Note the Patient Study ID should be checked for WGTS reports - Remove obsolete reference to the `supplement.header` Djerba plugin - Minor formatting fix to the reporting tips changelog - Update the copyright statement
Add section for TAR variant cross-check in reporting tips, and link to main TAR reporting page; fix change log header level by Iain Bancarz at 2026-08-04 16:42:59
June CR-119 update (#14) by Morgan Taschuk at 2026-07-21 19:22:33
* Remove references to mini-Djerba * Improve changelogs by pulling in the actual changes for each page with sphinx-git
Update the instruction of launching PURPLE manually (#3) by Hanlin Chen at 2025-10-10 17:51:06
Update the instruction of launching PURPLE manually.
Update the instruction of launching PURPLE manually by Hanlin Chen at 2025-10-10 17:30:51
Add changelogs to every page; add a note about identical amended reports for CAPA-221 by Morgan Taschuk at 2025-09-15 20:10:46
TM-0005 doc adjustments (#1) by Oumaima Hamza at 2025-09-15 18:23:34
Co-authored-by: Oumaima Hamza <ohamza@oicr.on.ca>
Reorganized so each SOP has its own section by Morgan Taschuk at 2025-08-18 19:08:34