#include <RNAModel.h>

Public Member Functions | |
| JGIModel (const string &exstarts, const string &exends, char strand, int cdsb, int cdse, const string &gi, int ii, const string &si, const string &genomic) throw (InvalidModel) | |
| bool | valid () |
| string | toJGIString (char sep='\t') const |
| string | toSQLString (char sep=',') const |
| string | toString (char sep='\t') const |
| void | growEnd (int icr) |
| int | getId () const |
| const string & | getName () const |
| ostream & | show (ostream &ous) const |
Private Attributes | |
| int | id |
| string | name |
| int | cdsphase |
| JGIModel::JGIModel | ( | const string & | exstarts, | |
| const string & | exends, | |||
| char | strand, | |||
| int | cdsb, | |||
| int | cdse, | |||
| const string & | gi, | |||
| int | ii, | |||
| const string & | si, | |||
| const string & | genomic | |||
| ) | throw (InvalidModel) |
| bool JGIModel::valid | ( | ) |
return -1 for bad, 1 for good, 0 for not sure
References Range::begin(), mRNAModel::CDSDirection(), mRNAModel::CDSLength(), cdsphase, mRNAModel::CDSRange(), mRNAModel::CDSSeq(), Range::contain(), countInternalStops(), Range::direction(), Range::end(), Noschain::exonIndex(), mRNAModel::gcdsb, mRNAModel::gcdse, growEnd(), Range::length(), mRNAModel::numberOfInternalStops(), Noschain::numberOfRanges(), mRNAModel::pep, RNAModel::resetRNA(), RNAModel::RNALength(), Noschain::setBegin(), Noschain::setEnd(), mRNAModel::shortestmodel, mRNAModel::shortestpep, and translate().
| string JGIModel::toJGIString | ( | char | sep = '\t' |
) | const |
| string JGIModel::toSQLString | ( | char | sep = ',' |
) | const |
| string JGIModel::toString | ( | char | sep = '\t' |
) | const |
References mRNAModel::gcdsb, mRNAModel::gcdse, RNAModel::genomicId(), getId(), getName(), and Noschain::toString().
| void JGIModel::growEnd | ( | int | icr | ) |
extend the end of the model, both CDS end and the model end will be pushed out. Not well thought, should distinguish between + and - strand.
Reimplemented from Noschain.
References mRNAModel::gcdse, and Noschain::growEnd().
Referenced by valid().
| int JGIModel::getId | ( | ) | const [inline] |
| const string& JGIModel::getName | ( | ) | const [inline] |
| ostream & JGIModel::show | ( | ostream & | ous | ) | const |
debug function
Reimplemented from Noschain.
References mRNAModel::gcdsb, mRNAModel::gcdse, RNAModel::gid, name, and Noschain::show().
int JGIModel::id [private] |
use the cached result
Referenced by getId().
string JGIModel::name [private] |
int JGIModel::cdsphase [private] |
Referenced by toSQLString(), and valid().
1.5.6