From: <ds...@us...> - 2012-09-25 21:50:42
|
Revision: 5949 http://sashimi.svn.sourceforge.net/sashimi/?rev=5949&view=rev Author: dshteyn Date: 2012-09-25 21:50:36 +0000 (Tue, 25 Sep 2012) Log Message: ----------- Mascot2XML: 5 digit scan numbers Modified Paths: -------------- branches/4-6/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/Mascot2XML/MascotConverter.cxx Modified: branches/4-6/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/Mascot2XML/MascotConverter.cxx =================================================================== --- branches/4-6/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/Mascot2XML/MascotConverter.cxx 2012-09-25 21:04:55 UTC (rev 5948) +++ branches/4-6/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/Mascot2XML/MascotConverter.cxx 2012-09-25 21:50:36 UTC (rev 5949) @@ -589,7 +589,7 @@ if(queryIndex == spectra_.length() + 1) { if(line_len > 8 && line[0] == 'n' && line[1] == 'u' && line[2] == 'm' && line[3] == '_' && line[4] == 'u' && line[5] == 's' && line[6] == 'e' && line[7] == 'd') { // gone too far - const char generic_spec[] = "spectrum.0000.0000."; + const char generic_spec[] = "spectrum.00000.00000."; const int next_alloc_len = (int)strlen(generic_spec)+12; char* next = new char[next_alloc_len]; if(precursor_ioncharges_.length() > 0) @@ -773,7 +773,7 @@ nextspectrum[n++] = '.'; } // cout << "Set Range: " << range << endl; - sprintf(nextspectrum+n,"%04ld.%04ld.",rangeStart,rangeEnd); + sprintf(nextspectrum+n,"%05ld.%05ld.",rangeStart,rangeEnd); n = (int)strlen(nextspectrum); if(spectra_.length() < precursor_ioncharges_.length()) nextspectrum[n++] = '0' + precursor_ioncharges_[spectra_.length()]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |