annotate PsiCLASS-1.0.2/samtools-0.1.19/sample.h @ 0:903fc43d6227 draft default tip

Uploaded
author lsong10
date Fri, 26 Mar 2021 16:52:45 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
1 #ifndef BAM_SAMPLE_H
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
2 #define BAM_SAMPLE_H
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
3
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
4 #include "kstring.h"
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
5
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
6 typedef struct {
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
7 int n, m;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
8 char **smpl;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
9 void *rg2smid, *sm2id;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
10 } bam_sample_t;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
11
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
12 bam_sample_t *bam_smpl_init(void);
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
13 int bam_smpl_add(bam_sample_t *sm, const char *abs, const char *txt);
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
14 int bam_smpl_rg2smid(const bam_sample_t *sm, const char *fn, const char *rg, kstring_t *str);
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
15 void bam_smpl_destroy(bam_sample_t *sm);
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
16
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
17 #endif