s4553711
4/13/2017 - 8:11 AM

freebayes-manually-variant-input.cpp

    typedef map<int, map<long int, vector<Allele> > >::iterator it_type;
    for (it_type it = inputVariantAlleles.begin(); it != inputVariantAlleles.end(); it++) {
        cerr << "CK variant input 1 level key:" << it->first << endl;
        typedef map<long int, vector<Allele> >::iterator it_type2;
        for (it_type2 it2 = it->second.begin(); it2 != it->second.end(); it2++) {
            cerr << "CK variant input 2 level key:" << it2->first << endl;
            cerr << "CK variant input 2 level value:" << it2->second << endl;
            vector<Allele>& inputalleles = it2->second;
            for (vector<Allele>::iterator a = inputalleles.begin(); a != inputalleles.end(); ++a) {
                Allele& allele = *a;
                resultAlleles.push_back(allele);
            }    
        }    
    }