You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 line
1.5 KiB

  1. from pysam.libcalignmentfile cimport AlignedSegment, AlignmentFile
  2. #################################################
  3. # Compatibility Layer for pysam < 0.8
  4. # import all declarations from htslib
  5. from pysam.libchtslib cimport *
  6. cdef class AlignedRead(AlignedSegment):
  7. pass
  8. cdef class Samfile(AlignmentFile):
  9. pass
  10. # import the conversion functions
  11. cdef extern from "htslib_util.h":
  12. # add *nbytes* into the variable length data of *src* at *pos*
  13. bam1_t * pysam_bam_update(bam1_t * b,
  14. size_t nbytes_old,
  15. size_t nbytes_new,
  16. uint8_t * pos)
  17. # now: static
  18. int aux_type2size(int)
  19. char * pysam_bam_get_qname(bam1_t * b)
  20. uint32_t * pysam_bam_get_cigar(bam1_t * b)
  21. uint8_t * pysam_bam_get_seq(bam1_t * b)
  22. uint8_t * pysam_bam_get_qual(bam1_t * b)
  23. uint8_t * pysam_bam_get_aux(bam1_t * b)
  24. int pysam_bam_get_l_aux(bam1_t * b)
  25. char pysam_bam_seqi(uint8_t * s, int i)
  26. uint16_t pysam_get_bin(bam1_t * b)
  27. uint8_t pysam_get_qual(bam1_t * b)
  28. uint8_t pysam_get_l_qname(bam1_t * b)
  29. uint16_t pysam_get_flag(bam1_t * b)
  30. uint32_t pysam_get_n_cigar(bam1_t * b)
  31. void pysam_set_bin(bam1_t * b, uint16_t v)
  32. void pysam_set_qual(bam1_t * b, uint8_t v)
  33. void pysam_set_l_qname(bam1_t * b, uint8_t v)
  34. void pysam_set_flag(bam1_t * b, uint16_t v)
  35. void pysam_set_n_cigar(bam1_t * b, uint32_t v)
  36. void pysam_update_flag(bam1_t * b, uint16_t v, uint16_t flag)