Merge commit 'upstream/0.5'
[pysam.git] / samtools / sample.h
diff --git a/samtools/sample.h b/samtools/sample.h
new file mode 100644 (file)
index 0000000..85fe499
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef BAM_SAMPLE_H
+#define BAM_SAMPLE_H
+
+#include "kstring.h"
+
+typedef struct {
+       int n, m;
+       char **smpl;
+       void *rg2smid, *sm2id;
+} 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