I am trying to convert cram file to bam file but I am getting the following error:
[E::cram_get_ref] Failed to populate reference for id 504
[E::cram_get_ref] Failed to populate reference for id 538
[E::cram_get_ref] Failed to populate reference for id 608
.........................................................................................
The code I am using:
samtools view -b -T ref_sequence.fa -o $sample.bam -@8 $sample.cram
Any idea?
was ref_sequence.fa the very same fasta sequence fasta that was used to map the reads from sample.bam ?
Yes. I am suspecting is it a multithreading issue?
That seems unlikely.