Victor
|
Implement I/O objects for handling BLAST PSSM (Position Specific Score Matrix). More...
Public Member Functions | |
PssmInput () | |
Default constructor. | |
PssmInput (istream &is) | |
istream constructor. | |
PssmInput (const PssmInput &orig) | |
Copy constructor. | |
virtual | ~PssmInput () |
Destructor. | |
virtual void | copy (const PssmInput &orig) |
Copy orig object to this object ("deep copy"). More... | |
virtual PssmInput * | newCopy () |
Construct a new "deep copy" of this object. More... | |
PssmInput & | operator= (const PssmInput &orig) |
Assignment operator. More... | |
double | score (int i, int j) |
Return the score of the aminoacid j in position i. | |
virtual unsigned int | size () const |
Return the size of the object referred as the dimension of the PSSM. | |
Static Public Member Functions | |
template<class T > | |
static void | pReadDoubleVector (istream &is, vector< vector< T > > &data, vector< string > &data1, vector< string > &data2) |
Helper function used to read a vector<vector> construct. More... | |
template<class T > | |
static void | pWriteDoubleVector (ostream &os, vector< vector< T > > data, vector< string > data1, vector< string > data2) |
Helper function used to write a vector<vector> construct. More... | |
Friends | |
ostream & | operator<< (ostream &os, const PssmInput &object) |
Output operator. More... | |
istream & | operator>> (istream &is, PssmInput &object) |
Input operator. More... | |
Implement I/O objects for handling BLAST PSSM (Position Specific Score Matrix).
|
virtual |
Copy orig object to this object ("deep copy").
orig |
|
virtual |
Construct a new "deep copy" of this object.
|
static |
Helper function used to read a vector<vector> construct.
is | |
data | |
data1 | |
data2 |
|
static |
Helper function used to write a vector<vector> construct.
os | |
data | |
data1 | |
data2 |
|
friend |
Output operator.
os | |
object |
|
friend |
Input operator.
is | |
object |