|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.mol.Monomer
org.strbio.mol.Nucleotide
public class Nucleotide
Class to represent a single nucleotide
Version 1.0, 8/17/01 - original version, based on org.strbio.mol.Residue
Field Summary | |
---|---|
static java.lang.String |
oneLetter
unlike Residue, don't make - a valid type |
Fields inherited from class org.strbio.mol.Monomer |
---|
atoms, n, type |
Constructor Summary | |
---|---|
Nucleotide()
|
|
Nucleotide(char t)
Make a new nucleotide of a given type. |
|
Nucleotide(Nucleotide q)
copy another residue, including the atoms. |
Method Summary | |
---|---|
static char |
complement(char dna)
complement of a dna base |
static java.lang.String |
complement(java.lang.String dna)
complement of a dna chain |
DLinkedList.Node |
copyNode()
copy contents of a residue |
boolean |
isGap()
is the character used to represent a gap? |
static boolean |
isGap(char x)
Is a character a gap code? |
static boolean |
isNuc(char x)
Is your character a valid 1-letter code? |
boolean |
isValidType()
is the character in 'type' valid for this residue? |
static java.lang.String |
reverse(java.lang.String dna)
reverse |
static java.lang.String |
reverseComplement(java.lang.String dna)
reverse complement |
Methods inherited from class org.strbio.mol.Monomer |
---|
atomSearch, centerOfMass, centerOfMass, copyAtoms, copyDataFrom, isValidNonGap, molecularWeight, nAtoms, nAtomsWithCoord, next, prev, readAtomRecord, readFasta, readSeqRecord, rotate, setNext, setPrev, stripAllAtoms, stripAllBut, stripAllButFirstAtom, stripAtomsByName, transform, translate, typeName, writePDBAtom, writePts, writeSeqRecord, writeYAPFAtom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String oneLetter
Constructor Detail |
---|
public Nucleotide()
public Nucleotide(char t)
public Nucleotide(Nucleotide q)
Method Detail |
---|
public static final char complement(char dna)
public static final java.lang.String complement(java.lang.String dna)
public static final java.lang.String reverseComplement(java.lang.String dna)
public static final java.lang.String reverse(java.lang.String dna)
public static final boolean isNuc(char x)
public static final boolean isGap(char x)
public DLinkedList.Node copyNode()
copyNode
in interface DLinkedList.Node
copyNode
in class Monomer
public boolean isValidType()
isValidType
in class Monomer
public boolean isGap()
isGap
in class Monomer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |