CandidateSearch 1.1.2
Proof-of-concept implementation of a search engine that uses sparse matrix multiplication to identify the best peptide candidates for a given mass spectrum.
Loading...
Searching...
No Matches
C:/Users/P42587/Documents/GitHub/CandidateSearch/CandidateSearch.cs
Go to the documentation of this file.
2
4{
10 public class CandidateSearch
11 {
15 public const string version = "1.1.2";
16
21 public static void Main(string[] args)
22 {
23 if (args.Length == 3) {
24 var spectraFile = args[0];
25 var databaseFile = args[1];
26 var settingsFile = args[2];
27
28 Console.WriteLine($"Starting Candidate Search v{version} ...");
29
30 var settings = SettingsReader.readSettings(settingsFile);
31 Console.WriteLine($"Read settings file '{settingsFile}' with the following settings:");
32 Console.WriteLine(settings.ToString());
33
34 if (settings.MODE.Split("_").First().Trim() == "GPU")
35 {
36 CandidateSearchGPU.Search(spectraFile, databaseFile, settings);
37 }
38 else
39 {
40 CandidateSearchCPU.Search(spectraFile, databaseFile, settings);
41 }
42
43 return;
44 }
45
46 Console.WriteLine("Incorrect number of arguments! CandidateSearch needs exactly 3 arguments: spectra.mgf database.fasta settings.txt");
47 return;
48 }
49 }
50}
static void Main(string[] args)
Main function that is executed when CandidateSearch is run.