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
CandidateSearch.util.Result Class Reference

Result class to transform and store the returned integer array of VectorSearch. More...

Public Member Functions

 Result (ref int[] SearchResult, ref List< Peptide > Peptides, ref List< Spectrum > Spectra, int TopN)
 Constructor creating a result item that stores the processed VectorSearch result.
 
int export (string filename)
 Exports the results to csv format into a file with the given filename.
 

Properties

Dictionary< int, List< Peptide > > result [get]
 Dictionary that maps scan numbers to lists of peptide candidates.
 

Detailed Description

Result class to transform and store the returned integer array of VectorSearch.

Definition at line 6 of file Result.cs.

Constructor & Destructor Documentation

◆ Result()

CandidateSearch.util.Result.Result ( ref int[]  SearchResult,
ref List< Peptide Peptides,
ref List< Spectrum Spectra,
int  TopN 
)

Constructor creating a result item that stores the processed VectorSearch result.

Parameters
SearchResultThe search result of the VectorSearch.
PeptidesThe complete list of considered peptides/peptidoforms.
SpectraThe complete list of searched spectra.
TopNThe number of top candidates reported for each spectrum.

Definition at line 20 of file Result.cs.

Member Function Documentation

◆ export()

int CandidateSearch.util.Result.export ( string  filename)

Exports the results to csv format into a file with the given filename.

Parameters
filenameThe output filename.
Returns
0 if the export was successful, 1 if it was unsuccessful.

Definition at line 49 of file Result.cs.

Property Documentation

◆ result

Dictionary<int, List<Peptide> > CandidateSearch.util.Result.result
get

Dictionary that maps scan numbers to lists of peptide candidates.

Definition at line 11 of file Result.cs.


The documentation for this class was generated from the following file: