|
'STRAP:multiple sequence alignments ' | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcharite.christo.metannogen.MObject
charite.christo.metannogen.MReaction
public class MReaction
First invokation of a getter my take several Mikroseconds. Then all outputs are cached and take Nanos. All metabolite and compartment Strings are finalized and can be compared by identity instead of equals which is faster.
| Field Summary | |
|---|---|
static MReaction[] |
NONE
|
| Fields inherited from interface charite.christo.metannogen.Reaction |
|---|
DIRECTION_BACKWARD, DIRECTION_FORWARD, DIRECTION_REVERSIBLE, EQUALS_IGNORE_COMPARTMENT, EQUALS_IGNORE_ORIENTATION, EQUALS_IGNORE_PROTON, EQUALS_IGNORE_STOICHIOMETRY, EQUALS_RECORD_DIFFERENCES, FILTER_NOT_EXCLUDED, FILTER_REJECTED_DATASETS, TEXT_HUMAN_READABLE, TEXT_NO_COMPARTMENT, TEXT_SORT_METABOLITES, UNIQUE |
| Fields inherited from interface charite.christo.interfaces.HasRendererText |
|---|
JLIST |
| Constructor Summary | |
|---|---|
MReaction()
|
|
MReaction(byte[] text)
|
|
MReaction(byte[] txt,
int begin,
int end)
|
|
MReaction(CharSequence text)
|
|
MReaction(String[] mmS,
int[] stoichS,
String[] ccS,
String[] mmP,
int[] stoichP,
String[] ccP)
|
|
| Method Summary | |
|---|---|
boolean |
areAllCompartmentsTranslated()
|
boolean |
areAllSpeciesTranslated()
Short for Integer.parsInt(getAttribute(key)). |
boolean |
assertIntern()
Checks whether the arrays have the same length and whether for all Strings s=s.intern(); |
boolean |
equals(Reaction r,
long options)
Comparison |
static String |
equationHumanReadable(ByteArray ba,
boolean sumFormula)
|
float[] |
floatValues()
|
String[] |
getAllNames()
|
String[] |
getBraceExpansionID()
|
Object[] |
getChildren()
|
Color |
getColor()
|
CharSequence |
getComment()
|
String |
getCompartmentOfSpecies(String m)
|
String |
getCompartmentOfSpeciesP(String m)
|
String |
getCompartmentOfSpeciesS(String m)
Returns null if the given metabolite is not part of the reaction. |
String[] |
getCompartmentsP()
List of Compartments for products. |
String[] |
getCompartmentsS()
List of reactants |
String[] |
getCompartmentsWithEnzyme()
Alle compartments fur diese Reaktionsgleichung, sorted alphabetically In der Implementierung wird getReactionsWithThisStoichiometry() iteriert und eine Liste aller compartments erstellt. |
int |
getConfidence()
|
String[] |
getDatasetFields()
If the reaction is created from a Dataset then return the dataset fields. |
float |
getDeltaG()
|
int |
getDirection()
See DIRECTION_FORWARD, DIRECTION_BACKWARD, DIRECTION_REVERSIBLE |
EC_Class[] |
getEC_classes()
|
String[] |
getEC()
Array of EC-numbers or an array of length 0. |
MReaction[] |
getIdenticalReactionsNC()
|
static String[] |
getIDsForProton()
|
String |
getInfoText()
|
static String[] |
getLastEqualsDifferingMetabolite()
|
String |
getName()
The human readable name of the reaction. |
String[] |
getOrthologies()
|
Pathway[] |
getPathways()
|
String[] |
getProducts()
List of products The following Arrays have exactly the same size: getCompartmentsP() getProducts() getSpeciesP() getStoichiometriesP() |
MReaction |
getReactionMetabolitesMappedNC(Map<String,String> mapMetabolites)
|
MReaction[] |
getReactionsWithThisStoichiometry()
Die Grundidee ist, dass initial ein Array von Reaktionen generiert wird, bei der jede Stoichiometrie nur einmal auftaucht. |
String |
getRendererText(int options)
|
MSpecies[] |
getSpecies()
|
MSpecies[] |
getSpeciesP()
List of products |
MSpecies[] |
getSpeciesS()
List of reactants |
int[] |
getStoichiometriesP()
Stoichiometries of products. |
int[] |
getStoichiometriesS()
Stoichiometries of reactants. |
int |
getStoichiometryP(String metabolite,
String compartment)
|
int |
getStoichiometryS(String metabolite,
String compartment)
Compartment may be null. |
String[] |
getSubstrates()
List of reactants The following Arrays have exactly the same size: getCompartmentsS() getSubstrates() getSpeciesS() getStoichiometriesS() |
String[] |
getSubstratesAndProducts()
All metabolites as a unique sorted list |
String[] |
getSubstratesAndProductsWithoutProton()
Metabolite IDs, skip hydrogen |
int |
getSubstratesAndProductsWithoutProtonHashCode()
Dadurch wird die equals Methode extrem schnell |
String[] |
getSubstratesAndProductsWithoutProtonMapped()
|
TabItemTipIcon |
getTabItemTipIcon(MouseEvent ev)
|
boolean |
hasChildren()
|
int |
hashCode(Object o)
|
boolean |
isAlreadyInOtherNetwork()
|
boolean |
isBiomass()
|
boolean |
isExcluded()
Exists but should not be used in file export. |
boolean |
isGeneral()
|
boolean |
isReversible()
Identical to getDirection()==DIRECTION_REVERSIBLE |
boolean |
isTransport()
True if reactants and products have different compartments. |
static void |
main(String[] argv)
|
void |
setAlreadyInOtherNetwork(boolean b)
|
void |
setBraceExpansionID(String[] braceID)
|
void |
setColor(Color color)
|
void |
setComment(CharSequence s)
|
MReaction |
setCompartmentDictionary(Map<String,String> map)
|
void |
setConfidence(int c)
|
void |
setDatasetFields(String[] fields)
|
MReaction |
setDefaultCompartment(String compartment)
When parsing from text, metabolites without underscor_compartment are assigned the default compartment. |
void |
setDefinition(CharSequence s)
|
void |
setDeltaG(float dg)
|
void |
setDirection(int dir)
See DIRECTION_FORWARD, DIRECTION_BACKWARD, DIRECTION_REVERSIBLE |
void |
setEC(CharSequence s)
|
void |
setEC(String[] ec)
|
void |
setEquation(CharSequence text)
|
void |
setExcluded(boolean yesNo)
Exists but should not be used in file export |
static void |
setIDsForProton(String[] idsOfProton)
|
MReaction |
setMetaboliteDictionary(Map<String,String> map)
Used to convert metabolite ID's when parsing from String |
void |
setOrthologies(CharSequence s)
|
void |
setPathways(Pathway[] ss)
|
void |
setReactionsWithThisStoichiometry(Reaction[] rr)
|
void |
setSubstratesOrProducts(String[] metabolite,
int[] stoich,
String[] compart,
boolean isProduct)
|
MSpecies |
speciesForID(CharSequence id)
|
MSpecies[] |
speciesFromIDs(CharSequence[] ss)
|
String |
toText(int options)
Options may be 0 or TEXT_HUMAN_READABLE |
String |
toTextSorted(long options)
|
MReaction |
translateMetabolitesAndCompartments(Map<String,String> mapM,
Map<String,String> mapC)
|
| Methods inherited from class charite.christo.metannogen.MObject |
|---|
clone, getAttribute, getAttributeF, getAttributeI, getAttributes, getClientProperty, getClientPropertyMapAsString, getCollection, getEntireText, getHaystacksForStringSearch, getID, getIDMapped, getIDMappedSimilar, getParent, getTopAncestor, getTopAncestorID, putClientProperty, setAttributes, setCollection, setID, setName, setParent, setTextBlock, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface charite.christo.metannogen.Reaction |
|---|
getAttribute, getAttributeF, getAttributeI, getAttributes, getClientProperty, getCollection, getID, putClientProperty |
| Methods inherited from interface charite.christo.interfaces.HasID |
|---|
getID |
| Methods inherited from interface charite.christo.DialogStringMatch.Interface |
|---|
getHaystacksForStringSearch |
| Field Detail |
|---|
public static final MReaction[] NONE
| Constructor Detail |
|---|
public MReaction()
public MReaction(CharSequence text)
public MReaction(byte[] text)
public MReaction(byte[] txt,
int begin,
int end)
public MReaction(String[] mmS,
int[] stoichS,
String[] ccS,
String[] mmP,
int[] stoichP,
String[] ccP)
| Method Detail |
|---|
public void setOrthologies(CharSequence s)
public void setDefinition(CharSequence s)
public void setComment(CharSequence s)
public final CharSequence getComment()
public MReaction[] getReactionsWithThisStoichiometry()
Reaction
getReactionsWithThisStoichiometry in interface Reactionpublic void setReactionsWithThisStoichiometry(Reaction[] rr)
setReactionsWithThisStoichiometry in interface Reactionpublic String[] getCompartmentsWithEnzyme()
Reaction
getCompartmentsWithEnzyme in interface Reactionpublic boolean isTransport()
Reaction
isTransport in interface Reactionpublic boolean isBiomass()
isBiomass in interface Reactionpublic float getDeltaG()
getDeltaG in interface Reactionpublic void setDeltaG(float dg)
setDeltaG in interface Reactionpublic MSpecies speciesForID(CharSequence id)
public MSpecies[] speciesFromIDs(CharSequence[] ss)
public MSpecies[] getSpeciesS()
Reaction
getSpeciesS in interface Reactionpublic MSpecies[] getSpeciesP()
Reaction
getSpeciesP in interface Reactionpublic MSpecies[] getSpecies()
public String[] getSubstratesAndProductsWithoutProtonMapped()
public String[] getSubstratesAndProductsWithoutProton()
getSubstratesAndProductsWithoutProton in interface Reactionpublic int getConfidence()
getConfidence in interface Reactionpublic void setConfidence(int c)
public MReaction setDefaultCompartment(String compartment)
public void setEquation(CharSequence text)
public static void setIDsForProton(String[] idsOfProton)
public static String[] getIDsForProton()
public MReaction setMetaboliteDictionary(Map<String,String> map)
public MReaction setCompartmentDictionary(Map<String,String> map)
public String[] getSubstratesAndProducts()
getSubstratesAndProducts in interface Reactionpublic String[] getProducts()
Reaction
getProducts in interface Reactionpublic String[] getSubstrates()
Reaction
getSubstrates in interface Reactionpublic String[] getCompartmentsP()
Reaction
getCompartmentsP in interface Reactionpublic String[] getCompartmentsS()
Reaction
getCompartmentsS in interface Reactionpublic String getCompartmentOfSpeciesS(String m)
Reaction
getCompartmentOfSpeciesS in interface Reactionpublic String getCompartmentOfSpeciesP(String m)
getCompartmentOfSpeciesP in interface Reactionpublic String getCompartmentOfSpecies(String m)
public int[] getStoichiometriesS()
Reaction
getStoichiometriesS in interface Reactionpublic int[] getStoichiometriesP()
Reaction
getStoichiometriesP in interface Reaction
public int getStoichiometryS(String metabolite,
String compartment)
Reaction
getStoichiometryS in interface Reaction
public int getStoichiometryP(String metabolite,
String compartment)
getStoichiometryP in interface Reaction
public void setSubstratesOrProducts(String[] metabolite,
int[] stoich,
String[] compart,
boolean isProduct)
public String toText(int options)
Reaction
toText in interface Reactionpublic int getSubstratesAndProductsWithoutProtonHashCode()
Reaction
getSubstratesAndProductsWithoutProtonHashCode in interface Reaction
public boolean equals(Reaction r,
long options)
Reaction
equals in interface Reactionpublic static final String[] getLastEqualsDifferingMetabolite()
public boolean areAllSpeciesTranslated()
Reaction
areAllSpeciesTranslated in interface Reactionpublic boolean areAllCompartmentsTranslated()
public MReaction translateMetabolitesAndCompartments(Map<String,String> mapM,
Map<String,String> mapC)
public static void main(String[] argv)
public final String getName()
Reaction
getName in interface HasNamegetName in interface ReactiongetName in class MObjectpublic final int hashCode(Object o)
public String toTextSorted(long options)
public final float[] floatValues()
public boolean isGeneral()
public void setDirection(int dir)
Reaction
setDirection in interface Reactionpublic int getDirection()
Reaction
getDirection in interface Reactionpublic boolean isReversible()
Reaction
isReversible in interface Reactionpublic String[] getEC()
Reaction
getEC in interface Reactionpublic void setEC(CharSequence s)
public void setEC(String[] ec)
public EC_Class[] getEC_classes()
public String[] getOrthologies()
public void setPathways(Pathway[] ss)
public Pathway[] getPathways()
public boolean hasChildren()
hasChildren in interface HasChildrenpublic Object[] getChildren()
getChildren in interface HasChildrenpublic MReaction[] getIdenticalReactionsNC()
public final String getInfoText()
getInfoText in interface HasInfoTextpublic final Color getColor()
getColor in interface Coloredpublic final void setColor(Color color)
setColor in interface Coloredpublic String getRendererText(int options)
getRendererText in interface HasRendererTextpublic TabItemTipIcon getTabItemTipIcon(MouseEvent ev)
getTabItemTipIcon in interface TabItemTipIcon.Interfacepublic MReaction getReactionMetabolitesMappedNC(Map<String,String> mapMetabolites)
public void setAlreadyInOtherNetwork(boolean b)
public boolean isAlreadyInOtherNetwork()
public void setExcluded(boolean yesNo)
Reaction
setExcluded in interface Reactionpublic boolean isExcluded()
Reaction
isExcluded in interface Reactionpublic String[] getDatasetFields()
Reaction
getDatasetFields in interface Reactionpublic void setDatasetFields(String[] fields)
public boolean assertIntern()
public static String equationHumanReadable(ByteArray ba,
boolean sumFormula)
public String[] getAllNames()
public void setBraceExpansionID(String[] braceID)
public String[] getBraceExpansionID()
|
'STRAP:multiple sequence alignments ' | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||