Skip to content

Commit 806f582

Browse files
pre merge commit
1 parent 85d300a commit 806f582

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

MainClass.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ private static HashSet<int> ParseMsLevel(string inputString)
782782
if (!valid.IsMatch(inputString))
783783
throw new OptionException("Invalid characters in msLevel key", "msLevel");
784784

785-
foreach (var piece in inputString.Split(new char[] { ',' }))
785+
foreach (var piece in inputString.Split(new char[] {','}))
786786
{
787787
try
788788
{
@@ -825,7 +825,8 @@ private static HashSet<int> ParseMsLevel(string inputString)
825825

826826
catch (Exception ex)
827827
{
828-
throw new OptionException(String.Format("Cannot parse part of msLevel input: '{0}'", piece), "msLevel", ex);
828+
throw new OptionException(String.Format("Cannot parse part of msLevel input: '{0}'", piece),
829+
"msLevel", ex);
829830
}
830831
}
831832

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Wrapper around the .net (C#) ThermoFisher ThermoRawFileReader library for running on Linux with mono (works on Windows too). It takes a thermo RAW file as input and outputs a metadata file and the spectra in 3 possible formats:
44
* MGF: MS2 and MS3 spectra
5-
* mzML and indexed mzML: both MS1, MS2 and MS3 spectra
5+
* mzML and indexed mzML: MS1, MS2 and MS3 spectra
66
* Apache Parquet: under development
77

88
As of version 1.2.0, 2 subcommands are available (shoutout to the [eubic 2020 developers meeting](https://eubic-ms.org/events/2020-developers-meeting/), see [usage](#usage) for examples):
@@ -113,7 +113,7 @@ usage is:
113113
Thermo library. By default peak picking is
114114
enabled.
115115
-s, --stdout Pipes the output into standard output. Logging is
116-
being turned off
116+
being turned off.
117117
```
118118
### xic subcommand
119119
Return one or more chromatograms based on query JSON input.

RawFileParser.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public static void Parse(ParseInput parseInput)
2424
{
2525
Log.Info("Started analyzing folder " + parseInput.RawDirectoryPath);
2626

27-
var rawFilesPath = Directory.EnumerateFiles(parseInput.RawDirectoryPath, "*", SearchOption.TopDirectoryOnly).Where(s => s.ToLower().EndsWith("raw")).ToArray();
27+
var rawFilesPath = Directory
28+
.EnumerateFiles(parseInput.RawDirectoryPath, "*", SearchOption.TopDirectoryOnly)
29+
.Where(s => s.ToLower().EndsWith("raw")).ToArray();
2830
Log.Info(String.Format("The folder contains {0} RAW files", rawFilesPath.Length));
2931

3032
if (rawFilesPath.Length == 0)

ThermoRawFileParserTest/WriterTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public void TestFolderMgfs()
4444

4545
RawFileParser.Parse(parseInput);
4646

47-
var numfiles = Directory.GetFiles(tempFilePath, "*.mgf");
48-
Assert.AreEqual(numfiles.Length, 2);
47+
var numFiles = Directory.GetFiles(tempFilePath, "*.mgf");
48+
Assert.AreEqual(numFiles.Length, 2);
4949

5050
var mgfData = Mgf.LoadAllStaticData(Path.Combine(tempFilePath, "small1.mgf"));
5151
Assert.AreEqual(34, mgfData.NumSpectra);

Writer/MzMlSpectrumWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
11771177
//tune version < 3 produced trailer entry like "SPS Mass #", one entry per mass
11781178
if (SPSentry.IsMatch(trailerData.Labels[i]))
11791179
{
1180-
var mass = Double.Parse(trailerData.Values[i]);
1180+
var mass = double.Parse(trailerData.Values[i]);
11811181
if (mass > 0) SPSMasses.Add(mass); //zero means mass does not exist
11821182
}
11831183

@@ -1186,7 +1186,7 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
11861186
{
11871187
foreach (var mass in trailerData.Values[i].Trim().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
11881188
{
1189-
SPSMasses.Add(Double.Parse(mass));
1189+
SPSMasses.Add(double.Parse(mass));
11901190
}
11911191

11921192
}

0 commit comments

Comments
 (0)