158 double precursor = -1;
160 double rt_calibrated = -1;
163 double library_intensity = -1;
179 int fragment_nr = -1;
180 double fragment_mzdelta = -1;
181 double drift_time = -1;
182 int fragment_modification = 0;
185 bool detecting_transition =
true;
186 bool identifying_transition =
false;
187 bool quantifying_transition =
true;
194 return CompoundName.empty() || CompoundName ==
"NA";
243 static const char* strarray_[];
259 void getTSVHeader_(
const std::string& line,
char& delimiter, std::map<std::string, int>& header_dict)
const;
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:59
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
This class stores a SRM/MRM transition.
Definition: ReactionMonitoringTransition.h:58
Representation of a modification.
Definition: ResidueModification.h:77
A more convenient string class.
Definition: String.h:61
Represents a compound (small molecule)
Definition: TargetedExperimentHelper.h:323
Represents a peptide (amino acid sequence)
Definition: TargetedExperimentHelper.h:360
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:65
This class supports reading and writing of OpenSWATH transition lists.
Definition: TransitionTSVFile.h:147
void addModification_(std::vector< TargetedExperiment::Peptide::Modification > &mods, int location, const ResidueModification &rmod)
Add a modification at the specified location.
static const std::vector< std::string > header_names_
Definition: TransitionTSVFile.h:245
void createProtein_(String protein_name, String uniprot_id, OpenMS::TargetedExperiment::Protein &protein)
Populate a new TargetedExperiment::Protein object from a row in the csv.
~TransitionTSVFile() override
Destructor.
bool override_group_label_check_
Definition: TransitionTSVFile.h:235
void createCompound_(std::vector< TSVTransition >::const_iterator tr_it, OpenMS::TargetedExperiment::Compound &compound)
Populate a new TargetedExperiment::Compound object (a metabolite) from a row in the csv.
bool spectrastAnnotationExtract(const String str_inp, TSVTransition &mytransition)
Extract annotation from a SpectraST comment string.
void cleanupTransitions_(TSVTransition &mytransition)
Cleanup of the read fields (removing quotes etc.)
bool force_invalid_mods_
Definition: TransitionTSVFile.h:236
void convertTargetedExperimentToTSV(const char *filename, OpenMS::TargetedExperiment &targeted_exp)
Write out a targeted experiment (TraML structure) into a tsv file.
TransitionTSVFile::TSVTransition convertTransition_(const ReactionMonitoringTransition *it, OpenMS::TargetedExperiment &targeted_exp)
Convert an OpenMS transition to a TSVTransition for output writing.
std::vector< OpenMS::ReactionMonitoringTransition > TransitionVectorType
Definition: TransitionTSVFile.h:241
void readUnstructuredTSVInput_(const char *filename, FileTypes::Type filetype, std::vector< TSVTransition > &transition_list)
Read tab or comma separated input with columns defined by their column headers only.
void writeTSVOutput_(const char *filename, OpenMS::TargetedExperiment &targeted_exp)
Write a TargetedExperiment to a file.
std::vector< OpenMS::TargetedExperiment::Peptide > PeptideVectorType
Definition: TransitionTSVFile.h:240
void spectrastRTExtract(const String str_inp, double &value, bool &spectrast_legacy)
Extract retention time from a SpectraST comment string.
void TSVToTargetedExperiment_(std::vector< TSVTransition > &transition_list, OpenMS::TargetedExperiment &exp)
Convert a list of TSVTransition to a TargetedExperiment.
void createPeptide_(std::vector< TSVTransition >::const_iterator tr_it, OpenMS::TargetedExperiment::Peptide &peptide)
Populate a new TargetedExperiment::Peptide object from a row in the csv.
void getTSVHeader_(const std::string &line, char &delimiter, std::map< std::string, int > &header_dict) const
Determine separator in a CSV file and check for correct headers.
void convertTSVToTargetedExperiment(const char *filename, FileTypes::Type filetype, OpenSwath::LightTargetedExperiment &targeted_exp)
Read in a tsv file and construct a targeted experiment (Light transition structure)
std::vector< OpenMS::TargetedExperiment::Protein > ProteinVectorType
Definition: TransitionTSVFile.h:239
String retentionTimeInterpretation_
Definition: TransitionTSVFile.h:234
void updateMembers_() override
Synchronize members with param class.
void TSVToTargetedExperiment_(std::vector< TSVTransition > &transition_list, OpenSwath::LightTargetedExperiment &exp)
Convert a list of TSVTransition to a LightTargetedExperiment.
void resolveMixedSequenceGroups_(std::vector< TSVTransition > &transition_list) const
Resolve cases where the same peptide label group has different sequences.
void convertTSVToTargetedExperiment(const char *filename, FileTypes::Type filetype, OpenMS::TargetedExperiment &targeted_exp)
Read in a tsv/mrm file and construct a targeted experiment (TraML structure)
void interpretRetentionTime_(std::vector< TargetedExperiment::RetentionTime > &retention_times, const OpenMS::DataValue rt_value)
Helper function to assign retention times to compounds and peptides.
void validateTargetedExperiment(const OpenMS::TargetedExperiment &targeted_exp)
Validate a TargetedExperiment (check that all ids are unique)
void createTransition_(std::vector< TSVTransition >::iterator &tr_it, OpenMS::ReactionMonitoringTransition &rm_trans)
Populate a new ReactionMonitoringTransition object from a row in the csv.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Type
Actual file types enum.
Definition: FileTypes.h:57
Definition: TargetedExperimentHelper.h:100
Internal structure to represent a transition.
Definition: TransitionTSVFile.h:157
String FullPeptideName
Full peptide sequence with UniMod modifications.
Definition: TransitionTSVFile.h:170
String label_type
Type of label that was used (e.g. "heavy" or "light")
Definition: TransitionTSVFile.h:177
String PeptideSequence
Peptide sequence (only AA sequence)
Definition: TransitionTSVFile.h:166
std::vector< String > peptidoforms
List of peptidoforms.
Definition: TransitionTSVFile.h:188
std::vector< String > uniprot_id
List of UniProt identifiers of associated proteins.
Definition: TransitionTSVFile.h:184
bool isPeptide() const
Definition: TransitionTSVFile.h:192
String precursor_charge
Precursor charge state.
Definition: TransitionTSVFile.h:175
String CompoundName
Compound name (for metabolomics)
Definition: TransitionTSVFile.h:171
String SMILES
SMILES identifier (for metabolomics)
Definition: TransitionTSVFile.h:172
String peptide_group_label
Peptide group identifier (grouping isotopically labelled peptides)
Definition: TransitionTSVFile.h:176
String SumFormula
Molecular formula (for metabolomics)
Definition: TransitionTSVFile.h:173
String Adducts
Adducts (for metabolomics)
Definition: TransitionTSVFile.h:174
String fragment_type
Fragment type (e.g. "y" for a y7 ion)
Definition: TransitionTSVFile.h:183
String GeneName
Gene identifier.
Definition: TransitionTSVFile.h:168
std::vector< String > ProteinName
List of protein identifiers.
Definition: TransitionTSVFile.h:167
String Annotation
Fragment ion annotation.
Definition: TransitionTSVFile.h:169
Definition: TransitionExperiment.h:207