public class NotesToAnnotation
extends java.lang.Object
transfer(SBMLDocument, String[])| Constructor | Description |
|---|---|
NotesToAnnotation() |
| Modifier and Type | Method | Description |
|---|---|---|
SBMLDocument |
transfer(SBMLDocument sbmlDocument,
java.lang.String[] keys) |
Transfers information from the Cobra style notes of species and reactions
to the annotations (see example below).
|
public SBMLDocument transfer(SBMLDocument sbmlDocument, java.lang.String[] keys) throws java.io.IOException
Example:
Cobra style note of a species:
<notes>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>KEGG Compound: C00004</p>
</body>
</notes>
New annotation of the species (after the transfer of the information):
<annotation>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">
<rdf:Description rdf:about="#cfa155dc-e6ed-4d90-8b0b-ad4cb8a88d6b">
<bqbiol:is>
<rdf:Bag>
<rdf:li rdf:resource="http://identifiers.org/kegg.compound/C00004" />
</rdf:Bag>
</bqbiol:is>
</rdf:Description>
</rdf:RDF>
</annotation>
sbmlDocument - the SBMLDocument where the information should be transfered from the noteskeys - a string array with the keys from the elements of the notes that should be transferedjava.io.IOException - if an error occurs