Closed cerebis closed 2 years ago
Hi @JonEilers
I have split your issue from the other, as I do not believe they are the same problem.
In your case, the header record appears to be missing from the BAM file and the error message from qc3C is terribly unhelpful, eg. it merely reports back 'HD'
, which is comically bad. My apologies.
Please try the following, to see if the HD record exists.
samtools view -H /home/jon/Working_Files/s_chloronotus/bwa-mem/aligned.SRR8499559.bam | grep '^@HD'
Are you using Samtools to create the BAM file?
On review, the failure is in always expecting the HD record to exist in the pysam dictionary.
In the master branch, this condition will now report an informative error. It will be rolled into a new release in the near future.
I am running into the same error using the conda version of qc3C
Originally posted by @JonEilers in https://github.com/cerebis/qc3C/issues/58#issuecomment-1024536793