Open pontushojer opened 3 days ago
An update on this, the .gzi
is now in the folder with the bgzipped FASTA reference but I still run into this error. Seems that it specifically is samtools
that requires this .gzi
file for converting the output to CRAM, see related issue: https://github.com/samtools/samtools/issues/804.
Looking at the relevant code, see below, it seems that the .gzi
index is not included in the work folder causing the issue.
Description of feature
I started a sarek run (
v3.4.2
) providing a custom reference in the form of a bgzipped FASTA. The run from FASTQs started normally and did not run into any errors until the MarkDuplicates step. I had missed copying an index file (*.fasta.gz.gzi) to the same folder as the FASTA which caused the step to fail just before finishing 🤦, see the error message below.This is the relevant part of my parameter file
It would be great if there could be a parameter check on start so that when a bgzipped fasta
*.fasta.gz
is provided a corresponding index*.fasta.gz.gzi
should be present.Some other considerations if this is hard to implement:
.gzi
file could be generated automatically if it is missing as part of thebuild
process.Edit: forgot to add info about sarek version Edit2: gzip --> bgzip