Skip to content

Instantly share code, notes, and snippets.

View simon-anders's full-sized avatar

Simon Anders simon-anders

  • University of Heidelberg
  • Heidelberg, Germany
View GitHub Profile
import numpy as np
import pysam
import numba
@numba.njit
def _check_cigar_pos(pos, cigar):
if pos > cigar.shape[0]:
raise ValueError("Invalid CIGAR string (1)")
@numba.njit