21 public static void Main(
string[] args)
23 if (args.Length == 3) {
24 var spectraFile = args[0];
25 var databaseFile = args[1];
26 var settingsFile = args[2];
28 Console.WriteLine($
"Starting Candidate Search v{version} ...");
30 var settings = SettingsReader.readSettings(settingsFile);
31 Console.WriteLine($
"Read settings file '{settingsFile}' with the following settings:");
32 Console.WriteLine(settings.ToString());
34 if (settings.MODE.Split(
"_").First().Trim() ==
"GPU")
36 CandidateSearchGPU.Search(spectraFile, databaseFile, settings);
40 CandidateSearchCPU.Search(spectraFile, databaseFile, settings);
46 Console.WriteLine(
"Incorrect number of arguments! CandidateSearch needs exactly 3 arguments: spectra.mgf database.fasta settings.txt");