Skip to content

Is there any way to tell where in the file the reader is ?  #456

Open
@JulianDicken

Description

@JulianDicken

Title basically is the question. I need a way to know where in the file the reader is. Ideally id want the file offset (in bytes) of the current record, as well as where that record "ends". I have not found a way of doing this with the high level record reader but I think I have found a way to do this with the lower level htslib module via the htslib::bgzf_utell function. With this function I do manage to get a buffer of the record's data out but I dont know how to decompress that buffer (if it is compressed that is, if it isn't I am getting garbage out).

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