Closed cornejoem closed 4 months ago
Hi @cornejoem, thanks for trying out PCGR!
Can you delete the Software/pcgr_conda/pcgrr/
directory and then try re-installing the pcgrr
conda environment? You might need to try that a few times, apologies.
The issue is probably related to an intermittent connection error with the Bioconductor servers that host the GenomeInfoDbData_1.2.11
R data package, or something to do with curl and the way it checks certificates.
This has been reported elsewhere: https://github.com/bcbio/bcbio-nextgen/issues/3676
Hello @pdiakumis, thank you for reaching out so quickly.
Unfortunately despite deleting the Software/pcgr_conda/pcgrr/
directory, refresh of my terminal session and computer restart, I still encounter the same error. I will continue to try installing pcgrr
, but any pointers are appreciated!
Sorry about that Elena.
Could you also try the following: echo "insecure" >> $HOME/.curlrc
Then open a new terminal session and try again, and get back to us if that doesn't work either.
I am on an M1 Mac and just tried re-installing both environments and it's working without issues from my side.
The script that runs the curl
command that fails is under pcgrr/bin/installBiocDataPackage.sh
. On line 26 you'll see it has curl -L $URL > $TARBALL
.
Can you also let me know what version of curl
you're running? Here's mine:
$ curl --version
curl 8.6.0 (x86_64-apple-darwin23.0) libcurl/8.6.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.61.0
Release-Date: 2024-01-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL threadsafe UnixSockets
If that doesn't work either, I would suggest giving the Docker installation a try if possible: https://sigven.github.io/pcgr/articles/installation.html#b--docker
The Docker image includes all conda environments pre-installed so at least you wouldn't need to download anything else.
echo "insecure" >> $HOME/.curlrc
and a refresh of the terminal window might have done it.
I was able to run at least one run to completion, with all expected output files. However, for others I receive an error that the execution is halted:
2024-07-03 12:48:12 - pcgr-report-generation - INFO - Calculating data for rainfall plot
Error in if (startsWith(m, "chr")) { :
missing value where TRUE/FALSE needed
Calls: <Anonymous> -> <Anonymous>
Execution halted
Yet, I have ran these files previously with pcgr 1.4.1
and no errors occured.
Hi Elena, Just to rule out that your error is not related to your Conda installation: for any of the error cases in question, are you experiencing the same errors with Docker/Apptainer? And if you do, could you possibly share the complete error log, run command and input file(s) of such a case? Could be you have caught another issue that is not related to the Conda installation.
Thanks for reporting!
Kind regards, Sigve
Hello,
I encountered the same error when running PCGR with Docker. I would be happy to share the error log, and run commands for each, however as these are human patient samples, I might need to check whether I can share the input file.
Many thanks! Elena
That's of course understandable. Just curious about the nature of the input somatic calls that causes the error message. Do the VCF files that fail contain calls from chromosome patches etc, meaning not only 1-22, X,Y? Also in the PCGR-annotated VCF files? Contrasting your input to the example VCFs that come with PCGR might give some clue; we might have missed something in our input check/validation routines.
Another tip is to turn on the --debug
option, and look for potential errors in all intermediate log files.
Best, Sigve
Hello Sigve and Peter,
Can I send you the error logs and commands via email? I would include runs with PCGRv1.4.1 and v2 for the same input files. If you need anything else, please let me know.
BW Elena
Hi Elena,
Of course - peterdiakumis@gmail.com
.
By the way, your error above occurs with this code: https://github.com/sigven/pcgr/blob/c2d47f0/pcgrr/R/mutational_signatures.R#L715
I don't think that code has changed between PCGR 1.4.1 and 2.0.0. One thing that has changed is the R version we use, since we've gone from v4.1.3 to v4.3.3. There have been some changes in the way the newer R version handles different data structures, so it could well be related to the R version.
Since you can't share the VCF input file, can you try running a couple diagnostic commands on it using bcftools
(which should be installed in the pcgr
conda environment).
vcf1="path/to/your/input1.vcf.gz"
# which chromosomes are in your VCF
bcftools view -H ${vcf1} | cut -f1 | uniq -c
I am wondering if there's anything fishy going on in there with a missing chromosome value or something. Anyway, we can talk more via email if needed :-)
Hi Elena,
Sure thing, please do. peterdiakumis
and sigven
, both @gmail.com.
thanks!
best, Sigve
Hello,
following the installation instructions for PCGR 2.0.0 via conda, I am encountering an issue when installing pcgrr. This is the exact command I am using:
Yet, I receive the below listed errors and exceptions. I can do run PCGR, but no html output is generated using R. I would greatly appreciate any help.