Closed GuidoGallo closed 5 months ago
Hi @GuidoGallo,
So assuming you're on the latest version, it's getting an error at this point in the code: https://github.com/PacificBiosciences/HiPhase/blob/9b01d7eda42a56dc9d20d39aa8b6fe23b60f5ab1/src/block_gen.rs#L636
That line is trying to fetch a region in the BAM file. I've never actually encountered an error there before, so I'm going to do some guessing as to what might be causing it, most of which involve a deviation from "normal" processing that is leaving BAMs and/or VCFs in an inconsistent state:
Hope this helps, Matt
Dear Matt Thank you so much for the rapid answer. You are right, one of the the bam files I was using had an inconsistency with the chromosomes as defined in the vcf header, I didn't realize it. Thanks again and congratulations for the great tool, it worked perfectly :)
Great, glad it worked out! I'll make a note to improve the messaging there. Hopefully future users won't encounter a cryptic panic message and instead get something a little more insightful.
Dear developers, I'm encountering an error using HiPhase to phase a multi-sample vcf (non-human genome) that I cannot really understand. I've used this program in the past and now I was trying to re-run it on a subset of the same population, using the same type of command, and for some reason it is erroring out. I'm using the latest version hiphase 1.4.2-c7e0700. I'm copying a part of the command used:
hiphase -b path/to/bam1 -b path/to/bam2 ..... --vcf input.vcf.gz --output-vcf output.phased.vcf.gz --reference path/to/reference.fasta -s sample_name1 -s sample_name2 .... --threads 32 --min-vcf-qual 10 --blocks-file file.tsv --summary-file file.summary.tsv
The program exits immediately with this error:
thread 'main' panicked at src/block_gen.rs:636:44: called
Result::unwrap()on an
Errvalue: Fetch note: run with
RUST_BACKTRACE=1environment variable to display a backtrace
To my understanding, the tool encountered an unexpected error while trying to access some resource, but I can't really tell what causes the error. As I said, I downloaded the last hiphase version, I checked all paths to files are accessible and that I have all rights and permissions. Do you have some ideas as to what can cause this kind of errors? Thanks a lot for your time, I appreciate any help