| OpenMS 2.5.0

Public Member Functions | Public Attributes | List of all members
FASTAFile::FASTAEntry Struct Reference

FASTA entry type (identifier, description and sequence) More...

`#include <OpenMS/FORMAT/FASTAFile.h>`

## Public Member Functions

| FASTAEntry ()
| FASTAEntry (String id, String desc, String seq)
| FASTAEntry (const FASTAEntry &rhs)
| FASTAEntry (FASTAEntry &&rhs) noexcept
FASTAEntry & | operator= (const FASTAEntry &rhs)
bool | operator== (const FASTAEntry &rhs) const
bool | headerMatches (const FASTAEntry &rhs) const
bool | sequenceMatches (const FASTAEntry &rhs) const

## Public Attributes

String | identifier
String | description
String | sequence

## Detailed Description

FASTA entry type (identifier, description and sequence)

The first String corresponds to the identifier that is written after the > in the FASTA file. The part after the first whitespace is stored in description and the text from the next line until the next > (exclusive) is stored in sequence.

## Constructor & Destructor Documentation

## ◆ FASTAEntry() [1/4]

FASTAEntry | ( |  | ) |

inline

## ◆ FASTAEntry() [2/4]

FASTAEntry | ( | String | id,
|  | String | desc,
|  | String | seq
| ) |  |

inline

## ◆ FASTAEntry() [3/4]

FASTAEntry | ( | const FASTAEntry & | rhs | ) |

inline

## ◆ FASTAEntry() [4/4]

FASTAEntry | ( | FASTAEntry && | rhs | ) |

inline noexcept

## Member Function Documentation

## ◆ headerMatches()

bool headerMatches | ( | const FASTAEntry & | rhs | ) | const

inline

References FASTAFile::FASTAEntry::description, and FASTAFile::FASTAEntry::identifier.

## ◆ operator=()

FASTAEntry& operator= | ( | const FASTAEntry & | rhs | ) |

inline

References FASTAFile::FASTAEntry::description, FASTAFile::FASTAEntry::identifier, and FASTAFile::FASTAEntry::sequence.

## ◆ operator==()

bool operator== | ( | const FASTAEntry & | rhs | ) | const

inline

References FASTAFile::FASTAEntry::description, FASTAFile::FASTAEntry::identifier, and FASTAFile::FASTAEntry::sequence.

## ◆ sequenceMatches()

bool sequenceMatches | ( | const FASTAEntry & | rhs | ) | const

inline

References FASTAFile::FASTAEntry::sequence.

## Member Data Documentation

## ◆ description

String description

Referenced by FASTAFile::FASTAEntry::headerMatches(), FASTAFile::FASTAEntry::operator=(), FASTAFile::FASTAEntry::operator==(), and PeptideIndexing::run().

## ◆ identifier

String identifier

Referenced by IDFilter::GetMatchingItems< OpenMS::PeptideEvidence, OpenMS::FASTAFile::FASTAEntry >::getKey(), FASTAFile::FASTAEntry::headerMatches(), FASTAFile::FASTAEntry::operator=(), and FASTAFile::FASTAEntry::operator==().

## ◆ sequence

String sequence

Referenced by FASTAFile::FASTAEntry::operator=(), FASTAFile::FASTAEntry::operator==(), PeptideIndexing::run(), and FASTAFile::FASTAEntry::sequenceMatches().