Repository navigation
Description
pcgr 0.10.14
singularity exec ~/beggsa-clinicalnanopore/software/pcgr.sif pcgr --input_vcf /rds/projects/b/beggsa-clinicalnanopore/software/pcgr/test/D0263.vcf.gz --pcgr_dir /rds/projects/b/beggsa-clinicalnanopore/software/pcgr --output_dir /rds/projects/b/beggsa-clinicalnanopore/software/pcgr/test/pcgr_results/ --genome_assembly grch38 --sample_id D0263 --tumor_only --input_cna /rds/projects/b/beggsa-clinicalnanopore/software/pcgr/test/D0263.sorted2.txt --tumor_site 17 --include_trials --no_docker
2022-02-07 09:37:29 - pcgr-start - INFO - --- Personal Cancer Genome Reporter workflow ----
2022-02-07 09:37:29 - pcgr-start - INFO - Sample name: D0263
2022-02-07 09:37:29 - pcgr-start - INFO - Tumor type: Myeloid
2022-02-07 09:37:29 - pcgr-start - INFO - Sequencing assay - type: WES
2022-02-07 09:37:29 - pcgr-start - INFO - Sequencing assay - mode: Tumor-Only
2022-02-07 09:37:29 - pcgr-start - INFO - Sequencing assay - coding target size: 34Mb
2022-02-07 09:37:29 - pcgr-start - INFO - Genome assembly: grch38
2022-02-07 09:37:29 - pcgr-start - INFO - Mutational signature estimation: OFF
2022-02-07 09:37:29 - pcgr-start - INFO - MSI classification: OFF
2022-02-07 09:37:29 - pcgr-start - INFO - Mutational burden estimation: OFF
2022-02-07 09:37:29 - pcgr-start - INFO - Include molecularly targeted clinical trials (beta): ON
Traceback (most recent call last):
File "/opt/conda/envs/pcgr/bin/pcgr", line 10, in
sys.exit(cli())
File "/opt/conda/envs/pcgr/lib/python3.7/site-packages/pcgr/main.py", line 144, in cli
run_pcgr(arg_dict, host_directories, config_options, DOCKER_IMAGE_VERSION)
File "/opt/conda/envs/pcgr/lib/python3.7/site-packages/pcgr/main.py", line 377, in run_pcgr
vep_main_command = f'{docker_cmd_run1} {utils.get_perl_exports()} && vep --input_file {input_vcf_pcgr_ready} --output_file {vep_vcf} {vep_options} --fasta {fasta_assembly} {docker_cmd_run_end}'
File "/opt/conda/envs/pcgr/lib/python3.7/site-packages/pcgr/utils.py", line 130, in get_perl_exports
perl_path = os.path.dirname(perl_cmd())
File "/opt/conda/envs/pcgr/lib/python3.7/site-packages/pcgr/utils.py", line 121, in perl_cmd
perl = which(os.path.join(get_pcgr_bin(), "perl"))
File "/opt/conda/envs/pcgr/lib/python3.7/site-packages/pcgr/utils.py", line 25, in which
for path in get_all_conda_bins():
NameError: name 'get_all_conda_bins' is not defined
Activity
sigven commentedon Feb 7, 2022
Thanks for the report, @adbeggs. Looking into this right now
pdiakumis commentedon Feb 7, 2022
I'll patch this soon, I wanted to use Python's
shutil.whichinstead ofpcgr/pcgr/utils.py
Line 8 in 4ab62dd
perl: use shutil.which() - solves #178
pdiakumis commentedon Feb 7, 2022
@adbeggs I've pushed a fix for this, I'll bump PCGR to v0.10.15 so if you could please let us know if you get the same (or a different) problem.
adbeggs commentedon Feb 8, 2022
That's fixed, but now have this:
sigven commentedon Feb 8, 2022
OK, that's an issue that's been observed before. Obviously the previous fix was not robust enough. Would you be able to share your VCF with me somehow, so I can reproduce the error, and see how to fix it?
best,
Sigve
sigven commentedon Feb 8, 2022
Looking at the log, I believe the reason for the crash must be your huge input set (tumor-only, even after variant filtering, it contains ~770,000 variants). This is a setting we have not been testing to a great extent, I might have to e.g. focus on the protein-coding parts when writing the report to JSON.
adbeggs commentedon Feb 8, 2022
The VCF is unfortunately from a clinical sample - I agree it is a huge input set! It is from a high read depth nanopore WGS. I could pre-filter the VCF to exome only if that is helpful?
sigven commentedon Feb 8, 2022
Got it.. makes sense. I was actually suggesting you could do that, filtering against the exome only. I suspect the error might still take place (due to the large number of intronic variants), but give it a try, and get back to us:-)
adbeggs commentedon Feb 8, 2022
Done it - works great now - thank you for a great bit of software!
sigven commentedon Feb 8, 2022
Nice! Reach out again if you run into trouble - closing the issue for now.
sigven commentedon Feb 9, 2022
Btw, @adbeggs, out of curiosity: to what extend was the variant set reduced by pre-filtering against the exome?
I'm thinking I might add this as a step prior to the final reporting step (for tumor-only WGS cases, that is). In this way, you will still get the completely PCGR-annotated input VCF + TSV (with all coding + noncoding variants), while the final reporting step gets more managable, focusing on the coding, exonic parts.
best,
Sigve
adbeggs commentedon Feb 9, 2022
Hi Sigve,
It went from 6283689 variants to 113837.
Best wishes
Andrew
YingYa commentedon Mar 6, 2022
Hi sigven,
I have few samples that still with the same errors.
total somatic mutation number is 2195781 in whole genome, while that is 13581 in exonic (that used for MSI prediction).
[v1.0.0] Version of PCGR.
[grch38] Genome build (grch37/grch38).
[/share/app/singularity/3.8.1/bin/singularity exec -e -B /share/app/PCGR/data-20220203:/data -B /share/user/workdir:/workdir /share/app/PCGR/pcgr-v1.0.0.sif /opt/mambaforge/envs/pcgr/bin/pcgr --input_vcf /workdir/Normal-VS-Tumor.vcf.gz --input_cna /workdir/Normal-VS-Tumor.seg.tsv --logr_gain 0.8 --logr_homdel -0.8 --cna_overlap_pct 50 --pcgr_dir /data --output_dir /workdir --genome_assembly grch38 --sample_id Tumor --vcfanno_n_proc 4 --vep_n_forks 4 --vep_regulatory --estimate_tmb --estimate_msi_status --estimate_signatures --all_reference_signatures --tumor_dp_tag TDP --tumor_af_tag TVAF --control_dp_tag NDP --control_af_tag NVAF --call_conf_tag TAL --tumor_site 9 --tumor_purity 0.33 --tumor_ploidy 2.4 --assay WGS --include_trials --force_overwrite --no_docker] the complete command you used to invoke pcgr (including all explicit options)
[2022-03-06 15:40:06 - pcgr-report-generation - INFO - Writing JSON file (.json) with report contents
Error in collapse(tmp, inner = FALSE, indent = indent) :
R character strings are limited to 2^31-1 bytes
Calls: ... .local -> vapply -> FUN -> FUN -> .local -> collapse
Execution halted] the full error message
sigven commentedon Mar 6, 2022
Hi @YingYa ,
Did you filter your input VCF against the exome prior to your analysis, as @adbeggs did? See important note 2 here: https://sigven.github.io/pcgr/articles/running.html#tumor-control-vs--tumor-only
best,
Sigve
YingYa commentedon Mar 6, 2022
Hi sigven,
Thanks for your quickly respond.
No, I have not filter the VCF against the exome prior. The sample is hypermutated that may casued POLE mutated.
Is the parameter '--show_noncoding List non-coding (i.e. non protein-altering) variants in report, default: False' for solving this issue?
Best,
Yingya
sigven commentedon Mar 6, 2022
You can try, but I believe these variants (non protein-altering) are also propagated towards the JSON output. I will have to figure out a way to fix this, it is a recurring event for large (WGS) samples. If you can share any data with me (VCF) I would be grateful, but I understand if if it's not possible.
best,
Sigve
YingYa commentedon Mar 6, 2022
Yes, the data have been share with you by google drive.
best,
Yingya
sigven commentedon Mar 6, 2022
Thanks a lot Yingya, I am looking into the data, and will get back to you.
best,
Sigve
sigven commentedon Mar 6, 2022
Could you alse share (in the same folder), the files that are produced before the crash, i.e:
best,
Sigve
YingYa commentedon Mar 7, 2022
The other files have been uploaded to the same folder.
best,
Yingya
sigven commentedon Mar 10, 2022
Resolved in v1.0.1, see CHANGELOG