Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] query_position_or_next method for Alignment #445

Open
Crispy13 opened this issue Oct 29, 2024 · 0 comments
Open

[Feature request] query_position_or_next method for Alignment #445

Crispy13 opened this issue Oct 29, 2024 · 0 comments

Comments

@Crispy13
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant