70 std::vector<Size>
getWantedRecords(
const std::string & result_filename,
double p_value_threshold);
79 void compressTrieDB(
const std::string & database_filename,
const std::string & index_filename, std::vector<Size> & wanted_records,
const std::string & snd_database_filename,
const std::string & snd_index_filename,
bool append =
false);
85 void generateTrieDB(
const std::string & source_database_filename,
const std::string & database_filename,
const std::string & index_filename,
bool append =
false,
const std::string& species =
"");
90 void getACAndACType(std::string line, std::string &accession, std::string &accession_type);
103 void getLabels(
const std::string & source_database_filename, std::string &ac_label, std::string &sequence_start_label, std::string &sequence_end_label, std::string &comment_label, std::string &species_label);
109 std::vector<Size>
getSequences(
const std::string & database_filename,
const std::map<Size, Size> & wanted_records, std::vector<std::string> & sequences);
123 if (in_type == FileTypes::UNKNOWN)
125 throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
"Could not determine type of the file. Aborting!", in_filename);
127 type = FileTypes::typeToName(in_type);
141 void readOutHeader(
const std::string & filename,
const std::string & header_line,
Int & spectrum_file_column,
Int & scan_column,
Int & peptide_column,
Int & protein_column,
Int & charge_column,
Int & MQ_score_column,
Int & p_value_column,
Int & record_number_column,
Int & DB_file_pos_column,
Int & spec_file_pos_column,
Size & number_of_columns);
Parse Error exception.
Definition Exception.h:593
Facilitates file handling by file type recognition.
Definition FileHandler.h:45
static FileTypes::Type getTypeByContent(const std::string &filename)
Determines the file type of a file by parsing the first few lines.
void loadExperiment(const std::string &filename, PeakMap &exp, const std::vector< FileTypes::Type > allowed_types=std::vector< FileTypes::Type >(), ProgressLogger::LogType log=ProgressLogger::NONE, const bool rewrite_source_file=false, const bool compute_hash=false)
Loads a file into an MSExperiment.
Definition InspectOutfile.h:33
void readOutHeader(const std::string &filename, const std::string &header_line, Int &spectrum_file_column, Int &scan_column, Int &peptide_column, Int &protein_column, Int &charge_column, Int &MQ_score_column, Int &p_value_column, Int &record_number_column, Int &DB_file_pos_column, Int &spec_file_pos_column, Size &number_of_columns)
read the header of an inspect output file and retrieve various information
static const Size record_length_
length of the whole record
Definition InspectOutfile.h:151
static const Size trie_db_pos_length_
length of 2)
Definition InspectOutfile.h:149
static const Size db_pos_length_
length of 1)
Definition InspectOutfile.h:148
static const std::string score_type_
type of score
Definition InspectOutfile.h:153
bool getSearchEngineAndVersion(const std::string &cmd_output, ProteinIdentification &protein_identification)
get the search engine and its version from the output of the InsPecT executable without parameters
InspectOutfile & operator=(const InspectOutfile &inspect_outfile)
assignment operator
InspectOutfile(const InspectOutfile &inspect_outfile)
copy constructor
bool operator==(const InspectOutfile &inspect_outfile) const
equality operator
std::vector< Size > getSequences(const std::string &database_filename, const std::map< Size, Size > &wanted_records, std::vector< std::string > &sequences)
virtual ~InspectOutfile()
destructor
void generateTrieDB(const std::string &source_database_filename, const std::string &database_filename, const std::string &index_filename, bool append=false, const std::string &species="")
void getLabels(const std::string &source_database_filename, std::string &ac_label, std::string &sequence_start_label, std::string &sequence_end_label, std::string &comment_label, std::string &species_label)
void getExperiment(PeakMap &exp, std::string &type, const std::string &in_filename)
Definition InspectOutfile.h:116
std::vector< Size > load(const std::string &result_filename, PeptideIdentificationList &peptide_identifications, ProteinIdentification &protein_identification, const double p_value_threshold, const std::string &database_filename="")
void getACAndACType(std::string line, std::string &accession, std::string &accession_type)
static const char trie_delimiter_
the sequences in the trie database are delimited by this character
Definition InspectOutfile.h:152
std::vector< Size > getWantedRecords(const std::string &result_filename, double p_value_threshold)
void getPrecursorRTandMZ(const std::vector< std::pair< std::string, std::vector< std::pair< Size, Size > > > > &files_and_peptide_identification_with_scan_number, PeptideIdentificationList &ids)
static const Size protein_name_length_
length of 3)
Definition InspectOutfile.h:150
InspectOutfile()
default constructor
void compressTrieDB(const std::string &database_filename, const std::string &index_filename, std::vector< Size > &wanted_records, const std::string &snd_database_filename, const std::string &snd_index_filename, bool append=false)
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
void reset()
Clear all internal data (spectra, chromatograms, ranges, metadata)
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Representation of a protein identification run.
Definition ProteinIdentification.h:55
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Type
Actual file types enum.
Definition FileTypes.h:31