-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymbolic_alternates.cpp
31 lines (27 loc) · 1.08 KB
/
symbolic_alternates.cpp
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
31
// ******************************************************
// vcfCTools (c) 2011 Alistair Ward
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ------------------------------------------------------
// Last modified: 18 February 2011
// ------------------------------------------------------
// Tools for handling symbolic alternate allele
// descriptions for structural variants.
// ******************************************************
#include "symbolic_alternates.h"
using namespace std;
using namespace vcfCTools;
// Check that the alternate alleles conform to the spec.
void validateAlternateAlleles(vcfHeader&, variant& var) {
// Loop over all records at this locus.
vector<string>::iterator aIter = var.ovIter->alts.begin();
vector<variantType>::iterator typeIter = var.ovIter->type.begin();
for (; aIter != var.ovIter->alts.end(); aIter++) {
if (typeIter->isSv) {
cerr << *aIter << " " << typeIter->isSv << endl;
} else if (typeIter->isRearrangement) {
cerr << *aIter << " " << typeIter->isSv << endl;
}
typeIter++;
}
}