Skip to content

[Feature request] query_position_or_next method for Alignment #445

Open
@Crispy13

Description

@Crispy13
property query_position:
        """position of the read base at the pileup site, 0-based.
        None if :attr:`is_del` or :attr:`is_refskip` is set.

        """
        def __get__(self):
            if self.is_del or self.is_refskip:
                return None
            else:
                return self._qpos

property query_position_or_next:
      """position of the read base at the pileup site, 0-based.
  
      If the current position is a deletion, returns the next
      aligned base.
  
      """
      def __get__(self):
          return self._qpos

https://github.com/pysam-developers/pysam/blob/effb9359139c59454ad47eec9ccbc4c2668005fd/pysam/libcalignedsegment.pyx#L3304

Would you add query_position_or_next for rust-htslib?

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