Skip to content

NAF files generated through the Python library can't be decompressed with unnaf #3

@apcamargo

Description

@apcamargo

Hi @althonos,

I'm testing out nafcodec's Python library and I noticed that the files I write with it's encoder can't be decompressed with the unnaf command. See a reproducible example below.

import nafcodec

with nafcodec.open(
    "sequence.naf", "w", sequence_type="dna", sequence=True, id=True
) as e:
    e.write(nafcodec.Record(id="seq1", sequence="ATCG"))
$ unnaf -c sequence.naf
unnaf error: incomplete or truncated input

I can, however, read the sequence.naf within Python using nafcodec.

I noticed that in the README you mention that you still need to implement the encoder, so I'm wondering is this is indeed a bug or if you're still working on the encoder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions