Skip to content

Modifying existing bam header line #433

@rickymagner

Description

@rickymagner

Hi, is it currently possible to modify an existing BAM header line? There's the from_template method. But once you have your template header, e.g. read from a file you want to slightly modify, it seems like you can never remove any lines from it. There's the push_record method, but nothing that seems to allow for editing/removing any records.

Am I missing something? If not, is it possible to add some functionality like header.clear_records(b"RG") etc.?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions