Entering edit mode
22 months ago
mthm
▴
50
I have mapped the reference chromosome assembly on other chromosome assemblies using minimap2
to generate sam file. my sam file doesn't have header
I tried
samtools ref.fa.fai sample.sam sample.bam
and
samtools view -bT ref.fa sample.sam > sample.bam
both errors are:
fail to read the header from sample.sam
how can I create bam file out of that?
thank you GenoMax for your answer. I did this
I will try your suggestion, thanks
Realign with
-a
option, your current alignments are in PAF format.