Skip to content

cannot index extracted contigs #4

@JWDebler

Description

@JWDebler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions