#include <Match.h>
Public Member Functions | |
| M8MatchChain () | |
| M8MatchChain (M8Match *m) | |
| void | add (M8Match *m) |
| void | nofirst () |
| void | nolast () |
| bool | hasFirst () const |
| bool | hasLast () const |
| int | getTargetBegin () const |
| int | getTargetEnd () const |
| int | getQueryBegin () const |
| int | getQueryEnd () const |
| char | direction () const |
| int | queryOverlap () const |
| int | queryLength () const |
| ostream & | output (ostream &ous, char delimiter[]="\t") const |
| float | avgIdentity () const |
| double | sumScore () const |
| int | size () const |
Private Attributes | |
| vector< M8Match * > | chain |
| bool | _first |
| bool | _last |
| RangeChain | qchain |
| double | sumiden |
| int | sumaln |
| double | sumscore |
Friends | |
| class | Tblastn |
| ostream & | operator<< (ostream &ous, const M8MatchChain &c) |
| M8MatchChain::M8MatchChain | ( | ) | [inline] |
| M8MatchChain::M8MatchChain | ( | M8Match * | m | ) | [inline] |
construct an object out of Boxchain This method needs to be debuged. This one is not correct to 100%, using a differnet class
References RangeChain::add(), chain, qchain, and Match::queryRange().
| void M8MatchChain::add | ( | M8Match * | m | ) |
insure that all matches are in the same direction by the target (genomic)
References RangeChain::add(), M8Match::alnlen(), chain, direction(), Range::direction(), M8Match::identity(), qchain, Match::queryRange(), M8Match::score(), sumaln, sumiden, sumscore, and Match::targetRange().
Referenced by Tblastn::findFootprint().
| void M8MatchChain::nofirst | ( | ) | [inline] |
| void M8MatchChain::nolast | ( | ) | [inline] |
| bool M8MatchChain::hasFirst | ( | ) | const [inline] |
References _first.
| bool M8MatchChain::hasLast | ( | ) | const [inline] |
References _last.
| int M8MatchChain::getTargetBegin | ( | ) | const |
| int M8MatchChain::getTargetEnd | ( | ) | const |
| int M8MatchChain::getQueryBegin | ( | ) | const |
| int M8MatchChain::getQueryEnd | ( | ) | const |
| char M8MatchChain::direction | ( | ) | const |
References chain.
Referenced by add(), getQueryBegin(), getQueryEnd(), getTargetBegin(), getTargetEnd(), operator<<(), and Tblastn::outputModel().
| int M8MatchChain::queryOverlap | ( | ) | const [inline] |
References RangeChain::getOverlap(), and qchain.
Referenced by output(), and Tblastn::outputModel().
| int M8MatchChain::queryLength | ( | ) | const [inline] |
References RangeChain::length(), and qchain.
Referenced by Tblastn::findFootprint(), output(), and Tblastn::outputModel().
| ostream & M8MatchChain::output | ( | ostream & | ous, | |
| char | delimiter[] = "\t" | |||
| ) | const |
References avgIdentity(), chain, queryLength(), queryOverlap(), and sumscore.
| float M8MatchChain::avgIdentity | ( | ) | const [inline] |
weighted average sum(identity*alnlen)/sum(alnlen)
References sumaln, and sumiden.
Referenced by output(), and Tblastn::outputModel().
| double M8MatchChain::sumScore | ( | ) | const [inline] |
| int M8MatchChain::size | ( | ) | const [inline] |
friend class Tblastn [friend] |
| ostream& operator<< | ( | ostream & | ous, | |
| const M8MatchChain & | c | |||
| ) | [friend] |
vector<M8Match*> M8MatchChain::chain [private] |
Referenced by add(), direction(), getQueryBegin(), getQueryEnd(), getTargetBegin(), getTargetEnd(), M8MatchChain(), operator<<(), output(), Tblastn::outputModel(), and size().
bool M8MatchChain::_first [private] |
Referenced by hasFirst(), nofirst(), operator<<(), and Tblastn::outputModel().
bool M8MatchChain::_last [private] |
Referenced by hasLast(), nolast(), operator<<(), and Tblastn::outputModel().
RangeChain M8MatchChain::qchain [private] |
Referenced by add(), M8MatchChain(), queryLength(), and queryOverlap().
double M8MatchChain::sumiden [private] |
Referenced by add(), and avgIdentity().
int M8MatchChain::sumaln [private] |
Referenced by add(), and avgIdentity().
double M8MatchChain::sumscore [private] |
Referenced by add(), output(), and sumScore().
1.5.6