Defines profile of 20 frequencies for one residue. More...
#include <profile_handle.hh>
Public Member Functions | |
ProfileColumn () | |
ProfileColumn (const ProfileColumn &rhs) | |
ProfileColumn & | operator= (const ProfileColumn &rhs) |
Real | GetFreq (char ch) const |
void | SetFreq (char ch, Real freq) |
bool | operator== (const ProfileColumn &rhs) const |
bool | operator!= (const ProfileColumn &rhs) const |
Real * | freqs_begin () |
Real * | freqs_end () |
const Real * | freqs_begin () const |
const Real * | freqs_end () const |
Real | GetEntropy () const |
Static Public Member Functions | |
static ProfileColumn | BLOSUMNullModel () |
static int | GetIndex (char ch) |
Friends | |
std::ofstream & | operator<< (std::ofstream &os, ProfileColumn &col) |
std::ifstream & | operator>> (std::ifstream &is, ProfileColumn &col) |
Defines profile of 20 frequencies for one residue.
Frequencies are identified by the one-letter-code for that amino acid. (possible codes: ACDEFGHIKLMNPQRSTVWY)
Definition at line 51 of file profile_handle.hh.
ProfileColumn | ( | ) | [inline] |
Construct a profile with all frequencies set to 0.
Definition at line 55 of file profile_handle.hh.
ProfileColumn | ( | const ProfileColumn & | rhs | ) | [inline] |
Definition at line 59 of file profile_handle.hh.
static ProfileColumn BLOSUMNullModel | ( | ) | [static] |
const Real* freqs_begin | ( | ) | const [inline] |
Definition at line 83 of file profile_handle.hh.
Real* freqs_begin | ( | ) | [inline] |
Definition at line 81 of file profile_handle.hh.
const Real* freqs_end | ( | ) | const [inline] |
Definition at line 84 of file profile_handle.hh.
Real* freqs_end | ( | ) | [inline] |
Definition at line 82 of file profile_handle.hh.
Real GetEntropy | ( | ) | const |
Get entropy for this column.
Real GetFreq | ( | char | ch | ) | const |
static int GetIndex | ( | char | ch | ) | [static] |
Translate one-letter-code to index (0-indexing).
bool operator!= | ( | const ProfileColumn & | rhs | ) | const [inline] |
Definition at line 79 of file profile_handle.hh.
ProfileColumn& operator= | ( | const ProfileColumn & | rhs | ) | [inline] |
Definition at line 62 of file profile_handle.hh.
bool operator== | ( | const ProfileColumn & | rhs | ) | const [inline] |
Definition at line 76 of file profile_handle.hh.
void SetFreq | ( | char | ch, | |
Real | freq | |||
) |
std::ofstream& operator<< | ( | std::ofstream & | os, | |
ProfileColumn & | col | |||
) | [friend] |
Definition at line 92 of file profile_handle.hh.
std::ifstream& operator>> | ( | std::ifstream & | is, | |
ProfileColumn & | col | |||
) | [friend] |
Definition at line 102 of file profile_handle.hh.