How to use the bamnostic.AlignedSegment function in bamnostic

To help you get started, we’ve selected a few bamnostic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github betteridiot / bamnostic / bamnostic / bam.py View on Github external
def next(self):
        """Return the next line."""

        read = bamnostic.AlignedSegment(self)
        if not read:
            return
        return read
github betteridiot / bamnostic / bamnostic / bam.py View on Github external
def __next__(self):
        """Return the next line (Py2 Compatibility)."""

        read = bamnostic.AlignedSegment(self)
        if not read:
            raise StopIteration
        return read