annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pysam/libcsamfile.pxd @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 # cython: language_level=3
jpayne@68 2 from pysam.libcalignmentfile cimport AlignedSegment, AlignmentFile
jpayne@68 3
jpayne@68 4 #################################################
jpayne@68 5 # Compatibility Layer for pysam < 0.8
jpayne@68 6
jpayne@68 7 # import all declarations from htslib
jpayne@68 8 from pysam.libchtslib cimport *
jpayne@68 9
jpayne@68 10 cdef class AlignedRead(AlignedSegment):
jpayne@68 11 pass
jpayne@68 12
jpayne@68 13 cdef class Samfile(AlignmentFile):
jpayne@68 14 pass
jpayne@68 15
jpayne@68 16 # import the conversion functions
jpayne@68 17 cdef extern from "htslib_util.h":
jpayne@68 18
jpayne@68 19 # add *nbytes* into the variable length data of *src* at *pos*
jpayne@68 20 bam1_t * pysam_bam_update(bam1_t * b,
jpayne@68 21 size_t nbytes_old,
jpayne@68 22 size_t nbytes_new,
jpayne@68 23 uint8_t * pos)
jpayne@68 24
jpayne@68 25 # now: static
jpayne@68 26 int aux_type2size(int)
jpayne@68 27
jpayne@68 28 char * pysam_bam_get_qname(bam1_t * b)
jpayne@68 29 uint32_t * pysam_bam_get_cigar(bam1_t * b)
jpayne@68 30 uint8_t * pysam_bam_get_seq(bam1_t * b)
jpayne@68 31 uint8_t * pysam_bam_get_qual(bam1_t * b)
jpayne@68 32 uint8_t * pysam_bam_get_aux(bam1_t * b)
jpayne@68 33 int pysam_bam_get_l_aux(bam1_t * b)
jpayne@68 34 char pysam_bam_seqi(uint8_t * s, int i)
jpayne@68 35
jpayne@68 36 uint16_t pysam_get_bin(bam1_t * b)
jpayne@68 37 uint8_t pysam_get_qual(bam1_t * b)
jpayne@68 38 uint8_t pysam_get_l_qname(bam1_t * b)
jpayne@68 39 uint16_t pysam_get_flag(bam1_t * b)
jpayne@68 40 uint32_t pysam_get_n_cigar(bam1_t * b)
jpayne@68 41 void pysam_set_bin(bam1_t * b, uint16_t v)
jpayne@68 42 void pysam_set_qual(bam1_t * b, uint8_t v)
jpayne@68 43 void pysam_set_l_qname(bam1_t * b, uint8_t v)
jpayne@68 44 void pysam_set_flag(bam1_t * b, uint16_t v)
jpayne@68 45 void pysam_set_n_cigar(bam1_t * b, uint32_t v)
jpayne@68 46 void pysam_update_flag(bam1_t * b, uint16_t v, uint16_t flag)