JGIModel Class Reference

#include <RNAModel.h>

Inheritance diagram for JGIModel:

mRNAModel RNAModel Noschain Range

List of all members.

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 (Badinput, InvalidJGIModel, InvalidModel, PointOutChain, exception)
 JGIModel (const string &exstarts, const string &exends, char strand, int cdsb, int cdse, const string &gi, const string &si, const string &genomic) throw (Badinput, InvalidJGIModel, InvalidModel, PointOutChain, exception)
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
ostream & print (ostream &ous) const
modeltype objtype () const

Private Attributes

string name


Detailed Description

special constructor for taking input from JGI database Special function to validate the model. should we put it into mRNA model? Frame was introduced in mRNA model

Constructor & Destructor Documentation

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 (Badinput, InvalidJGIModel, InvalidModel, PointOutChain, exception)

This is the constructor for input operations from tack table.

Parameters:
ii. integer id. Identifier from external.
si,string id which is the name column of JGI
cdsb. Genomic cdsbegin position. 1-based index
cdse. Genomic cdsEnd position, 1-based index.
genomic. The genomic sequence.
gi. genomic id.

References Range::direction(), Range::end(), mRNAModel::gcdsb, mRNAModel::gcdse, Noschain::insideExon(), itos(), Range::length(), Noschain::setEnd(), and mRNAModel::shortestmodel.

JGIModel::JGIModel ( const string &  exstarts,
const string &  exends,
char  strand,
int  cdsb,
int  cdse,
const string &  gi,
const string &  si,
const string &  genomic 
) throw (Badinput, InvalidJGIModel, InvalidModel, PointOutChain, exception)


Member Function Documentation

bool JGIModel::valid (  ) 

string JGIModel::toJGIString ( char  sep = '\t'  )  const

Written out as id <sep> genomicid <sep> name <sep> chain_str <sep> gcdsb <sep> gcdse

References Range::direction(), mRNAModel::gcdsb, mRNAModel::gcdse, RNAModel::genomicId(), getId(), getName(), Range::largerEnd(), max, min, Noschain::numberOfRanges(), Range::smallerEnd(), and Noschain::startEnd().

string JGIModel::toSQLString ( char  sep = ','  )  const

string JGIModel::toString ( char  sep = '\t'  )  const

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. Whether CDS is being pushed or just the transcript.

Reimplemented from Noschain.

References mRNAModel::gcdse, and Noschain::growEnd().

Referenced by valid().

int JGIModel::getId (  )  const [inline]

const string& JGIModel::getName (  )  const [inline]

References name.

Referenced by toJGIString(), toSQLString(), and toString().

ostream & JGIModel::show ( ostream &  ous  )  const [virtual]

debug function

Reimplemented from mRNAModel.

References mRNAModel::gcdsb, mRNAModel::gcdse, getId(), RNAModel::gid, name, and Noschain::show().

ostream & JGIModel::print ( ostream &  ous  )  const [virtual]

add name to the ouput of mRNA::print()

Reimplemented from mRNAModel.

References name, and mRNAModel::print().

modeltype JGIModel::objtype (  )  const [inline, virtual]

use the cached result

Reimplemented from mRNAModel.

References JGI.


Member Data Documentation

string JGIModel::name [private]

string name from JGI name column of model track table.

Referenced by getName(), print(), and show().


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

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