@@ -110,6 +110,7 @@ Match* Mutation::searchInRead(Read* r, char* simplifiedBuf, int distanceReq, int
110110}
111111
112112vector<Mutation> Mutation::parseCsv (string filename) {
113+ int num = 0 ;
113114 if (GlobalSettings::verbose) {
114115 cerr << " Parsing target mutations from CSV file: " << filename << endl;
115116 }
@@ -160,7 +161,8 @@ vector<Mutation> Mutation::parseCsv(string filename) {
160161 else {
161162 mutations.push_back (mut);
162163 if (GlobalSettings::verbose) {
163- cerr <<name<<" " <<left<<" " <<center<<" " <<right<< " " <<chr <<endl;
164+ num++;
165+ cerr <<num<<" , " <<name<<" " <<left<<" " <<center<<" " <<right<< " " <<chr <<endl;
164166 }
165167 }
166168 }
@@ -172,6 +174,7 @@ vector<Mutation> Mutation::parseCsv(string filename) {
172174}
173175
174176vector<Mutation> Mutation::parseBuiltIn () {
177+ int num = 0 ;
175178 if (GlobalSettings::verbose) {
176179 cerr << " Using built-in target mutations" << endl;
177180 }
@@ -198,7 +201,8 @@ vector<Mutation> Mutation::parseBuiltIn() {
198201 Mutation mut (name, left, center, right, chr);
199202 mutations.push_back (mut);
200203 if (GlobalSettings::verbose) {
201- cerr <<name<<" " <<left<<" " <<center<<" " <<right<< " " <<chr <<endl;
204+ num++;
205+ cerr <<num<<" , " <<name<<" " <<left<<" " <<center<<" " <<right<< " " <<chr <<endl;
202206 }
203207 }
204208 if (mutations.size () <= 0 ){
@@ -208,6 +212,7 @@ vector<Mutation> Mutation::parseBuiltIn() {
208212}
209213
210214vector<Mutation> Mutation::parseVcf (string vcfFile, string refFile) {
215+ int num = 0 ;
211216 if (GlobalSettings::verbose) {
212217 cerr << " Parsing target mutations from VCF file: " << vcfFile << endl;
213218 cerr << " With reference genome: " << refFile << endl;
@@ -272,7 +277,8 @@ vector<Mutation> Mutation::parseVcf(string vcfFile, string refFile) {
272277 mut.setSmallIndel (true );
273278 mutations.push_back (mut);
274279 if (GlobalSettings::verbose) {
275- cerr <<name<<" " <<left<<" " <<center<<" " <<right<< " " <<chrom <<endl;
280+ num++;
281+ cerr <<num<<" , " <<name<<" " <<left<<" " <<center<<" " <<right<< " " <<chrom <<endl;
276282 }
277283 }
278284 if (mutations.size () <= 0 ){
0 commit comments