Hi,
I extracted individual contigs from a bam file using:
BamDeal_Linux modify bamSplit -r -i me14.sorted.again.bam
and
BamDeal_Linux modify bamSplit -i me14.sorted.again.bam
However, when I try to index the extracted contigs with samtools (1.13) I get this error:
samtools index ArME14_ctg_01.bam
[W::bam_hdr_read] EOF marker is absent. The input is probably truncated
[E::bgzf_read_block] Failed to read BGZF block data at offset 1146092758 expected 7118 bytes; hread returned 792
[E::bgzf_read] Read block operation failed with error 4 after 0 of 4 bytes
samtools index: failed to create index for "ArME14_ctg_01.bam": No such file or directory
Trying to index the original bam file me14.sorted.again.bam works just fine.
Any idea what is going on?
I am using BamDeal 0.25
Cheers,
Johannes
Hi,
I extracted individual contigs from a bam file using:
BamDeal_Linux modify bamSplit -r -i me14.sorted.again.bamand
BamDeal_Linux modify bamSplit -i me14.sorted.again.bamHowever, when I try to index the extracted contigs with samtools (1.13) I get this error:
Trying to index the original bam file
me14.sorted.again.bamworks just fine.Any idea what is going on?
I am using BamDeal 0.25
Cheers,
Johannes