Skip to content

Commit

Permalink
Update some NuGet DLLs, including a fix for certain mzid files that d…
Browse files Browse the repository at this point in the history
…o not contain Scan Number CV Params
  • Loading branch information
FarmGeek4Life committed Jun 7, 2019
1 parent bf9081b commit 9b0c606
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
23 changes: 8 additions & 15 deletions MzidToTsvConverter/MzidToTsvConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void ConvertToTsv(ConverterOptions options)

if (mzidFiles.Count == 0)
{
ShowWarning("No mzid files were found with path spec " + options.MzidPath);
ConsoleMsgUtils.ShowWarning("No mzid files were found with path spec " + options.MzidPath);
return;
}

Expand All @@ -46,7 +46,7 @@ public void ConvertToTsv(ConverterOptions options)
if (options.MzidPaths.Count == 0)
{
var subDirsMessage = options.RecurseDirectories ? " or subdirectories" : "";
ShowWarning($"No mzid[.gz] files found in directory \"{options.MzidPath}\"{subDirsMessage}.");
ConsoleMsgUtils.ShowWarning($"No mzid[.gz] files found in directory \"{options.MzidPath}\"{subDirsMessage}.");
return;
}

Expand Down Expand Up @@ -74,7 +74,7 @@ public void ConvertToTsv(
var tsvFile = new FileInfo(tsvPath);
if (tsvFile.Exists)
{
ShowWarning("Overwriting existing file: " + tsvFile.Name);
ConsoleMsgUtils.ShowWarning("Overwriting existing file: " + tsvFile.Name);
Console.WriteLine();
}

Expand Down Expand Up @@ -114,10 +114,8 @@ public void ConvertToTsv(

if (isBadMsGfMzid)
{
ShowWarning(string.Format(
"Warning: file \"{0}\" was created with a version of MS-GF+ that had some erroneous output in the mzid file." +
" Using sequences from the peptide_ref attribute instead of the PeptideEvidenceRef element to try to bypass the issue.",
mzidPath));
ConsoleMsgUtils.ShowWarning("Warning: file \"{0}\" was created with a version of MS-GF+ that had some erroneous output in the mzid file." +
" Using sequences from the peptide_ref attribute instead of the PeptideEvidenceRef element to try to bypass the issue.", mzidPath);
}

csv.WriteHeader<PeptideMatch>();
Expand Down Expand Up @@ -212,12 +210,12 @@ public void ConvertToTsv(

if (unfilteredCount == 0)
{
ShowWarning("Warning: .mzID file does not have any results");
ConsoleMsgUtils.ShowWarning("Warning: .mzID file does not have any results");
Thread.Sleep(1500);
}
else if (writtenCount == 0)
{
ShowWarning("Warning: none of the results passed the specified filter(s)");
ConsoleMsgUtils.ShowWarning("Warning: none of the results passed the specified filter(s)");
Thread.Sleep(1500);
}
else
Expand All @@ -233,13 +231,8 @@ public void ConvertToTsv(
catch (SimpleMZIdentMLReader.DuplicateKeyException ex)
{
ConsoleMsgUtils.ShowError("MZID PARSE ERROR", ex);
ShowWarning("This type of error is usually caused by an error in the MZID output.");
ConsoleMsgUtils.ShowWarning("This type of error is usually caused by an error in the MZID output.");
}
}

private void ShowWarning(string warningMessage)
{
ConsoleMsgUtils.ShowWarning(warningMessage);
}
}
}
4 changes: 2 additions & 2 deletions MzidToTsvConverter/MzidToTsvConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CsvHelper" Version="9.2.3" />
<PackageReference Include="PRISM-Library" Version="2.5.20" />
<PackageReference Include="PSI_Interface" Version="1.3.31" />
<PackageReference Include="PRISM-Library" Version="2.5.21" />
<PackageReference Include="PSI_Interface" Version="2.2.1" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(ProjectDir)..\Readme.md&quot; &quot;$(TargetDir)&quot; /y /d" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
<Copyright>Copyright @ PNNL 2017</Copyright>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="PRISM-Library" Version="2.5.20" />
<PackageReference Include="CsvHelper" Version="9.2.3" />
<PackageReference Include="PRISM-Library" Version="2.5.21" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\PSI_Interface\PSI_Interface\PSI_Interface.csproj" />
Expand Down

0 comments on commit 9b0c606

Please sign in to comment.