#include <bioseq.h>

Public Member Functions | |
| DNA () | |
| DNA (const DNA &s) | |
| DNA (const string &s) | |
| DNA (const string &n, const string &s) | |
| DNA (const string &n, const string &s, const string &t) | |
| DNA (const bioseq &s) | |
| ~DNA () | |
| DNA & | operator= (const DNA &s) |
| DNA & | operator= (const string &str) |
| Protein | translate () const |
| Protein | translate (int begin, int end=-1) const |
| DNA | subseq (int b, int e) const |
| const int * | getcodeNuc () const |
| sequenceType | getSequenceType () const |
| double | GCContent () const |
| void | revcomp () |
| Protein | longestORFForward (int &b, int &e) const |
| void | longestORFForward (Protein &p, int &b, int &e) const |
| Protein | longestORFReverse (int &b, int &e) const |
| void | longestORFReverse (Protein &p, int &b, int &e) const |
| Protein | longestORF (char strand, int &b, int &e) const |
| Protein | longestORF (int &b, int &e) const |
| void | longestORF (Protein &p, int &b, int &e) const |
Static Public Member Functions | |
| static const codon & | getCodonTable () |
Static Protected Attributes | |
| static codon | codontable = codon() |
| DNA::DNA | ( | ) | [inline] |
| DNA::DNA | ( | const DNA & | s | ) | [inline] |
| DNA::DNA | ( | const string & | s | ) | [inline] |
| DNA::DNA | ( | const string & | n, | |
| const string & | s | |||
| ) | [inline] |
| DNA::DNA | ( | const string & | n, | |
| const string & | s, | |||
| const string & | t | |||
| ) | [inline] |
| DNA::DNA | ( | const bioseq & | s | ) | [inline] |
| DNA::~DNA | ( | ) | [inline] |
References bioseq::operator=().
| DNA & DNA::operator= | ( | const string & | str | ) |
| Protein DNA::translate | ( | ) | const |
this is one essential operationn with cDNA CDS features of genomic DNA also use this feature.
References codontable, and bioseq::seq.
Referenced by longestORFForward(), main(), GenModel::makeProtein(), and GenModel::valid().
| Protein DNA::translate | ( | int | begin, | |
| int | end = -1 | |||
| ) | const |
use 1-based index This operation limits the operation to a subrange of the DNA sequence. This class use only one codon table that is static.
References codontable, and bioseq::seq.
| DNA DNA::subseq | ( | int | b, | |
| int | e | |||
| ) | const [inline] |
performance is very bad if sequence is long. 1-based index, inclusive [b, e]
Reimplemented from bioseq.
References bioseq::subseq().
Referenced by bufferGenomic(), buildGeneInfo(), dumpFromModel(), dumpIntronExon(), and main().
| const int * DNA::getcodeNuc | ( | ) | const |
not implemented yet, could convert bases into integers like A=>0, C=>1, ... This method is different, use a different hashing method
References bioseq::code, hashbase(), bioseq::length(), and bioseq::seq.
| sequenceType DNA::getSequenceType | ( | ) | const [inline, virtual] |
| double DNA::GCContent | ( | ) | const |
return the fraction of GC/Length of sequence
References at, and bioseq::seq.
Referenced by dumpFromModel(), and dumpIntronExon().
| void DNA::revcomp | ( | ) | [inline] |
use the inplace global function more efficient
References reverseComplementInPlace(), and bioseq::seq.
Referenced by ESTModel::ESTModel(), longestORFReverse(), and mRNAModel::mRNAModel().
| Protein DNA::longestORFForward | ( | int & | b, | |
| int & | e | |||
| ) | const |
return the longest peptide sequence in the + strand. set b,e to the range on DNA that give rise to this translation. b,e are C style index. [b,e)
References bioseq::length(), longestORFIndex(), bioseq::subsequence(), and translate().
Referenced by ESTModel::ESTModel(), longestORF(), longestORFReverse(), mRNAModel::mRNAModel(), and testTranslate().
| void DNA::longestORFForward | ( | Protein & | p, | |
| int & | b, | |||
| int & | e | |||
| ) | const |
more efficient version, avoiding returning a long string.
References bioseq::length(), longestORFIndex(), bioseq::subsequence(), and translate().
| Protein DNA::longestORFReverse | ( | int & | b, | |
| int & | e | |||
| ) | const |
[b,e) b>e from the lower strand (-)
References bioseq::length(), longestORFForward(), and revcomp().
Referenced by longestORF(), and testTranslate().
| void DNA::longestORFReverse | ( | Protein & | p, | |
| int & | b, | |||
| int & | e | |||
| ) | const |
References bioseq::length(), longestORFForward(), and revcomp().
| Protein DNA::longestORF | ( | char | strand, | |
| int & | b, | |||
| int & | e | |||
| ) | const |
References longestORFForward(), and longestORFReverse().
Referenced by mRNA::mRNA(), and testTranslate().
| Protein DNA::longestORF | ( | int & | b, | |
| int & | e | |||
| ) | const |
References longestORFForward(), and longestORFReverse().
| void DNA::longestORF | ( | Protein & | p, | |
| int & | b, | |||
| int & | e | |||
| ) | const |
References longestORFForward(), and longestORFReverse().
| static const codon& DNA::getCodonTable | ( | ) | [inline, static] |
codon DNA::codontable = codon() [static, protected] |
all the DNA class use one codon table This is mostly for efficiency purposes. May have to add some other function to deal with particular codon tables.
Referenced by getCodonTable(), and translate().
1.5.6