58 Peptide(
UInt32 protein_idx, uint32_t mod_bitmask, std::pair<uint16_t , uint16_t> sequence,
float precursor_mz):
59 protein_idx(protein_idx),
60 mod_bitmask_(mod_bitmask),
62 precursor_mz_(precursor_mz)
71 Span(std::pair<uint16_t, uint16_t> span) :
first(span.
first), second(span.second) {}
72 operator std::pair<uint16_t, uint16_t>()
const {
return {
first, second}; }
89 uint32_t num_matched_{};
90 uint32_t subset_bitmask_{};
92 uint16_t precursor_charge_{};
93 int16_t isotope_error_{};
94 uint16_t realized_length_{};
95 size_t peptide_idx_{};
115 this->hits_.insert(this->hits_.end(), other.
hits_.begin(), other.
hits_.end());
237 std::vector<std::pair<UInt32, UInt32>>& occurrences)
const;
243#ifdef DEBUG_FRAGMENT_INDEX
277 void build(
const std::vector<FASTAFile::FASTAEntry> & fasta_entries);
293 void build(
const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
312 const std::pair<float, float>& window)
const;
319 double upper_magnitude,
320 bool unit_ppm)
noexcept
322 const double threshold = unit_ppm ? 1000.0 : 1.0;
323 return std::max(lower_magnitude, upper_magnitude) > threshold;
441 peptide_idx(peptide_idx),
442 fragment_mz(fragment_mz)
456 const std::pair<size_t,size_t>& peptide_idx_range,
457 uint16_t peak_charge);
484 const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
503 const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
505 bool with_electron_ions);
518 const std::vector<FASTAFile::FASTAEntry>& fasta_entries)
const;
541 const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
542 double target_mh_plus,
543 double tolerance_lower_magnitude,
544 double tolerance_upper_magnitude,
545 bool tolerance_ppm)
const;
555 const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
556 size_t realized_length,
557 uint32_t subset_bitmask = 0)
const;
570 peptide_idx_(peptide_idx),
571 fragment_mz_(fragment_mz)
577 bool is_build_{
false};
612 static void sortPeptides_(std::vector<Peptide>& peptides,
size_t min_task_size = 8192);
618 std::vector<std::pair<const ResidueModification*, uint32_t>>
mod_class;
622 bool runs_hold_peptidoforms{
true};
624 bool unique_variable_renderings{
true};
626 bool slots_depend_on_context{
false};
631 for (
const auto& [ptr, cls] : mod_class)
633 if (ptr == mod)
return cls;
654 std::vector<uint32_t>& tokens_b)
const;
684 static constexpr uint16_t NTERM_SLOT = UINT16_MAX - 1;
685 static constexpr uint16_t CTERM_SLOT = UINT16_MAX;
688 static constexpr size_t MAX_MOD_SLOTS = 32;
708 bool is_protein_nterm =
false,
bool is_protein_cterm =
false)
const;
719 bool include_prot_cterm_mods)
const;
725 bool include_prot_cterm_mods)
const;
745 template <
typename FragmentSink>
747 size_t seq_len,
UInt32 peptide_idx, uint32_t slot_bits,
const ModSlot* slots,
748 size_t n_slots, std::vector<double>& mod_masses)
const;
753 template <
typename F>
757 std::array<double, 128> fixed_mod_deltas_{};
759 std::array<const ResidueModification*, 128> fixed_mod_ptrs_{};
760 double fixed_nterm_delta_{0.0};
761 double fixed_cterm_delta_{0.0};
766 std::array<std::vector<VarModEntry>, 128> variable_mod_table_{};
772 bool mod_tables_initialized_{
false};
776 std::array<double, 128> fixed_residue_masses_{};
782 bool is_peptide_mass_mode_{
false};
794 bool zero_sigma_subsets_{
false};
808 double min_mod_shift_{0.0};
809 double max_mod_shift_{0.0};
813 static constexpr uint32_t ENTRY_SITES_SHIFT_ = 28;
814 static constexpr uint32_t ENTRY_MOTHER_MASK_ = (1u << ENTRY_SITES_SHIFT_) - 1;
815 static constexpr uint32_t ENTRY_MAX_SITES_ = (1u << (32 - ENTRY_SITES_SHIFT_)) - 1;
816 bool entry_sites_{
false};
827 double b_offset{0.0};
828 double y_offset{0.0};
829 double a_offset{0.0};
830 double c_offset{0.0};
831 double x_offset{0.0};
832 double z_offset{0.0};
833 double zp1_offset{0.0};
854 template <
typename FragmentSink>
856 FragmentSink& fragments,
857 FragmentSink& electron_fragments,
858 const char* sequence,
861 double n_term_mod_mass,
862 double c_term_mod_mass,
863 const double* residue_masses,
864 const double* residue_mod_masses)
const;
886 template <
typename FragmentSink>
888 FragmentSink& fragments,
889 const char* sequence,
892 double n_term_mod_mass,
893 double c_term_mod_mass,
894 const double* residue_masses,
895 const double* residue_mod_masses,
917 size_t min_ion_index_{0};
920 double precursor_mass_tolerance_lower_{20.0};
921 double precursor_mass_tolerance_upper_{20.0};
922 bool precursor_mass_tolerance_unit_ppm_{
true};
924 bool fragment_mz_tolerance_unit_ppm_{
true};
953 const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
955 bool with_electron_ions);
989 const std::vector<CandidateBlock_>& blocks,
990 const uint16_t precursor_charge,
991 const bool with_electron_ions);
995 static constexpr size_t SKIP_STRIDE_ = 64;
996 size_t skip_per_bucket_{0};
1012 float precursor_mass,
1015 bool with_electron_ions);
1020 std::vector<float>& bucket_min_mz,
1036 bool electron_ions_{
false};
1045 bool clip_nterm_methionine_ {
false};
1065 bool deduplicate_{
false};
1074 return isOpenSearchMode(precursor_mass_tolerance_lower_,
1075 precursor_mass_tolerance_upper_,
1076 precursor_mass_tolerance_unit_ppm_);
Definition AASequence.h:96
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Specificity
when querying for valid digestion products, this determines if the specificity of the two peptide end...
Definition EnzymaticDigestion.h:41
Generates from a set of Fasta files a 2D-datastructure which stores all theoretical masses of all b a...
Definition FragmentIndex.h:36
size_t bucketsize_
number of fragments per outer node
Definition FragmentIndex.h:918
uint16_t min_matched_peaks_
PSM with less hits are discarded.
Definition FragmentIndex.h:1058
UInt32 peptide_idx
index into getPeptides() of the kept entry of the same peptidoform
Definition FragmentIndex.h:191
bool add_x_ions_
Definition FragmentIndex.h:1033
void generateFragmentsForSeries_(FragmentSink &fragments, const char *sequence, size_t seq_len, UInt32 peptide_idx, double n_term_mod_mass, double c_term_mod_mass, const double *residue_masses, const double *residue_mod_masses, bool add_b, bool add_a, bool add_c, bool add_y, bool add_x, bool add_z, bool add_zp1) const
bool isProteinNTerminal_(const std::string &protein, Size start) const
Whether a position is the original or, with Met clipping enabled, mature protein N-terminus.
bool matchesMotif_(const char *sequence, size_t length) const
Whether the unmodified peptide sequence of length residues passes peptide:motif.
void searchDifferentPrecursorRanges(const MSSpectrum &spectrum, float precursor_mass, SpectrumMatchesTopN &sms, uint16_t charge, bool with_electron_ions)
If closed search collects the candidate ranges of all isotope errors and loops over all peaks once fo...
Size deduplicateByString_(const std::vector< FASTAFile::FASTAEntry > &fasta_entries)
Keeps the first entry of fi_peptides_ of every reconstructModifiedSequence(...).toString(),...
FragmentIndex & operator=(const FragmentIndex &)=default
AASequence reconstructRealizedSubSequence(const Peptide &mother, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, size_t realized_length, uint32_t subset_bitmask=0) const
uint16_t start
0-based start of the removed entry in that protein
Definition FragmentIndex.h:193
std::vector< double > sigma_delta_set_
Definition FragmentIndex.h:787
std::vector< double > computeSigmaDeltaSet_(bool include_prot_nterm_mods, bool include_prot_cterm_mods) const
std::vector< UInt32 > electron_bucket_skip_
Definition FragmentIndex.h:998
std::vector< RemovedOccurrence > removed_occurrences_
occurrences removed by peptide:deduplicate (getRemovedOccurrences())
Definition FragmentIndex.h:905
const ResidueModification * mod_ptr
pointer to the modification (for AASequence reconstruction)
Definition FragmentIndex.h:669
static StringList shadowedVariableResidueModifications(const StringList &fixed_modifications, const StringList &variable_modifications)
Variable residue modifications that a fixed modification of the same residue excludes.
bool add_a_ions_
Definition FragmentIndex.h:1031
static void sortPeptides_(std::vector< Peptide > &peptides, size_t min_task_size=8192)
Sorts peptides by (precursor_mz_, protein_idx), exactly as std::sort does with that comparator.
void querySpectrum(const MSSpectrum &spectrum, SpectrumMatchesTopN &sms)
: queries one complete experimental spectra against the Database. Loops over all precursor charges St...
std::vector< float > electron_bucket_min_mz_
smallest fragment m/z of each bucket of electron_fragments_
Definition FragmentIndex.h:910
bool add_b_ions_
Definition FragmentIndex.h:1029
std::vector< ModShift_ > mod_shifts_
Definition FragmentIndex.h:806
std::vector< std::vector< double > > modShiftLevels_(bool include_prot_nterm_mods, bool include_prot_cterm_mods) const
static bool isOpenSearchMode(double lower_magnitude, double upper_magnitude, bool unit_ppm) noexcept
Definition FragmentIndex.h:318
static IonOffsets ion_offsets_
Definition FragmentIndex.h:835
size_t buildModSlots_(const char *sequence, size_t seq_len, ModSlot *out_slots, bool is_protein_nterm=false, bool is_protein_cterm=false) const
ResidueModification::TermSpecificity term_spec
where this mod can be applied
Definition FragmentIndex.h:670
void renderPeptidoform_(const Peptide &peptide, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, const PeptidoformRendering_ &rendering, std::vector< uint32_t > &tokens) const
FragmentIndex(const FragmentIndex &)=default
Copy and move operations.
static std::once_flag mass_table_once_flag_
Definition FragmentIndex.h:821
void getProteinOccurrences(Size peptide_idx, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, std::vector< std::pair< UInt32, UInt32 > > &occurrences) const
Appends the protein occurrences {protein index, start} of the residues of getPeptides()[peptide_idx].
void sortAndBucketFragments_(std::vector< Fragment > &fragments, std::vector< float > &bucket_min_mz, int num_threads)
std::pair< float, float > computeMassWindow_(float precursor_mass) const
StringList modifications_fixed_
Modification that are one all peptides.
Definition FragmentIndex.h:1052
static void checkFixedModifications(const StringList &fixed_modifications)
Rejects fixed terminal modifications that the index cannot restrict to the peptides they apply to.
float fragment_mz_tolerance_
Definition FragmentIndex.h:923
bool add_y_ions_
Definition FragmentIndex.h:1030
static void restrictSearchParameters(Param ¶m)
Sets the restrictions of the search parameters that FragmentIndex and ProSEAlgorithm share,...
std::vector< Peptide > fi_peptides_
vector of all (digested) peptides
Definition FragmentIndex.h:904
std::vector< VarModEntry > variable_cterm_mods_
Pure C-terminal variable mods (not residue-specific)
Definition FragmentIndex.h:770
double sigma
the shift
Definition FragmentIndex.h:800
size_t missed_cleavages_
number of missed cleavages
Definition FragmentIndex.h:1046
void generatePeptidoformFragments_(FragmentSink &fragments, FragmentSink &electron_fragments, const char *sequence, size_t seq_len, UInt32 peptide_idx, uint32_t slot_bits, const ModSlot *slots, size_t n_slots, std::vector< double > &mod_masses) const
Generates the fragments of a peptidoform, as the index holds them.
void forEachPrefixMass_(const char *sequence, size_t len, F &&f) const
std::vector< double > sigma_delta_set_with_prot_nterm_
Peptide-mass mode: as sigma_delta_set_, with the PROTEIN_N_TERM variable modifications.
Definition FragmentIndex.h:789
int realizePrefixLength(const Peptide &mother, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, double target_mh_plus, double tolerance_lower_magnitude, double tolerance_upper_magnitude, bool tolerance_ppm) const
Find the realized sub-peptide length of a mother that best matches the observed precursor mass.
float fragment_min_mz_
smallest fragment mz
Definition FragmentIndex.h:915
uint16_t min_precursor_charge_
minimal possible precursor charge (usually always 1)
Definition FragmentIndex.h:1061
uint32_t max_processed_hits_
The amount of PSM that will be used. the rest is filtered out.
Definition FragmentIndex.h:1064
float peptide_max_mass_
Definition FragmentIndex.h:1048
bool add_zp1_ions_
Definition FragmentIndex.h:1035
void queryPeaks(SpectrumMatchesTopN &candidates, const MSSpectrum &spectrum, const std::vector< CandidateBlock_ > &blocks, const uint16_t precursor_charge, const bool with_electron_ions)
Counts fragment matches for the (isotope error) blocks of ONE precursor charge and appends the surviv...
std::vector< Fragment > electron_fragments_
Definition FragmentIndex.h:909
uint16_t max_fragment_charge_
The maximal possible charge of the fragments.
Definition FragmentIndex.h:1063
std::pair< size_t, size_t > getPeptidesInMassWindow(float precursor_mass, const std::pair< float, float > &window) const
int16_t isotope_error
the applied isotope error
Definition FragmentIndex.h:963
void generateMothers_(const std::vector< FASTAFile::FASTAEntry > &fasta_entries)
Peptide-mass mode peptide enumeration: emit the mother peptides.
std::vector< Hit > query(const Peak1D &peak, const std::pair< size_t, size_t > &peptide_idx_range, uint16_t peak_charge)
Queries one peak (against the ion series of the ions:add_*_ions parameters, not the c and z+1 ions of...
void keepPeptidesInPrecursorWindows_(const MSExperiment &spectra)
bool isOpenSearchMode_() const noexcept
Instance delegate — same rule, reads the member bounds.
Definition FragmentIndex.h:1072
FragmentIndex & operator=(FragmentIndex &&)=default
std::vector< Fragment > fi_fragments_
Definition FragmentIndex.h:906
void querySpectrum(const MSSpectrum &spectrum, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, SpectrumMatchesTopN &sms)
Query a spectrum against the fragment index with FASTA context.
int16_t max_isotope_error_
Maximal possible isotope error (both only used for closed search)
Definition FragmentIndex.h:1060
std::vector< double > sigma_delta_set_with_prot_cterm_
Peptide-mass mode: as sigma_delta_set_, with the PROTEIN_C_TERM variable modifications.
Definition FragmentIndex.h:791
float fragment_max_mz_
largest fragment mz
Definition FragmentIndex.h:916
std::string digestion_enzyme_
Definition FragmentIndex.h:1039
void build(const std::vector< FASTAFile::FASTAEntry > &fasta_entries, const std::function< const MSExperiment *(Size)> &searched_spectra)
Builds the index like build(fasta_entries), but only with the peptides that the spectra to be searche...
bool isPeptideMassMode() const noexcept
Definition FragmentIndex.h:432
void buildSkipTables_()
Fills the skip tables; called by build() once the buckets are sorted.
bool samePeptidoform_(const Peptide &a, const Peptide &b, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, const PeptidoformRendering_ &rendering, std::vector< uint32_t > &tokens_a, std::vector< uint32_t > &tokens_b) const
Whether reconstructModifiedSequence() renders a and b to the same AASequence::toString().
void generateFragmentsLightweight_(FragmentSink &fragments, FragmentSink &electron_fragments, const char *sequence, size_t seq_len, UInt32 peptide_idx, double n_term_mod_mass, double c_term_mod_mass, const double *residue_masses, const double *residue_mod_masses) const
RegularExpression peptide_motif_
peptide:motif (empty(): none, every peptide is searched)
Definition FragmentIndex.h:1066
bool protein_terminal
only reached with a protein-terminal modification: the prefix must start or end a protein
Definition FragmentIndex.h:801
bool isBuild() const
Indicates whether the fragment index has been built.
static StringList shadowedVariableTerminalModifications(const StringList &fixed_modifications, const StringList &variable_modifications)
Variable terminal modifications that a fixed terminal modification excludes.
size_t peptide_max_length_
Definition FragmentIndex.h:1050
~FragmentIndex() override=default
Default destructor.
void querySpectrumPeptideMasses_(const MSSpectrum &spectrum, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, SpectrumMatchesTopN &sms, bool with_electron_ions)
Peptide-mass mode spectrum query: the candidates and matched-fragment counts of the fragment index.
void querySpectrum(const MSSpectrum &spectrum, const std::vector< FASTAFile::FASTAEntry > &fasta_entries, SpectrumMatchesTopN &sms, bool with_electron_ions)
Query a spectrum, optionally also against the c and z+1 ions of ions:electron_ions.
UInt32 protein_idx
protein of the removed entry (index into the FASTA entries passed to build())
Definition FragmentIndex.h:192
PeptidoformRendering_ peptidoformRendering_() const
Rendering classes of the configured modifications. Requires the modification tables (generatePeptides...
bool nonemptyZeroSigmaSubsetExists_() const
Whether a nonempty subset of at most max_variable_mods_per_peptide_ variable modifications has Σ = 0 ...
bool hasProteinOccurrences(const std::vector< FASTAFile::FASTAEntry > &fasta_entries) const
Whether getProteinOccurrences() lists every span of the digest that has the residues of an index pept...
void generatePeptides(const std::vector< FASTAFile::FASTAEntry > &fasta_entries)
Generates all peptides from given fasta entries. If Bottom-up is set to false skips digestion....
std::vector< float > bucket_min_mz_
vector of the smalles fragment mz of each bucket
Definition FragmentIndex.h:919
double delta_mass
mass delta from this modification
Definition FragmentIndex.h:668
float peptide_min_mass_
Definition FragmentIndex.h:1047
int16_t min_isotope_error_
Minimal possible isotope error.
Definition FragmentIndex.h:1059
uint16_t max_precursor_charge_
maximal possible precursor charge
Definition FragmentIndex.h:1062
std::vector< UInt32 > bucket_skip_
Definition FragmentIndex.h:997
std::vector< uint32_t > protein_lengths_
Protein lengths indexed by protein_idx, populated at build() time.
Definition FragmentIndex.h:913
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
FragmentIndex(FragmentIndex &&)=default
void clear()
Delete fragment index. Sets is_build=false.
StringList modifications_variable_
Variable Modification -> all possible comibnations are created.
Definition FragmentIndex.h:1053
size_t max_variable_mods_per_peptide_
Definition FragmentIndex.h:1054
void build(const std::vector< FASTAFile::FASTAEntry > &fasta_entries)
Given a set of Fasta files, builds the Fragment Index datastructure (FID). First all fragments are so...
const std::vector< RemovedOccurrence > & getRemovedOccurrences() const noexcept
The protein occurrences that peptide:deduplicate removed, ordered by RemovedOccurrence::peptide_idx a...
Definition FragmentIndex.h:205
void initModificationTables_()
static void checkSearchParameters(const Param ¶m)
Rejects search parameters whose combination searches nothing or cannot be searched.
void trimHits(SpectrumMatchesTopN &init_hits) const
places the k-largest elements in the front of the input array. Inside of the k-largest elements and o...
Size getNumFragments() const noexcept
Definition FragmentIndex.h:241
static void precursorCharges(const Precursor &precursor, int min_charge, int max_charge, std::vector< uint16_t > &charges)
The precursor charges a spectrum is searched with.
const std::vector< Peptide > & getPeptides() const
Returns a reference to the internal peptide container.
AASequence reconstructModifiedSequence(const Peptide &peptide, const std::vector< FASTAFile::FASTAEntry > &fasta_entries) const
Reconstruct a fully modified AASequence from a Peptide's bitmask.
std::vector< VarModEntry > variable_nterm_mods_
Pure N-terminal variable mods (not residue-specific)
Definition FragmentIndex.h:768
size_t peptide_min_length_
Definition FragmentIndex.h:1049
size_t cell_offset
sum of the range sizes of the preceding blocks of the call
Definition FragmentIndex.h:962
static void initResidueMassTable_()
size_t first
half-open range [first, second) of peptides the precursor could belong to
Definition FragmentIndex.h:960
bool add_c_ions_
Definition FragmentIndex.h:1032
FragmentIndex()
Default constructor.
size_t min_mods
the fewest variable modifications that sum to it (within the matching tolerance)
Definition FragmentIndex.h:802
bool add_z_ions_
Definition FragmentIndex.h:1034
static std::array< double, 128 > residue_mass_table_
Definition FragmentIndex.h:820
size_t second
Definition FragmentIndex.h:961
One (precursor charge, isotope error) block of a queryPeaks() call.
Definition FragmentIndex.h:959
Precomputed ion-type mass offsets (from Residue::getInternalTo*Ion formulas)
Definition FragmentIndex.h:826
Definition FragmentIndex.h:799
A protein occurrence of an indexed peptidoform that peptide:deduplicate removed from the index.
Definition FragmentIndex.h:190
Match between a query peak and an entry in the DB.
Definition FragmentIndex.h:88
Entry in the per-AA variable modification lookup table.
Definition FragmentIndex.h:667
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Management and storage of parameters / INI files.
Definition Param.h:46
A 1-dimensional raw data point or peak.
Definition Peak1D.h:30
Precursor meta information.
Definition Precursor.h:37
Compiled Perl-compatible regular expression, including named capture groups.
Definition RegularExpression.h:30
Representation of a modification on an amino acid residue.
Definition ResidueModification.h:55
TermSpecificity
Position where the modification is allowed to occur.
Definition ResidueModification.h:74
OpenMS looks in the< code > OPENMS_THERMO_MANAGED_DIR</code > environment variable first
Definition common-cmake-parameters.doxygen:199
uint32_t UInt32
Unsigned integer type (32bit)
Definition Types.h:33
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
std::vector< std::string > StringList
Vector of String.
Definition TypeAliases.h:39
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
One entry in the fragment index.
Definition FragmentIndex.h:565
Fragment(UInt32 peptide_idx, float fragment_mz)
Definition FragmentIndex.h:569
Fragment()
Definition FragmentIndex.h:568
UInt32 peptide_idx_
Definition FragmentIndex.h:573
float fragment_mz_
Definition FragmentIndex.h:574
Definition FragmentIndex.h:439
UInt32 peptide_idx
Definition FragmentIndex.h:444
Hit(UInt32 peptide_idx, float fragment_mz)
Definition FragmentIndex.h:440
float fragment_mz
Definition FragmentIndex.h:445
A candidate modification slot for a specific peptide.
Definition FragmentIndex.h:679
const ResidueModification * mod_ptr
for AASequence reconstruction
Definition FragmentIndex.h:682
uint16_t position
residue index, or NTERM_SLOT/CTERM_SLOT
Definition FragmentIndex.h:680
double delta_mass
mass delta
Definition FragmentIndex.h:681
Definition FragmentIndex.h:69
bool operator==(const Span &) const =default
uint16_t second
Definition FragmentIndex.h:75
Span(std::pair< uint16_t, uint16_t > span)
Definition FragmentIndex.h:71
uint16_t first
Definition FragmentIndex.h:74
Compact descriptor of a peptide instance held by the FragmentIndex.
Definition FragmentIndex.h:53
Peptide()
Leaves the members uninitialised: resizing a vector of peptides then writes nothing (see generatePept...
Definition FragmentIndex.h:56
Span sequence_
{start, length} within the source protein sequence (start is 0-based; length in residues)
Definition FragmentIndex.h:80
uint32_t mod_bitmask_
Bitmask of active variable mod slots (0 = unmodified/fixed-only; up to 32 slots)
Definition FragmentIndex.h:79
UInt32 protein_idx
0-based index into FASTA entries provided to build(); identifies the source protein
Definition FragmentIndex.h:78
float precursor_mz_
Mono-isotopic m/z at charge 1 (M+H)+ of this peptide; used for sorting/filtering.
Definition FragmentIndex.h:81
Peptide(UInt32 protein_idx, uint32_t mod_bitmask, std::pair< uint16_t, uint16_t > sequence, float precursor_mz)
Definition FragmentIndex.h:58
container for SpectrumMatch. Also keeps count of total number of candidates and total number of match...
Definition FragmentIndex.h:103
SpectrumMatchesTopN & operator+=(const SpectrumMatchesTopN &other)
Appends a SpectrumMatchesTopN to another one.
Definition FragmentIndex.h:113
SpectrumMatchesTopN()=default
void clear()
Definition FragmentIndex.h:119
std::vector< SpectrumMatch > hits_
The preliminary candidates.
Definition FragmentIndex.h:104