public class NotesToAnnotation extends Object
transfer(SBMLDocument, String[])| Constructor and Description |
|---|
NotesToAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
SBMLDocument |
transfer(SBMLDocument sbmlDocument,
String[] keys)
Transfers information from the Cobra style notes of species and reactions
to the annotations (see example below).
|
public SBMLDocument transfer(SBMLDocument sbmlDocument, String[] keys) throws 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 transferedIOException - if an error occursCopyright © 2009–2020. All rights reserved.