From 30e73f0b80a82f340fd38b5cf507c9d5e1218176 Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 26 Aug 2024 09:38:55 -0700 Subject: [PATCH] polishing prose (#2403) --- .../PrecursorSearchModes/DotMassDiffAcceptor.cs | 4 ++-- MetaMorpheus/TaskLayer/MetaMorpheusTask.cs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/MetaMorpheus/EngineLayer/PrecursorSearchModes/DotMassDiffAcceptor.cs b/MetaMorpheus/EngineLayer/PrecursorSearchModes/DotMassDiffAcceptor.cs index 657154052..13ea0fd8c 100644 --- a/MetaMorpheus/EngineLayer/PrecursorSearchModes/DotMassDiffAcceptor.cs +++ b/MetaMorpheus/EngineLayer/PrecursorSearchModes/DotMassDiffAcceptor.cs @@ -55,7 +55,7 @@ public override string ToString() public override string ToProseString() { - return (Tolerance.ToString() + " around " + String.Join(",", AcceptableSortedMassShifts) + " Da"); + return (Tolerance.ToString() + " around " + String.Join(", ", AcceptableSortedMassShifts) + " Da"); } } -} \ No newline at end of file +} diff --git a/MetaMorpheus/TaskLayer/MetaMorpheusTask.cs b/MetaMorpheus/TaskLayer/MetaMorpheusTask.cs index cbc145fcf..0a0f89e35 100644 --- a/MetaMorpheus/TaskLayer/MetaMorpheusTask.cs +++ b/MetaMorpheus/TaskLayer/MetaMorpheusTask.cs @@ -572,12 +572,13 @@ public MyTaskResults RunTask(string output_folder, List currentProtei using (StreamWriter file = new StreamWriter(proseFilePath)) { file.WriteLine("The data analysis was performed using MetaMorpheus version " + GlobalVariables.MetaMorpheusVersion + ", available at " + "https://github.com/smith-chem-wisc/MetaMorpheus."); + file.WriteLine(); file.Write(ProseCreatedWhileRunning.ToString()); file.WriteLine(SystemInfo.SystemProse().Replace(Environment.NewLine, "") + " "); + file.WriteLine(); file.WriteLine("The total time to perform the " + TaskType + " task on " + currentRawDataFilepathList.Count + " spectra file(s) was " + String.Format("{0:0.00}", MyTaskResults.Time.TotalMinutes) + " minutes."); file.WriteLine(); - file.WriteLine("Published works using MetaMorpheus software are encouraged to cite: Solntsev, S. K.; Shortreed, M. R.; Frey, B. L.; Smith, L. M. Enhanced Global Post-translational Modification Discovery with MetaMorpheus. Journal of Proteome Research. 2018, 17 (5), 1844-1851."); - + file.WriteLine("Published works using MetaMorpheus software are encouraged to cite the appropriate publications listed in the reference guide, found here: https://github.com/smith-chem-wisc/MetaMorpheus/blob/master/README.md."); file.WriteLine(); file.WriteLine("Spectra files: "); file.WriteLine(string.Join(Environment.NewLine, currentRawDataFilepathList.Select(b => '\t' + b))); @@ -1186,4 +1187,4 @@ protected static void SanitizeProteinDatabase(List proteins, TargetCont } } } -} \ No newline at end of file +}