public abstract class BioSequenceImpl extends Molecule implements Cloneable, BioSequence
| Modifier and Type | Class and Description |
|---|---|
class |
BioSequenceImpl.SeqFilterReader |
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
GAP_PATTERN |
| Constructor and Description |
|---|
BioSequenceImpl() |
BioSequenceImpl(XMLNode inXML) |
add, add, addAtom, addAtoms, addAtoms, addAtoms, addElementalComposition, addElementalComposition, addElementalComposition, addKa, addKa, calculateMassFromElementalComposition, clearAttributes, clearElementalComposition, compareTo, formatMassString, getAtoms, getAttribute, getAttributeNames, getKas, getLastAtom, getPhysicalProperty, hasAttribute, hasAttributes, hashCode, isLocked, lock, massesAreUserSet, name, remove, remove, removeAttribute, setAttribute, setAverageMass, setChemicalFormula, setElementalComposition, setMonoisotopicMass, setName, setOrganicAverageMass, setPhysicalPropertyfinalize, getClass, notify, notifyAll, wait, wait, waitgetAttribute, getAttributeNames, hasAttribute, instantiate, removeAttribute, setAttributecompareToprotected static final Pattern GAP_PATTERN
public BioSequenceImpl()
public BioSequenceImpl(XMLNode inXML)
public BioSequence setCompressionThreshold(int inNumBytes)
public BioSequenceType getType()
getType in interface BioSequencepublic BioSequenceImpl clone()
Moleculeclone in interface BioSequenceclone in class Moleculepublic BioSequence setID(String inValue)
BioSequencesetID in interface BioSequenceinValue - the id to use for this sequencepublic String getID()
getID in interface BioSequencepublic BioSequence setDescription(CharSequence inValue)
setDescription in interface BioSequencepublic String getDescription()
getDescription in interface BioSequencepublic BioSequence setSequence(CharSequence inValue)
setSequence in interface BioSequencepublic BioSequence setSequence(Reader inReader) throws SeqIOException
setSequence in interface BioSequenceSeqIOExceptionpublic String getSequence()
getSequence in interface BioSequencepublic Reader getSequenceReader()
getSequenceReader in interface BioSequencepublic Reader getSubSequenceReader(SeqLocation inSeqLocation)
getSubSequenceReader in interface BioSequencepublic InputStream getSequenceStream()
getSequenceStream in interface BioSequencepublic String getSubSequence(SeqLocation inSeqLocation)
getSubSequence in interface BioSequencepublic byte[] getMD5Checksum()
getMD5Checksum in interface BioSequencepublic byte[] getSHA1Checksum()
getSHA1Checksum in interface BioSequencepublic boolean containsGaps()
public Integer getTotalGapLength()
protected void setNumGaps(Integer inValue)
protected void setTotalGapLength(Integer inValue)
public Integer getNumGaps()
protected void countGaps()
public int length()
length in interface BioSequencepublic char residueAt(int inIndex)
residueAt in interface BioSequenceinIndex - the 1-based residue positionpublic void setResidueAt(int inIndex, char inResidue)
inIndex - the 1-based residue positioninResidue - the residue to place at the specified positionpublic XMLNode toXMLNode()
toXMLNode in interface BioSequencetoXMLNode in interface HfgXMLSerializabletoXMLNode in class Moleculeprotected Map<String,Integer> getComposition()
public Map<Element,Float> getElementalComposition()
getElementalComposition in interface MattergetElementalComposition in class Moleculepublic String getChemicalFormula()
getChemicalFormula in interface MattergetChemicalFormula in class Moleculepublic String getChemicalFormulaWithSubscripts()
getChemicalFormulaWithSubscripts in class Moleculepublic Double getMonoisotopicMass()
getMonoisotopicMass in interface MattergetMonoisotopicMass in class Moleculepublic Double getAverageMass()
getAverageMass in interface MattergetAverageMass in class Moleculepublic Double getOrganicAverageMass()
Zhang Z, Pan H, Chen X. 2009. Mass spectrometry for structural characterization
of therapeutic antibodies. Mass Spectrom Rev 28:147-176.
getOrganicAverageMass in interface MattergetOrganicAverageMass in class Moleculepublic void clearCalculatedProperties()
clearCalculatedProperties in class Moleculepublic void clearElementalCompositionAndCalculatedProperties()
protected Map<Molecule,Integer> getResidueComposition()
protected Map<Molecule,Integer> getTerminiComposition()
protected Map<? extends Molecule,Integer> getXLinkComposition()
protected void recalculateElementalComposition()
protected InputStream getReverseSequenceStream()
jataylor@hairyfatguy.com