Graph2DView
that is associated to the search
+ * Returns the {@code Graph2DView} that is associated to the search
* suuport.
- * @return the Graph2DView
that is associated to the search
+ * @return the {@code Graph2DView} that is associated to the search
* suuport.
*/
public Graph2DView getView() {
@@ -464,9 +464,9 @@ public void actionPerformed( final ActionEvent e ) {
/**
* Creates a preconfigured action map for the support's
- * find next match and clear result actions.
+ * find next match and clear result} actions.
* @return a preconfigured action map for the support's
- * find next match and clear result actions.
+ * find next match and clear result} actions.
* @see #getClearAction()
* @see #getNextAction()
*/
@@ -479,12 +479,12 @@ public ActionMap createActionMap() {
/**
* Creates a preconfigured input map for the support's
- * find next match and clear result actions.
+ * find next match and clear result} actions.
* The default implementation maps the find next match action
- * to the F3
function key and the clear search result
- * action to the ESCAPE
key.
+ * to the {@code F3} function key and the clear search result
+ * action to the {@code ESCAPE} key.
* @return a preconfigured input map for the support's
- * find next match and clear result actions.
+ * find next match and clear result} actions.
* @see #getClearAction()
* @see #getNextAction()
*/
@@ -500,7 +500,7 @@ public InputMap createDefaultInputMap() {
private static final Color HIGHLIGHT_COLOR = new Color(202,227,255);
/**
- * Drawable
that highlights search results by drawing a thick,
+ * {@code Drawable} that highlights search results by drawing a thick,
* colored border around search result nodes.
*/
private final class Marker implements Drawable {
@@ -576,7 +576,7 @@ public static final class SearchResult {
/**
* Add the specified node to the search result set.
- * @param node the Node
to add.
+ * @param node the {@code Node} to add.
*/
void add( final Node node ) {
nodes.add(node);
@@ -648,7 +648,7 @@ public void emphasizePrevious() {
/**
* Sorts the nodes in the search result set according to the order
* induced by the specified comparator.
- * @param c the Comparator
to sort the nodes in the search
+ * @param c the {@code Comparator} to sort the nodes in the search
* result set.
*/
void sort( final Comparator c ) {
@@ -656,8 +656,8 @@ void sort( final Comparator c ) {
}
/**
- * Returns a Collection
handle for the search result.
- * @return a Collection
handle for the search result.
+ * Returns a {@code Collection} handle for the search result.
+ * @return a {@code Collection} handle for the search result.
*/
Collection asCollection() {
return nodes;
@@ -671,9 +671,9 @@ public static interface SearchCriterion {
/**
* Returns {@code true} if the specified node should be included
* in the search result and {@code false} otherwise.
- * @param graph the Graph2D
to which the specified node
+ * @param graph the {@code Graph2D} to which the specified node
* belongs.
- * @param node the Node
to test for inclusion in the
+ * @param node the {@code Node} to test for inclusion in the
* search result.
* @return {@code true} if the specified node should be included
* in the search result and {@code false} otherwise.
diff --git a/src/de/zbit/graph/StackingNodeLayout.java b/src/de/zbit/graph/StackingNodeLayout.java
index 4928587..3e8d2e6 100644
--- a/src/de/zbit/graph/StackingNodeLayout.java
+++ b/src/de/zbit/graph/StackingNodeLayout.java
@@ -117,7 +117,7 @@ private StackingNodeLayout(Graph2D graph, Node group, boolean recursive) {
/**
* Perform a simply stacking layout with {@link #cols} columns.
- * @param graph graph in which groupNode
is contained
+ * @param graph graph in which {@code groupNode} is contained
* @param groupNode the group node whose childs should be stacked
*/
public static void doLayout(Graph2D graph, Node groupNode) {
@@ -128,7 +128,7 @@ public static void doLayout(Graph2D graph, Node groupNode) {
* Perform a simply stacking layout with {@link #cols} columns.
* Perform also a stacking layout for all group nodes in this
* group node.
- * @param graph graph in which groupNode
is contained
+ * @param graph graph in which {@code groupNode} is contained
* @param groupNode the group node whose childs should be stacked
*/
public static void doRecursiveLayout(Graph2D graph, Node groupNode) {
@@ -202,7 +202,7 @@ private void layoutGroupNode(Node group) {
/**
* @param group
- * @return all children of the given group
node.
+ * @return all children of the given {@code group} node.
*/
@SuppressWarnings("unchecked")
public Listgroup
+ * @return all children of the given {@code group}
* node and all group nodes in this group node.
*/
public ListTRUE
if the image should be converted to a greyscale image.
+ * {@code true} if the image should be converted to a greyscale image.
*/
public static final OptionFALSE
if the translation should be
+ * @return {@code false} if the translation should be
* stopped.
*/
protected boolean checkSettingsAndIssueWarning(String format) {
@@ -412,7 +412,7 @@ private File getInputFile(JComponent r) {
/**
* A method to set the value of a currently displayed {@link FileSelector}
- * corresponding to the KEGGtranslatorIOOptions.INPUT
option.
+ * corresponding to the {@code KEGGtranslatorIOOptions.INPUT} option.
* @param r the JComponent on which the component for the mentioned
* optioned is placed.
* @param file the file to set
diff --git a/src/de/zbit/kegg/io/AbstractKEGGtranslator.java b/src/de/zbit/kegg/io/AbstractKEGGtranslator.java
index c1beb33..a7be19c 100644
--- a/src/de/zbit/kegg/io/AbstractKEGGtranslator.java
+++ b/src/de/zbit/kegg/io/AbstractKEGGtranslator.java
@@ -466,10 +466,10 @@ public void translate(String infile, String outfile) throws Exception {
/**
* This method converts a given KGML file into the
- * specified OutputFormat
.
+ * specified {@code OutputFormat}.
*
* @param f the input file.
- * @return the generated document in OutputFormat
.
+ * @return the generated document in {@code OutputFormat}.
* @throws IOException if the input file is not readable.
*/
@Override
diff --git a/src/de/zbit/kegg/io/BatchKEGGtranslator.java b/src/de/zbit/kegg/io/BatchKEGGtranslator.java
index b3e46e1..2f596be 100644
--- a/src/de/zbit/kegg/io/BatchKEGGtranslator.java
+++ b/src/de/zbit/kegg/io/BatchKEGGtranslator.java
@@ -350,6 +350,9 @@ public static KEGGtranslator> getTranslator(Format outFormat, KeggInfoManageme
case SBML_L2V4:
translator = new KEGG2jSBML(manager, 2, 4);
break;
+ case SBML_L2V5:
+ translator = new KEGG2jSBML(manager, 2, 5);
+ break;
case SBML_L3V1:
translator = new KEGG2jSBML(manager, 3, 1);
break;
diff --git a/src/de/zbit/kegg/io/KEGG2BioPAX.java b/src/de/zbit/kegg/io/KEGG2BioPAX.java
index d2e80df..05844d6 100644
--- a/src/de/zbit/kegg/io/KEGG2BioPAX.java
+++ b/src/de/zbit/kegg/io/KEGG2BioPAX.java
@@ -342,7 +342,7 @@ public BioPAXElement createXRef(IdentifierDatabases db, String id, int type) {
/**
* Creates a biosource, corresponding to the organism/species of
- * the input pathway p
.
+ * the input pathway {@code p}.
* Please call this method only once per model and save the
* result somewhere, in case you need it multiple times.
*
@@ -881,7 +881,7 @@ public void createReactions(Pathway p) {
* set.
* The terms are for entries that are modified as result of an relation/interaction.
* @param subtype
- * @return {@link ValuePair} with the term name and integer id. Or Key is an Object, Value is a
But these entries might be reused in relations (i.e., relations involving
* reactions) and thus, this method will set the custom attribute of an {@link Entry}
- * to the BioPAX reaction given as reaction
.
+ * to the BioPAX reaction given as {@code reaction} .
* @param p
* @param r KEGG reaction
* @param reaction BioPAX reaction
@@ -1078,7 +1078,7 @@ protected BioPAXElement getInteractionVocuabulary(SubType st) {
* This method tries to denote the vocabulary with an identifiers.org URI.
* This has been suggested by Igor R.
* @param st the corresponding subtype
- * @param proteinModification {@code TRUE} ONLY for modification
+ * @param proteinModification {@code true} ONLY for modification
* vocabularies, such as {@link SequenceModificationVocabulary}.
* @return an RDF-ID of the vocabulary element.
*/
@@ -1155,7 +1155,7 @@ public boolean isGraphicalOutput() {
/**
* Please implement this method to add the given {@link Entry}
- * e
as appropriate BioPAX entity to the {@link #model}.
+ * {@code e} as appropriate BioPAX entity to the {@link #model}.
* @param e
* @param p
* @return created {@link BioPAXElement}
@@ -1164,7 +1164,7 @@ public boolean isGraphicalOutput() {
/**
* Please implement this method to add the given {@link Reaction}
- * r
as appropriate BioPAX entity to the {@link #model}.
+ * {@code r} as appropriate BioPAX entity to the {@link #model}.
* @param r
* @param p
* @return created {@link BioPAXElement}
@@ -1173,7 +1173,7 @@ public boolean isGraphicalOutput() {
/**
* Please implement this method to add the given {@link Relation}
- * r
as appropriate BioPAX entity to the {@link #model}.
+ * {@code r} as appropriate BioPAX entity to the {@link #model}.
* @param r
* @param p
* @return created {@link BioPAXElement}
diff --git a/src/de/zbit/kegg/io/KEGG2BioPAX_level2.java b/src/de/zbit/kegg/io/KEGG2BioPAX_level2.java
index 214b5fa..3a7af00 100644
--- a/src/de/zbit/kegg/io/KEGG2BioPAX_level2.java
+++ b/src/de/zbit/kegg/io/KEGG2BioPAX_level2.java
@@ -354,7 +354,7 @@ public BioPAXElement addEntry(Entry entry, Pathway p) {
/**
* Searches for the {@link physicalEntityParticipant} represented by the given
- * {@link BioPAXElement} ceb
.
+ * {@link BioPAXElement} {@code ceb}.
* @param ceb
* @return instance of {@link physicalEntityParticipant}
*/
diff --git a/src/de/zbit/kegg/io/KEGG2SBMLGroupExtension.java b/src/de/zbit/kegg/io/KEGG2SBMLGroupExtension.java
index 9cd46ed..7b3a275 100644
--- a/src/de/zbit/kegg/io/KEGG2SBMLGroupExtension.java
+++ b/src/de/zbit/kegg/io/KEGG2SBMLGroupExtension.java
@@ -31,7 +31,6 @@
import org.sbml.jsbml.NamedSBase;
import org.sbml.jsbml.SBMLDocument;
import org.sbml.jsbml.ext.groups.Group;
-import org.sbml.jsbml.ext.groups.GroupKind;
import org.sbml.jsbml.ext.groups.GroupsConstants;
import org.sbml.jsbml.ext.groups.GroupsModelPlugin;
import org.sbml.jsbml.ext.groups.Member;
@@ -68,17 +67,18 @@ public class KEGG2SBMLGroupExtension {
* @param p
* @param model
* @param entry
+ * @param groupId
* @return
*/
- public static Group createGroup(Pathway p, Model model, Entry entry) {
+ public static Group createGroup(Pathway p, Model model, Entry entry, String groupId) {
GroupsModelPlugin groupModel = getGroupsModelPlugin(model);
// Get all group-members
Listg
+ * Clones the given group {@code g}
* @param id the id of the new group
* @param g
* @param prefixForMembers this will be prepended to all member symbols
@@ -138,7 +139,7 @@ public static Group cloneGroup(String id, Group g, String prefixForMembers) {
}
/**
- * Duplicates all members of the given group g
and
+ * Duplicates all members of the given group {@code g} and
* adds a prefix to all duplicated members.
* @param g
* @param prefixForMembers
@@ -159,7 +160,8 @@ public static void cloneGroupComponents(Group g, String prefixForMembers) {
if (prefixForMembers!=null) {
if (!symbol.startsWith(prefixForMembers)) {
symbol = prefixForMembers + symbol;
- g.createMember(symbol);
+ Member member = g.createMember(g.getId() + "_member_" + symbol);
+ member.setIdRef(symbol);
}
}
}
diff --git a/src/de/zbit/kegg/io/KEGG2SBMLLayoutExtension.java b/src/de/zbit/kegg/io/KEGG2SBMLLayoutExtension.java
index e5c8e73..f7374db 100644
--- a/src/de/zbit/kegg/io/KEGG2SBMLLayoutExtension.java
+++ b/src/de/zbit/kegg/io/KEGG2SBMLLayoutExtension.java
@@ -135,7 +135,12 @@ public static void addLayoutExtension(Pathway p, SBMLDocument doc, Model model,
// => track min and max values.
MinAndMaxTracker tracker = new MinAndMaxTracker();
- MapNULL
results in
+ * The SBML level to be initialized. {@code NULL} results in
* initializing it automatically (adjusts the level as needed (e.g.
* extensions require L3)).
*/
protected Integer level = null;
/**
- * The SBML version to be initialized. NULL
results in
+ * The SBML version to be initialized. {@code NULL} results in
* initializing it automatically (adjusts it as needed).
*/
protected Integer version = null;
@@ -270,7 +273,7 @@ private void loadPreferences() {
private void configureReactionComponent(Pathway p, ReactionComponent rc, SpeciesReference sr, int SBO) {
if (!rc.isSetID() && !rc.isSetName()) {
rc = rc.getAlt();
- if (rc==null || ((!rc.isSetID() && !rc.isSetName()))) {
+ if ((rc == null) || ((!rc.isSetID() && !rc.isSetName()))) {
return;
}
}
@@ -292,7 +295,7 @@ private void configureReactionComponent(Pathway p, ReactionComponent rc, Species
// Set the stoichiometry
Integer stoich = rc.getStoichiometry();
- sr.setStoichiometry(stoich==null?1d:stoich);
+ sr.setStoichiometry(stoich == null ? 1d : stoich);
// Get Species for ReactionComponent and assign to SpeciesReference.
Entry rcEntry = p.getEntryForReactionComponent(rc);
@@ -320,8 +323,7 @@ public boolean writeToFile(SBMLDocument doc, String outFile) {
lastFileWasOverwritten=true;
}
try {
- SBMLWriter writer = new SBMLWriter();
- writer.write(doc, outFile, System.getProperty("app.name"), System
+ TidySBMLWriter.write(doc, outFile, System.getProperty("app.name"), System
.getProperty("app.version"));
} catch (Exception e) {
log.log(Level.SEVERE, "Could not write SBML document.", e);
@@ -616,7 +618,13 @@ else if (p.isSetLink()) {
// Finalize notes and annotations.
notes.append(notesEndString);
- model.setNotes(notes.toString());
+ try {
+ model.setNotes(notes.toString());
+ } catch (Throwable t) {
+ logger.warning(MessageFormat.format(
+ "Cannot write notes for model ''{0}'' because of {1}: {2}.",
+ model.getId(), t.getClass().getName(), Utils.getMessage(t)));
+ }
if (addCellDesignerAnnots) {
cdu.addCellDesignerAnnotationToModel(p, model, compartment);
}
@@ -651,7 +659,7 @@ private Compartment createCompartment(Model model) {
}
/**
- * Create a compartment with the given name
.
+ * Create a compartment with the given {@code name}.
* @param model
* @param name
* @return
@@ -783,12 +791,12 @@ private org.sbml.jsbml.Reaction addKGMLReaction(Reaction r, Pathway p, Model mod
// Add substrates/ products
sbReaction.setReversible(r.getType().equals(ReactionType.reversible));
for (ReactionComponent rc : r.getSubstrates()) {
- int sbo = (r.getType().equals(ReactionType.irreversible))?15:10;
+ int sbo = (r.getType().equals(ReactionType.irreversible))? 15 : 10;
SpeciesReference sr = sbReaction.createReactant();
configureReactionComponent(p, rc, sr, sbo); // 15=Substrate, 10=Reactant
}
for (ReactionComponent rc : r.getProducts()) {
- int sbo = (r.getType().equals(ReactionType.irreversible))?11:10;
+ int sbo = (r.getType().equals(ReactionType.irreversible))? 11 : 10;
SpeciesReference sr = sbReaction.createProduct();
configureReactionComponent(p, rc, sr, sbo); // 11=Product
}
@@ -866,7 +874,6 @@ private org.sbml.jsbml.Reaction addKGMLReaction(Reaction r, Pathway p, Model mod
sbReaction.addCVTerm(rePWs);
}
-
// Check the atom balance (only makes sense if reactions are corrected,
// else, they are clearly wrong).
if (autocompleteReactions && checkAtomBalance) {
@@ -895,7 +902,13 @@ private org.sbml.jsbml.Reaction addKGMLReaction(Reaction r, Pathway p, Model mod
sbReaction.setName(r.getName());
sbReaction.setId(NameToSId(r.getName()));
notes.append(notesEndString);
- sbReaction.setNotes(notes.toString());
+ try {
+ sbReaction.setNotes(notes.toString());
+ } catch (Throwable t) {
+ logger.warning(MessageFormat.format(
+ "Cannot write notes for reaction ''{0}'' because of {1}: {2}.",
+ sbReaction.getId(), t.getClass().getName(), Utils.getMessage(t)));
+ }
sbReaction.setMetaId("meta_" + sbReaction.getId());
sbReaction.setSBOTerm(176); // biochemical reaction. Most generic SBO Term possible, for a reaction.
//rAnnot.setAbout("#" + sbReaction.getMetaId());
@@ -1112,10 +1125,10 @@ public static String concatReactionIDs(CollectionCVterm
, dependent
+ * Assigns a {@link Qualifier} to {@code CVterm}, dependent
* on the number of contained resources. If this CVTerm contains
- * one resource, BQB_IS
is assigned, else
- * BQB_HAS_VERSION
+ * one resource, {@code BQB_IS} is assigned, else
+ * {@code BQB_HAS_VERSION}
* is assignes.
* @param CVterm any CVTerm
*/
@@ -1204,11 +1217,11 @@ private SBase addKGMLEntry(Entry entry, Pathway p, Model model, Compartment comp
// ---
// Initialize species object
- SBase spec;
+ NamedSBase spec;
+ String id = NameToSId(name.replace(' ', '_')); // defined in org.sbml.jsbml.NamedSBase
if (useGroupsExtension && (entry.hasComponents() || entry.getType().equals(EntryType.group))) {
- spec = KEGG2SBMLGroupExtension.createGroup(p, model, entry);
+ spec = KEGG2SBMLGroupExtension.createGroup(p, model, entry, "group_" + id);
} else {
- spec = model.createSpecies();
// Eventually assign a different compartment
Compartment c = compartment;
@@ -1226,8 +1239,7 @@ private SBase addKGMLEntry(Entry entry, Pathway p, Model model, Compartment comp
}
}
}
- ((Species) spec).setCompartment(c);
-
+ spec = model.createSpecies(id, c);
}
if (spec instanceof Species) {
@@ -1239,6 +1251,25 @@ private SBase addKGMLEntry(Entry entry, Pathway p, Model model, Compartment comp
((Species) spec).setHasOnlySubstanceUnits(false);
((Species) spec).setBoundaryCondition(false);
((Species) spec).setConstant(false); // defined in org.sbml.jsbml.Variable
+
+
+ KeggInfos infos = KeggInfos.get(entry.getName(), manager);
+
+ if ((infos != null) && infos.queryWasSuccessfull()) {
+
+ // Component.getName() might be a glycan and the chemical formula is only given for compounds
+ // => Look if we have synonym identifers for KEGG compound and refetch
+ String formula = infos.getFormulaDirectOrFromSynonym(manager);
+ if (formula != null) {
+ FBCSpeciesPlugin specPlug = (FBCSpeciesPlugin) spec.getPlugin(FBCConstants.getNamespaceURI(spec.getLevel(), spec.getVersion(), 2));
+ try {
+ specPlug.setChemicalFormula(formula);
+ } catch (IllegalArgumentException exc) {
+ logger.warning(exc.getClass().getSimpleName() + ": " + Utils.getMessage(exc));
+ }
+ }
+ }
+
}
((Species) spec).setInitialAmount(speciesDefaultInitialAmount);
//((Species) spec).setUnits(model.getUnitDefinition("substance"));
@@ -1247,8 +1278,7 @@ private SBase addKGMLEntry(Entry entry, Pathway p, Model model, Compartment comp
// ID has to be at this place, because other refer to it by id and if id is not set. refenreces go to null.
// spec.setId(NameToSId(entry.getName().replace(' ', '_')));
if (spec instanceof NamedSBase) {
- ((NamedSBase)spec).setId(NameToSId(name.replace(' ', '_'))); // defined in org.sbml.jsbml.NamedSBase
- spec.setMetaId("meta_" + ((NamedSBase) spec).getId()); // defined in org.sbml.jsbml.SBase
+ spec.setMetaId("meta_" + spec.getId()); // defined in org.sbml.jsbml.SBase
}
//Annotation specAnnot = new Annotation("");
@@ -1256,7 +1286,7 @@ private SBase addKGMLEntry(Entry entry, Pathway p, Model model, Compartment comp
//spec.setAnnotation(specAnnot); // manchmal ist jSBML schon bescheurt...
StringBuffer notes = new StringBuffer(notesStartString);
if (entry.isSetLink()) {
- notes.append(String.format("Original Kegg Entry
\n", entry.getLink()));
+ notes.append(String.format("Original Kegg Entry
\n", entry.getLink().replace("&", "&")));
}
@@ -1271,11 +1301,11 @@ private SBase addKGMLEntry(Entry entry, Pathway p, Model model, Compartment comp
CVTerm cvt = new CVTerm(Type.BIOLOGICAL_QUALIFIER,Qualifier.BQB_IS_ENCODED_BY);
for (int c:entry.getComponents()) {
Entry ce = p.getEntryForId(c);
- if (ce==null) {
+ if (ce == null) {
notesAppend.append("reactionModifiers
list.
+ * to the {@code reactionModifiers} list.
*
* @param entry
* @param spec
diff --git a/src/de/zbit/kegg/io/KEGG2yGraph.java b/src/de/zbit/kegg/io/KEGG2yGraph.java
index 05ee64c..0be6569 100644
--- a/src/de/zbit/kegg/io/KEGG2yGraph.java
+++ b/src/de/zbit/kegg/io/KEGG2yGraph.java
@@ -1297,7 +1297,7 @@ protected Graph2D translateWithoutPreprocessing(Pathway p) {
}
/**
- * Returns {@code TRUE} if a direct relation between the given
+ * Returns {@code true} if a direct relation between the given
* entry {@code one} and {@code two} exists.
* @param one
* @param two
@@ -1334,8 +1334,8 @@ public static boolean directRelation(Entry one, Entry two) {
}
/**
- * Links all information in all nodeMaps
that are
- * assigned to oldNode
also to the newNode
.
+ * Links all information in all {@code nodeMaps} that are
+ * assigned to {@code oldNode} also to the {@code newNode}.
* @param nodeMaps
* @param oldNode
* @param newNode
@@ -1403,12 +1403,12 @@ private void stackGroupNodeContents(Graph2D graph, Setparent
if all children are contained
- * in toLayout
. (Uses {@link StackingNodeLayout}).
+ * Layoutes the node {@code parent} if all children are contained
+ * in {@code toLayout}. (Uses {@link StackingNodeLayout}).
* @param graph
* @param parent
* @param toLayout nodes without layout information
- * @return TRUE
if a layout has been applied,
+ * @return {@code true} if a layout has been applied,
*/
@SuppressWarnings("unchecked")
private boolean layoutIfallChildsAreInSet(Graph2D graph, Node parent, SetNULL
if the reaction wasn't drawn.
+ * {@code NULL} if the reaction wasn't drawn.
*/
private Node addKGMLReaction(Reaction r, Pathway p, Graph2D graph, Mapchilds
list, this bundling
+ * are inside the {@code childs} list, this bundling
* is performed.
* If only a subset of a group node is given as childs or
* no given node belongs to a group node, the list is
* returned unmodifified.
* @param childs
- * @return common group node parent or NULL
.
+ * @return common group node parent or {@code NULL}.
*/
private Listentry
.
+ * {@code entry}.
* @param entry
* @return
*/
@@ -280,10 +280,10 @@ public static int getGOTerm(String subtype) {
}
/**
- * Convert subtype
to a MI-term that is a child of 'MI:0190' (Molecular Interaction (PSI-MI)).
+ * Convert {@code subtype} to a MI-term that is a child of 'MI:0190' (Molecular Interaction (PSI-MI)).
* The terms are for relations/interactions.
* @param subtype
- * @return {@link ValuePair} with the term name and integer id. Or NULL
if
+ * @return {@link ValuePair} with the term name and integer id. Or {@code NULL} if
* no MI term is available that matches the given input {@link SubType}.
*/
public static ValuePairsubtype
to a MOD-term (Protein Modification Ontology (PSI-MOD))
+ * Convert {@code subtype} to a MOD-term (Protein Modification Ontology (PSI-MOD))
* that is either a child of 'MOD:01157' or 'MOD:01156'.
* NULL
if
+ * @return {@link ValuePair} with the term name and integer id. Or {@code NULL} if
* no MI term is available that matches the given input {@link SubType}.
*/
public static ValuePairtype
{@link NodeMap} of the {@link #graph}
+ * Static String for the {@code type} {@link NodeMap} of the {@link #graph}
* to be used for, e.g. microRNAs.
*/
public final static String RNA_TYPE = "RNA";
@@ -182,7 +182,7 @@ public Setdescriptor
. This means,
+ * Get a reverse map for the {@code descriptor}. This means,
* descriptor object to List of nodes with this descriptor.
* List
* @param descriptor
diff --git a/test/de/zbit/kegg/gui/ReactionPanelTest.java b/test/de/zbit/kegg/gui/ReactionPanelTest.java
index 44e46ed..097b07c 100644
--- a/test/de/zbit/kegg/gui/ReactionPanelTest.java
+++ b/test/de/zbit/kegg/gui/ReactionPanelTest.java
@@ -35,7 +35,7 @@
import org.sbml.jsbml.SBMLException;
import org.sbml.jsbml.Species;
import org.sbml.jsbml.SpeciesReference;
-import org.sbml.jsbml.xml.stax.SBMLWriter;
+import org.sbml.jsbml.TidySBMLWriter;
import de.zbit.sbml.gui.ReactionPanel;
@@ -54,10 +54,7 @@ public class ReactionPanelTest {
public static void main(String[] args) throws XMLStreamException,
SBMLException {
SBMLDocument doc = createSimpleSBMLDocument(1, 2, 2, false);
- SBMLWriter writer = new SBMLWriter();
- writer.setIndentationCount(2);
- writer.setIndentationChar(' ');
- System.out.println(writer.writeSBMLToString(doc));
+ TidySBMLWriter.write(doc, System.out, null, null);
JFrame f = new JFrame("Reaction test");
JPanel panel = new ReactionPanel(doc.getModel().getReaction(0), false);
panel.setBackground(Color.WHITE);