X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bcftools%2Fbcf.h;h=92b2c0364e72503f189b0754da160e310cf034e3;hb=4fe4b27b44d067c21948870d9e48976662dec397;hp=b52f36721d66a248530eef27c37d8881f1543a6a;hpb=4e4e3fdee9dd2331d38effa3f3af29a0a2c4f268;p=samtools.git diff --git a/bcftools/bcf.h b/bcftools/bcf.h index b52f367..92b2c03 100644 --- a/bcftools/bcf.h +++ b/bcftools/bcf.h @@ -19,7 +19,7 @@ typedef struct { char *str, *ref, *alt, *flt, *info, *fmt; // fmt, ref, alt and info point to str int n_gi, m_gi; bcf_ginfo_t *gi; - int n_alleles; + int n_alleles, n_smpl; // derived info: ref, alt, flt, info, fmt, n_gi, n_alleles } bcf1_t; @@ -49,7 +49,7 @@ extern "C" { bcf_t *bcf_open(const char *fn, const char *mode); int bcf_close(bcf_t *b); int bcf_read(bcf_t *bp, const bcf_hdr_t *h, bcf1_t *b); - int bcf_sync(int n_smpl, bcf1_t *b); + int bcf_sync(bcf1_t *b); int bcf_write(bcf_t *bp, const bcf_hdr_t *h, const bcf1_t *b); bcf_hdr_t *bcf_hdr_read(bcf_t *b); int bcf_hdr_write(bcf_t *b, const bcf_hdr_t *h); @@ -65,8 +65,8 @@ extern "C" { int vcf_write(bcf_t *bp, bcf_hdr_t *h, bcf1_t *b); int vcf_read(bcf_t *bp, bcf_hdr_t *h, bcf1_t *b); - int bcf_shrink_alt(int n_smpl, bcf1_t *b, int n); - int bcf_gl2pl(int n_smpl, bcf1_t *b); + int bcf_shrink_alt(bcf1_t *b, int n); + int bcf_gl2pl(bcf1_t *b); void *bcf_build_refhash(bcf_hdr_t *h); void bcf_str2id_destroy(void *_hash);