|
OpenMS
2.6.0
|
Go to the documentation of this file.
39 #include <boost/random/mersenne_twister.hpp>
40 #include <boost/random/uniform_int.hpp>
45 class DigestionEnzymeProtein;
82 const int max_attempts = 100
87 static double SequenceIdentity_(
const String& decoy,
const String& target);
90 template <
class RandomAccessIterator>
91 void shuffle_ (RandomAccessIterator first, RandomAccessIterator last)
93 for (
auto i = (last-first)-1; i > 0; --i)
95 boost::uniform_int<decltype(i)> d(0, i);
96 std::swap(first[i], first[d(rng_)]);
Base class for TOPP applications.
Definition: TOPPBase.h:144
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
An algorithm to decharge features (i.e. as found by FeatureFinder).
Definition: FeatureDeconvolution.h:59
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
void store(const String &filename, const ConsensusMap &consensus_map)
Stores a consensus map to file.
void setEnzyme(const String &name)
Sets the enzyme for the digestion (by name)
Methods to generate isobaric decoy sequences for DDA target-decoy searches.
Definition: DecoyGenerator.h:50
String identifier
Definition: FASTAFile.h:78
static ProteaseDB * getInstance()
this member function serves as a replacement of the constructor
Definition: DigestionEnzymeDB.h:69
Represents a peptide (amino acid sequence)
Definition: TargetedExperimentHelper.h:370
This class serves for reading in and writing FASTA files.
Definition: FASTAFile.h:64
String sequence
Definition: FASTAFile.h:80
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
void compute(const FeatureMapType &fm_in, FeatureMapType &fm_out, ConsensusMap &cons_map, ConsensusMap &cons_map_p)
Compute a zero-charge feature map from a set of charged features.
A more convenient string class.
Definition: String.h:59
This class generates a TargetedExperiment object with decoys based on a TargetedExperiment object.
Definition: MRMDecoy.h:88
String & trim()
removes whitespaces (space, tab, line feed, carriage return) at the beginning and the end of the stri...
void getAllNames(std::vector< String > &all_names) const
returns all the enzyme names (does NOT include synonym names)
Definition: DigestionEnzymeDB.h:122
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
#define OPENMS_LOG_WARN
Macro if a warning, a piece of information which should be read by the user, should be logged.
Definition: LogStream.h:460
FASTA entry type (identifier, description and sequence)
Definition: FASTAFile.h:76
boost::mt19937_64 rng_
Definition: DecoyGenerator.h:100
static String concatenate(const std::vector< T > &container, const String &glue="")
Concatenates all elements of the container and puts the glue string between elements.
Definition: ListUtils.h:193
void shuffle_(RandomAccessIterator first, RandomAccessIterator last)
Definition: DecoyGenerator.h:91
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool toBool() const
Conversion to bool.
String sequence
Definition: TargetedExperimentHelper.h:437
static OpenMS::TargetedExperiment::Peptide reversePeptide(const OpenMS::TargetedExperiment::Peptide &peptide, const bool keepN, const bool keepC, const String &const_pattern=String())
Reverse a peptide sequence (with its modifications)
void load(const String &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
void start()
Start the stop watch.
Size digest(const AASequence &protein, std::vector< AASequence > &output, Size min_length=1, Size max_length=0) const
: Performs the enzymatic digestion of a protein.
void stop()
Stop the stop watch (can be resumed later). If the stop watch was not running an exception is thrown.
void setParameters(const Param ¶m)
Sets the parameters.
void writeNext(const FASTAEntry &protein)
Stores the data given by protein. Call writeStart() once before calling writeNext().
const Param & getDefaults() const
Non-mutable access to the default parameters.
const Param & getParameters() const
Non-mutable access to the parameters.
A container for consensus elements.
Definition: ConsensusMap.h:80
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
void store(const String &filename, const FeatureMap &feature_map)
stores the map feature_map in file with name filename.
void append(const T &i, String &target)
Definition: StringUtils.h:119
Charge deconvolution.
Definition: DataProcessing.h:61
void writeStart(const String &filename)
Prepares a FASTA file given by 'filename' for streamed writing using writeNext().
This class is used to determine the current process' CPU (user and/or kernel) and wall time.
Definition: StopWatch.h:65
Definition: MetaData.h:67
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
const ColumnHeaders & getColumnHeaders() const
Non-mutable access to the file descriptions.
A container for features.
Definition: FeatureMap.h:97
Class for the enzymatic digestion of proteins.
Definition: ProteaseDigestion.h:60
bool readNext(FASTAEntry &protein)
Reads the next FASTA entry from file.
void readStart(const String &filename)
Prepares a FASTA file given by 'filename' for streamed reading using readNext().
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
String & reverse()
inverts the direction of the string
Management and storage of parameters / INI files.
Definition: Param.h:73
Representation of a peptide/protein sequence.
Definition: AASequence.h:111
static AASequence fromString(const String &s, bool permissive=true)
create AASequence object by parsing an OpenMS string
void insert(const String &prefix, const Param ¶m)
std::ifstream infile
Questionable file tested by TEST_FILE_EQUAL.
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:62