Skip to content

Commit 837995a

Browse files
committed
-x flag
Add reference and exception data
1 parent 3a8507e commit 837995a

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

MainClass.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static class MainClass
1919
private static readonly ILog Log =
2020
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
2121

22-
public const string Version = "1.3.1";
22+
public const string Version = "1.3.2";
2323

2424
public static void Main(string[] args)
2525
{
@@ -424,6 +424,10 @@ private static void RegularParametersParsing(string[] args)
424424
"e|ignoreInstrumentErrors", "Ignore missing properties by the instrument.",
425425
v => parseInput.IgnoreInstrumentErrors = v != null
426426
},
427+
{
428+
"x|includeExceptionData", "Include reference and exception data",
429+
v => parseInput.ExData = v != null
430+
},
427431
{
428432
"L=|msLevel=",
429433
"Select MS levels (MS1, MS2, etc) included in the output, should be a comma-separated list of integers ( 1,2,3 ) and/or intervals ( 1-3 ), open-end intervals ( 1- ) are allowed",

ParseInput.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public string RawFilePath
7575

7676
public bool IgnoreInstrumentErrors { get; set; }
7777

78+
public bool ExData { get; set; }
79+
7880
public HashSet<int> MsLevel { get; set; }
7981

8082
public bool MGFPrecursor { get; set; }

Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// set of attributes. Change these attribute values to modify the information
66
// associated with an assembly.
77
[assembly: AssemblyTitle("ThermoRawFileParser")]
8-
[assembly: AssemblyDescription("")]
8+
[assembly: AssemblyDescription("Modular, Scalable, and Cross-Platform RAW File Conversion [PMID 31755270]")]
99
[assembly: AssemblyConfiguration("")]
1010
[assembly: AssemblyCompany("")]
1111
[assembly: AssemblyProduct("ThermoRawFileParser")]
@@ -31,7 +31,7 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.3.1.0")]
35-
[assembly: AssemblyFileVersion("1.3.1.0")]
34+
[assembly: AssemblyVersion("1.3.2.0")]
35+
[assembly: AssemblyFileVersion("1.3.2.0")]
3636

3737
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ optional subcommands are xic|query (use [subcommand] -h for more info]):
7676
verbose.
7777
-e, --ignoreInstrumentErrors
7878
Ignore missing properties by the instrument.
79+
-x, --includeExceptionData Include reference and exception data
7980
-L, --msLevel=VALUE Select MS levels (MS1, MS2, etc) included in the
8081
output, should be a comma-separated list of
8182
integers ( 1,2,3 ) and/or intervals ( 1-3 ),

RawFileParser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ private static void ProcessFile(ParseInput parseInput)
9999
// selected instrument to the MS instrument, first instance of it
100100
rawFile.SelectInstrument(Device.MS, 1);
101101

102+
rawFile.IncludeReferenceAndExceptionData = parseInput.ExData;
103+
102104
// Get the first and last scan from the RAW file
103105
var firstScanNumber = rawFile.RunHeaderEx.FirstSpectrum;
104106
var lastScanNumber = rawFile.RunHeaderEx.LastSpectrum;

0 commit comments

Comments
 (0)