|
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.
|
Settings for digestion, ion calculation and VectorSearch. More...
Public Member Functions | |
| Settings (int MaxCleavages=2, int MinPepLength=5, int MaxPepLength=30, int MaxPrecursorCharge=4, string MaxFragmentCharge="+1", int MaxNeutralLosses=1, int MaxNeutralLossMods=2, bool DecoySearch=true, int TopN=1000, float Tolerance=0.02f, bool Normalize=false, bool UseGaussian=true, string Mode="CPU_SMi32") | |
| Settings constructor to set the specified search parameters. | |
| bool | addFixedModification (string aminoAcid, double mass) |
| Add a fixed modification to the fixed modification dictionary. | |
| bool | addVariableModification (string aminoAcid, double mass) |
| Add a variable modification to the variable modification dictionary. | |
| string | modificationsToString (bool variable=false) |
| Returns a string representation of the modifications. | |
| override string | ToString () |
| Returns a string representation of the settings. | |
Properties | |
| int | MAX_CLEAVAGES [get, set] |
| Maximum number of missed cleavages allowed during digestion. | |
| int | MIN_PEP_LENGTH [get, set] |
| Minimum peptide length. | |
| int | MAX_PEP_LENGTH [get, set] |
| Maximum peptide length. | |
| int | MAX_PRECURSOR_CHARGE [get, set] |
| Maximum considered precursor ion charge. | |
| string | MAX_FRAGMENT_CHARGE [get, set] |
| Maximum considered fragment ion charge. | |
| int | MAX_NEUTRAL_LOSSES [get, set] |
| Maximum number of considered neutral losses. | |
| int | MAX_NEUTRAL_LOSS_MODS [get, set] |
| Maximum number of considered neutral loss modifications. | |
| Dictionary< string, double > | FIXED_MODIFICATIONS [get, set] |
| Dictionary for fixed modifications that maps amino acids to their possible modification masses. | |
| Dictionary< string, double > | VARIABLE_MODIFICATIONS [get, set] |
| Dictionary for variable modifications that maps amino acids to their possible modification masses. | |
| bool | DECOY_SEARCH [get, set] |
| Whether or not decoy search should be performed. | |
| int | TOP_N [get, set] |
| The top n candidates that should be returned by the VectorSearch. | |
| float | TOLERANCE [get, set] |
| The tolerance used for the VectorSearch. | |
| bool | NORMALIZE [get, set] |
| Whether or not scores should be normalized by the VectorSearch. | |
| bool | USE_GAUSSIAN [get, set] |
| Whether or not peaks should be modelled as gaussian distributions by the VectorSearch. | |
| string | MODE [get, set] |
| The search approach used by the VectorSearch. | |
Settings for digestion, ion calculation and VectorSearch.
Definition at line 8 of file Settings.cs.
| CandidateSearch.util.Settings.Settings | ( | int | MaxCleavages = 2, |
| int | MinPepLength = 5, |
||
| int | MaxPepLength = 30, |
||
| int | MaxPrecursorCharge = 4, |
||
| string | MaxFragmentCharge = "+1", |
||
| int | MaxNeutralLosses = 1, |
||
| int | MaxNeutralLossMods = 2, |
||
| bool | DecoySearch = true, |
||
| int | TopN = 1000, |
||
| float | Tolerance = 0::02f, |
||
| bool | Normalize = false, |
||
| bool | UseGaussian = true, |
||
| string | Mode = "CPU_SMi32" |
||
| ) |
Settings constructor to set the specified search parameters.
| MaxCleavages | Maximum number of missed cleavages allowed during digestion. |
| MinPepLength | Minimum peptide length. |
| MaxPepLength | Maximum peptide length. |
| MaxPrecursorCharge | Maximum considered precursor ion charge. |
| MaxFragmentCharge | Maximum considered fragment ion charge. |
| MaxNeutralLosses | Maximum number of considered neutral losses. |
| MaxNeutralLossMods | Maximum number of considered neutral loss modifications. |
| DecoySearch | Whether or not decoy search should be performed. |
| TopN | The top n candidates that should be returned by the VectorSearch. |
| Tolerance | The tolerance used for the VectorSearch. |
| Normalize | Whether or not scores should be normalized by the VectorSearch. |
| UseGaussian | Whether or not peaks should be modelled as gaussian distributions by the VectorSearch. |
| Mode | The search approach used by the VectorSearch. |
Definition at line 94 of file Settings.cs.
| bool CandidateSearch.util.Settings.addFixedModification | ( | string | aminoAcid, |
| double | mass | ||
| ) |
Add a fixed modification to the fixed modification dictionary.
| aminoAcid | The amino acid that will be modified. |
| mass | The mass of the modification. |
Definition at line 125 of file Settings.cs.
| bool CandidateSearch.util.Settings.addVariableModification | ( | string | aminoAcid, |
| double | mass | ||
| ) |
Add a variable modification to the variable modification dictionary.
| aminoAcid | The amino acid that can be modified. |
| mass | The mass of the modification. |
Definition at line 140 of file Settings.cs.
| string CandidateSearch.util.Settings.modificationsToString | ( | bool | variable = false | ) |
Returns a string representation of the modifications.
| variable | Whether to process fixed or variable modifications. |
Definition at line 154 of file Settings.cs.
| override string CandidateSearch.util.Settings.ToString | ( | ) |
Returns a string representation of the settings.
Definition at line 178 of file Settings.cs.
|
getset |
Whether or not decoy search should be performed.
Definition at line 54 of file Settings.cs.
|
getset |
Dictionary for fixed modifications that maps amino acids to their possible modification masses.
Definition at line 44 of file Settings.cs.
|
getset |
Maximum number of missed cleavages allowed during digestion.
Definition at line 14 of file Settings.cs.
|
getset |
Maximum considered fragment ion charge.
Definition at line 32 of file Settings.cs.
|
getset |
Maximum number of considered neutral loss modifications.
Definition at line 40 of file Settings.cs.
|
getset |
Maximum number of considered neutral losses.
Definition at line 36 of file Settings.cs.
|
getset |
Maximum peptide length.
Definition at line 22 of file Settings.cs.
|
getset |
Maximum considered precursor ion charge.
Definition at line 28 of file Settings.cs.
|
getset |
Minimum peptide length.
Definition at line 18 of file Settings.cs.
|
getset |
The search approach used by the VectorSearch.
Definition at line 76 of file Settings.cs.
|
getset |
Whether or not scores should be normalized by the VectorSearch.
Definition at line 68 of file Settings.cs.
|
getset |
The tolerance used for the VectorSearch.
Definition at line 64 of file Settings.cs.
|
getset |
The top n candidates that should be returned by the VectorSearch.
Definition at line 60 of file Settings.cs.
|
getset |
Whether or not peaks should be modelled as gaussian distributions by the VectorSearch.
Definition at line 72 of file Settings.cs.
|
getset |
Dictionary for variable modifications that maps amino acids to their possible modification masses.
Definition at line 48 of file Settings.cs.