cram to bam conversion
1
1
Entering edit mode
5.2 years ago
irfanwustl ▴ 90

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?

alignment genome • 5.5k views
ADD COMMENT
0
Entering edit mode

was ref_sequence.fa the very same fasta sequence fasta that was used to map the reads from sample.bam ?

ADD REPLY
0
Entering edit mode

Yes. I am suspecting is it a multithreading issue?

ADD REPLY
0
Entering edit mode

That seems unlikely.

ADD REPLY
2
Entering edit mode
5.2 years ago
irfanwustl ▴ 90

Solved. Seems it is a threading issue. When I have removed

-@8

from the code, there is no error or warning.

ADD COMMENT
0
Entering edit mode

What version of samtools do you use?

As WouterDeCoster said, this seems unlikely to be the reason for me as well. If it is, than it's a bug and you should report it at samtools issue tracker.

ADD REPLY
0
Entering edit mode

If instead of -@ you use --threads, do you have the same error?

ADD REPLY

Login before adding your answer.

Traffic: 2214 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6