M8Match Class Reference

#include <Match.h>

Inheritance diagram for M8Match:

Match M8MatchEX

List of all members.

Public Member Functions

 M8Match ()
 M8Match (const M8Match &m)
 M8Match (float identity, int alnlen, int mismatches, int gaps, int qbegin, int qend, int tbegin, int tend, double expect, double score)
M8Matchoperator= (const M8Match &m)
float identity () const
int alnlen () const
double expect () const
double score () const
ostream & output (ostream &ous, const char delimiter[]="\t") const
 M8Match Class ////////////////////////////.
string asDelimitedString (const char delimiter[]=",") const
bool contain (const M8Match &m, bool sameDirection=true, float factor=0.8) const
void combine (const M8Match &m)

Protected Attributes

float iden
int len
int mis
int gap
double e
double _score

Friends

ostream & operator<< (ostream &ous, M8Match &m)


Detailed Description

specialized to tblastn m8 output format This format has identity, but does not have the counts for identical residues in the match. The <XML> format allows more information to be extracted, including the actual sequence. This represent one row of -m 8 output without the query and target because in the blast output, one queryxtarget pair can have multiple matches.

Constructor & Destructor Documentation

M8Match::M8Match (  )  [inline]

M8Match::M8Match ( const M8Match m  )  [inline]

M8Match::M8Match ( float  identity,
int  alnlen,
int  mismatches,
int  gaps,
int  qbegin,
int  qend,
int  tbegin,
int  tend,
double  expect,
double  score 
) [inline]


Member Function Documentation

M8Match & M8Match::operator= ( const M8Match m  ) 

Reimplemented in M8MatchEX.

References _score, e, gap, iden, len, mis, and Match::operator=().

Referenced by M8MatchEX::operator=().

float M8Match::identity (  )  const [inline]

References iden.

Referenced by M8MatchChain::add(), and Boxchain::avgIdentity().

int M8Match::alnlen (  )  const [inline]

References len.

Referenced by M8MatchChain::add(), and Boxchain::avgIdentity().

double M8Match::expect (  )  const [inline]

References e.

double M8Match::score (  )  const [inline]

ostream & M8Match::output ( ostream &  ous,
const char  delimiter[] = "\t" 
) const

M8Match Class ////////////////////////////.

Output one row. The format is the same as the m8 format, except the matching sequence id is missing, in tab-delimited format. For dumping into table file.

Reimplemented from Match.

References _score, e, gap, iden, len, mis, and Match::output().

Referenced by Boxchain::detailOutput(), and Tblastn::outputModel().

string M8Match::asDelimitedString ( const char  delimiter[] = ","  )  const

this is mainly for inserting into database tables

Reimplemented from Match.

References _score, Match::asDelimitedString(), e, gap, iden, len, and mis.

bool M8Match::contain ( const M8Match m,
bool  sameDirection = true,
float  factor = 0.8 
) const

specialization of the parent class method, add ideneity and score checking if score of smaller range < factor*larger_range_score

References _score, Match::contain(), and iden.

void M8Match::combine ( const M8Match m  ) 


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ous,
M8Match m 
) [friend]

output for human to read: using tabs iden, len, mis, gap, e, score


Member Data Documentation

float M8Match::iden [protected]

int M8Match::len [protected]

int M8Match::mis [protected]

int M8Match::gap [protected]

double M8Match::e [protected]

double M8Match::_score [protected]


The documentation for this class was generated from the following files:

Generated on Wed Aug 10 11:57:12 2011 for Softwares from Orpara by  doxygen 1.5.6