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.
|
Simplified peptide class that stores peptide/peptidoform information. More...
Public Member Functions | |
Peptide (string Sequence, double Mass, Dictionary< int, double > Modifications, Settings IonSettings, bool IsDecoy) | |
Constructor for a new peptide/pepidoform. | |
int[] | getEnconding (int massRange=5000, int massMultiplier=100) |
Get the encoding vector of the peptide. | |
override string | ToString () |
Constructs a string representation of the peptide. | |
bool | addModification (int position, double mass) |
Adds a modification to the peptide if the peptide isn't already modified at that position. | |
Properties | |
string | sequence [get] |
Amino acid sequence of the peptide. | |
double | mass [get] |
Mass of the unmodified peptide. | |
Dictionary< int, double > | modifications [get] |
Dictionary mapping residue positions (0 based) to modification masses. | |
bool | isDecoy [get] |
Is the peptide a decoy peptide or target peptide. | |
List< double > | ions [get] |
List of theoretical ion m/z values. | |
Simplified peptide class that stores peptide/peptidoform information.
Definition at line 8 of file Database.cs.
CandidateSearch.util.Peptide.Peptide | ( | string | Sequence, |
double | Mass, | ||
Dictionary< int, double > | Modifications, | ||
Settings | IonSettings, | ||
bool | IsDecoy | ||
) |
Constructor for a new peptide/pepidoform.
Sequence | Sequence of amino acids. |
Mass | Mass of the unmodified peptide. |
Modifications | Dictionary that maps amino acid positions (0 based) to modification masses. |
IonSettings | Settings used for ion calculation. |
IsDecoy | Whether or not the peptide is a decoy peptide. |
Definition at line 39 of file Database.cs.
bool CandidateSearch.util.Peptide.addModification | ( | int | position, |
double | mass | ||
) |
Adds a modification to the peptide if the peptide isn't already modified at that position.
position | The position (0 based) of the modification. |
mass | The modification mass. |
Definition at line 97 of file Database.cs.
int[] CandidateSearch.util.Peptide.getEnconding | ( | int | massRange = 5000 , |
int | massMultiplier = 100 |
||
) |
Get the encoding vector of the peptide.
massRange | Maximum m/z that should be considered while encoding. Has to match the specifications of VectorSearch. |
massMultiplier | Precision of the encoding. Has to match the specifications of VectorSearch. |
Definition at line 54 of file Database.cs.
override string CandidateSearch.util.Peptide.ToString | ( | ) |
Constructs a string representation of the peptide.
Definition at line 73 of file Database.cs.
|
get |
List of theoretical ion m/z values.
Definition at line 29 of file Database.cs.
|
get |
Is the peptide a decoy peptide or target peptide.
Definition at line 25 of file Database.cs.
|
get |
Mass of the unmodified peptide.
Definition at line 17 of file Database.cs.
|
get |
Dictionary mapping residue positions (0 based) to modification masses.
Definition at line 21 of file Database.cs.
|
get |
Amino acid sequence of the peptide.
Definition at line 13 of file Database.cs.