Go to the documentation of this file.
28 #ifndef SYNCED_BCF_READER_H
29 #define SYNCED_BCF_READER_H
36 #define COLLAPSE_NONE 0 // require the exact same set of alleles in all files
37 #define COLLAPSE_SNPS 1 // allow different alleles, as long as they all are SNPs
38 #define COLLAPSE_INDELS 2 // the same as above, but with indels
39 #define COLLAPSE_ANY 4 // any combination of alleles can be returned by bcf_sr_next_line()
40 #define COLLAPSE_SOME 8 // at least some of the ALTs must match
41 #define COLLAPSE_BOTH (COLLAPSE_SNPS|COLLAPSE_INDELS)
145 #define bcf_sr_has_line(readers, i) (readers)->has_line[i]
146 #define bcf_sr_get_line(_readers, i) ((_readers)->has_line[i] ? ((_readers)->readers[i].buffer[0]) : NULL)
147 #define bcf_sr_region_done(_readers,i) (!(_readers)->has_line[i] && !(_readers)->readers[i].nbuffer ? 1 : 0)