Skip to content

Extract mapped genome sequence from mappy API #126

Closed
@marcus1487

Description

I am using the mappy API with the sole end goal of extracting the genomic sequence for a read mapping. Currently, I am using pyfaidx to take the mapped coordinates from the mappy.Alignment object and extract the associated genomic sequence. This seems like a bit of extra work since the sequence in theory may be extract-able from the mappy.Aligner or mappy.Alignmentobjects (though there are likely reasons this may not be true). This would also allow my code not to load the same reference fasta file twice (once for mapping in mappy and the second time for randomly extracting genome sequence). Is there access to this right now via the python API (maybe undocumented)? Or would it be possible to add this feature either directly or indirectly to the mappy.Alignment object?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions