X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sample.h;fp=sample.h;h=149f380906ad06e6a68669ff46bc2c9c42ef214d;hb=d14782f26230244039bf38f6384a7a9106b0daed;hp=0000000000000000000000000000000000000000;hpb=63af098c78ef4163356c281e87bfb467adc8824d;p=samtools.git diff --git a/sample.h b/sample.h new file mode 100644 index 0000000..149f380 --- /dev/null +++ b/sample.h @@ -0,0 +1,17 @@ +#ifndef BAM_SAMPLE_H +#define BAM_SAMPLE_H + +#include "kstring.h" + +typedef struct { + int n, m; + char **smpl; + void *rg2smid; +} bam_sample_t; + +bam_sample_t *bam_smpl_init(void); +int bam_smpl_add(bam_sample_t *sm, const char *abs, const char *txt); +int bam_smpl_rg2smid(const bam_sample_t *sm, const char *fn, const char *rg, kstring_t *str); +void bam_smpl_destroy(bam_sample_t *sm); + +#endif