annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pysam/libcsamfile.pxd @ 69:33d812a61356

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