Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

40 řádky
1.6 KiB

  1. # cython: language_level=3
  2. #########################################################################
  3. # Utility functions used across pysam
  4. #########################################################################
  5. cimport cython
  6. from cpython cimport array as c_array
  7. cpdef parse_region(contig=*, start=*, stop=*, region=*, reference=*, end=*)
  8. cdef int libc_whence_from_io(int whence)
  9. cdef OSError_from_errno(message, filename=*)
  10. #########################################################################
  11. # Utility functions for quality string conversions
  12. cpdef c_array.array qualitystring_to_array(input_str, int offset=*)
  13. cpdef array_to_qualitystring(c_array.array arr, int offset=*)
  14. cpdef qualities_to_qualitystring(qualities, int offset=*)
  15. ########################################################################
  16. ## String encoding configuration facilities
  17. ########################################################################
  18. cpdef get_encoding_error_handler()
  19. cpdef set_encoding_error_handler(name)
  20. ########################################################################
  21. ## Python 3 compatibility functions
  22. ########################################################################
  23. cdef charptr_to_str(const char *s, encoding=*, errors=*)
  24. cdef bytes charptr_to_bytes(const char *s, encoding=*, errors=*)
  25. cdef charptr_to_str_w_len(const char* s, size_t n, encoding=*, errors=*)
  26. cdef force_str(object s, encoding=*, errors=*)
  27. cdef bytes force_bytes(object s, encoding=*, errors=*)
  28. cdef decode_bytes(bytes s, encoding=*, errors=*)
  29. cdef bytes encode_filename(object filename)
  30. cdef from_string_and_size(const char *s, size_t length)