Skip to content

Commit 2746c8c

Browse files
author
mhoopmann
committed
Fixed missing adduct_sites parameter when generating default params file.
1 parent ae1ad55 commit 2746c8c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

MParams.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ void MParams::exportDefault(string ver){
201201
fprintf(f, "ion_series_Y = %d\n", (int)def.ionSeries[4]);
202202
fprintf(f, "ion_series_Z = %d #Z-dot values are used\n", (int)def.ionSeries[5]);
203203
fprintf(f, "\n\n#\n# Search Space Prameters: specifies breadth of data analysis.\n#\n");
204+
fprintf(f, "#adduct_sites = DE #restricts adduct mass to the specified amino acids. Use 'n' and 'c' for protein termini.\n");
204205
fprintf(f, "decoy_filter = %s #identifier for all decoys in the database.\n",def.decoy.c_str());
205206
fprintf(f, "e_value_depth = %d #robustness of e-value histogram. Larger number improves e-value estimates, but increases computation time.\n",def.eValDepth);
206207
fprintf(f, "min_adduct_mass = %.1lf #lowest allowed adduct mass in Daltons.\n",def.minAdductMass);
@@ -225,9 +226,9 @@ void MParams::exportDefault(string ver){
225226
fprintf(f, "#reporter_ion = 311.00\n");
226227
fprintf(f, "#reporter_ion = 470.03\n");
227228
fprintf(f, "\n\n#\n# Diagnostics: Only recommended for advanced users. If enabled, a diagnostic XML file is output with the Magnum results.\n#\n");
228-
fprintf(f, "# diagnostic = 502 #diagnose intermediate peptide calculations for any scan number.\n");
229-
fprintf(f, "# diagnostic = 503 #list multiple MS2 scan numbers, one per line.\n");
230-
fprintf(f, "# diagnostic = -1 #or specify -1 to diagnose all MS2 scans.\n");
229+
fprintf(f, "#diagnostic = 502 #diagnose intermediate peptide calculations for any scan number.\n");
230+
fprintf(f, "#diagnostic = 503 #list multiple MS2 scan numbers, one per line.\n");
231+
fprintf(f, "#diagnostic = -1 #or specify -1 to diagnose all MS2 scans.\n");
231232
fprintf(f, "top_count = %d #number of lines of candidate peptides to diagnose per precursor prediction per MS2 scan.\n",def.topCount);
232233
fprintf(f, "truncate_prot_names = %d #Shorten protein names to just the first number of characters, 0 = off\n",def.truncate);
233234
fclose(f);

MagnumManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "MParams.h"
66

77
#define VERSION "1.3.3"
8-
#define BDATE "April 3 2024"
8+
#define BDATE "April 25 2024"
99

1010
class MagnumManager {
1111
public:

0 commit comments

Comments
 (0)