X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=pysam.git;a=blobdiff_plain;f=pysam%2Fpysam_util.h;h=c6184eb756cca0241dc06449b829f4198ebef02a;hp=89e381bbd8fee3762d56a1d7dad14b9c44f6b8a2;hb=ca46ef4ba4a883c57cea62d5bf1bc021f1185109;hpb=d02fe5283ed7a93a2f76a5d6dc6e37b40c11b9b1 diff --git a/pysam/pysam_util.h b/pysam/pysam_util.h index 89e381b..c6184eb 100644 --- a/pysam/pysam_util.h +++ b/pysam/pysam_util.h @@ -48,12 +48,18 @@ extern unsigned char bam_nt16_table[256]; // translate a reference string *s* to a tid int pysam_reference2tid( bam_header_t *header, const char * s ); +// return number of mapped reads for tid +uint32_t pysam_get_mapped( const bam_index_t *idx, const int tid ); + +// return number of unmapped reads for tid +uint32_t pysam_get_unmapped( const bam_index_t *idx, const int tid ); + // debugging functions -#include "glf.h" -uint32_t pysam_glf_depth( glf1_t * g); +/* #include "glf.h" */ +/* uint32_t pysam_glf_depth( glf1_t * g); */ -#include "bam_maqcns.h" -void pysam_dump_glf( glf1_t * g, bam_maqcns_t * c ); +/* #include "bam_maqcns.h" */ +/* void pysam_dump_glf( glf1_t * g, bam_maqcns_t * c ); */ #endif