8000 rust-htslib `read_pos` · Issue #91 · blachlylab/dhtslib · GitHub
[go: up one dir, main page]

Skip to content

rust-htslib read_pos #91

Open
Open

Activity

  1. charlesgregory commented on Aug 3, 2021

    @charlesgregory
    Contributor

    In a way getAlignedPairs can be subsetted.

    /// get a range of aligned read and reference positions
    /// this is meant to recreate functionality from pysam:
    /// https://pysam.readthedocs.io/en/latest/api.html#pysam.AlignedSegment.get_aligned_pairs
    /// range is 0-based half open using chromosomal coordinates
    auto getAlignedPairs(bool withRefSeq)(long start, long end)

    It returns a range of AlignedPairs that contain rpos, qpos, cigar op, query base, and potentially reference base (if MD tag is present).

  2. jblachly commented on Aug 5, 2021

    @jblachly
    MemberAuthor

    Interesting that rust-htslib wrote a long function for this; seems useful. keep in back of your mind.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0