-
Notifications
You must be signed in to change notification settings - Fork 0
/
vcf.h
30 lines (25 loc) · 837 Bytes
/
vcf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* File: vcf.h
* Author: Richard Durbin (rd109@cam.ac.uk)
* Copyright (C) Richard Durbin, Cambridge University, 2019
*-------------------------------------------------------------------
* Description:
* Exported functions:
* HISTORY:
* Last edited: May 14 03:43 2020 (rd109)
* Created: Sun Nov 17 23:25:45 2019 (rd109)
*-------------------------------------------------------------------
*/
#include "utils.h"
typedef struct {
char *gt ; // 1 = miss, 2 = 0, 3 = 1, 0-terminated: length dictMax(samples)+1
int pos ;
char ref, alt ; // lower case - only parse binary SNPs for now
} VcfSite ;
typedef struct {
DICT *samples ;
Array sites ; // of VcfSite
char *seqName ;
} Vcf ;
Vcf *vcfRead (char *filename, int *multi, int *nonSNP) ;
void vcfDestroy (Vcf *v) ;
/****************************************/