Package semanticSBML :: Module annotate
[hide private]
[frames] | no frames]

Module annotate

source code

MIRIAM annotation manipulation this module provides classes for the manipulation of MIRIAM annotations of an SBML model or single SBML elements

Classes [hide private]
  Annotator
convenience class for ModelElementsAnnotations, ElementAnnotations and Annotation
  ModelElementsAnnotations
Represents all ElementAnnotationss (each contains a list of Annotations) functions that operate on multiple ElementAnnotationss
  ElementAnnotations
this class represents the MIRIAM annotations of a libsbml element
Variables [hide private]
  cfg = libSBAnnotation.config.Config()
  ldb = None
  nldb = None
  uri2name = {u'http://arrayexpress.org/': u'ArrayExpress', u'ht...
  name2uri = {u'3DMET': u'urn:miriam:3dmet', u'Aclame': u'urn:mi...
  database2elements = {u'3DMET': [u'species', u'parameter'], u'A...
  elements2databases = {u'algebraicRule': set([u'BIND', u'Enzyme...
  name2altURIs = {u'3DMET': [], u'Aclame': [], u'Anatomical Ther...
  database2regex = {u'3DMET': u'^B\d{5}$', u'Aclame': u'^mge:\d+...
  name2www = {u'3DMET': 'http://www.3dmet.dna.affrc.go.jp/html/%...
  bio_qualifier_type2name = {0: u'is', 1: u'hasPart', 2: u'isPar...
  model_qualifier_type2name = {0: u'is', 1: u'isDescribedBy', 2:...
  bio_qualifier_name2type = {u'encodes': 8, u'hasPart': 1, u'has...
  modelqual_name2type = {u'is': 0, u'isDescribedBy': 1, u'unknow...
  modelqual_name2desc = {u'is': u'The modelling object represent...
  bioqual_name2desc = {u'encodes': u'The biological entity repre...
  bio_qualifiers = [u'is', u'hasPart', u'hasProperty', u'isPartO...
  model_qualifiers = [u'is', u'isDerivedFrom', u'isDescribedBy',...
  x = checkAndGetXml('resources', 'libsbml_resources')
  msg = '%e<br>Old %s needs update!<br> Trying to get it ...' %(...
  __package__ = 'semanticSBML'
  bqr = <XMLNode: qualifier>
  mqr = <XMLNode: qualifier>

Imports: os, sys, xml, libsbml, xmlobject, re, urllib, libSBAnnotation, Annotation, redownload, checkAndGetXml, get_db_from_uri, AnnotationError, AnnotationDatabaseError, AnnotationCreationError


Variables Details [hide private]

uri2name

Value:
{u'http://arrayexpress.org/': u'ArrayExpress',
 u'http://arxiv.org/': u'arXiv',
 u'http://biomodels.net/MIRIAM/': u'MIRIAM Resources',
 u'http://biomodels.net/SBO/': u'Systems Biology Ontology',
 u'http://mousegenome.org/': u'Mouse Genome Database',
 u'http://pfam.org/': u'Pfam',
 u'http://pir.georgetown.edu/pirsf/': u'PIRSF',
 u'http://sabio.villa-bosch.de/reaction/': u'SABIO-RK Reaction',
...

name2uri

Value:
{u'3DMET': u'urn:miriam:3dmet',
 u'Aclame': u'urn:miriam:aclame',
 u'Anatomical Therapeutic Chemical': u'urn:miriam:atc',
 u'ArrayExpress': u'urn:miriam:arrayexpress',
 u'BIND': u'urn:miriam:bind',
 u'BRENDA': u'urn:miriam:brenda',
 u'BioGRID': u'urn:miriam:biogrid',
 u'BioModels': u'urn:miriam:biomodels.db',
...

database2elements

Value:
{u'3DMET': [u'species', u'parameter'],
 u'Aclame': [u'species'],
 u'Anatomical Therapeutic Chemical': [u'species'],
 u'BIND': [u'species',
           'rateRule',
           'assignmentRule',
           'algebraicRule',
           u'reaction',
...

elements2databases

Value:
{u'algebraicRule': set([u'BIND',
                        u'Enzyme Nomenclature',
                        u'Gene Ontology',
                        u'IntAct',
                        u'KEGG Pathway',
                        u'KEGG Reaction',
                        u'Reactome',
                        u'Systems Biology Ontology']),
...

name2altURIs

Value:
{u'3DMET': [],
 u'Aclame': [],
 u'Anatomical Therapeutic Chemical': [],
 u'ArrayExpress': [u'http://arrayexpress.org/'],
 u'BIND': [u'http://www.bind.ca/'],
 u'BRENDA': [],
 u'BioGRID': [],
 u'BioModels': [],
...

database2regex

Value:
{u'3DMET': u'^B\d{5}$',
 u'Aclame': u'^mge:\d+$',
 u'Anatomical Therapeutic Chemical': u'^(\w+(\-\w+)?(\.\w+)?/)?\d{4,7}\
(\.\d{4}(v\d+)?)?$',
 u'ArrayExpress': u'^[AEP]-\w{4}-\d+$',
 u'BIND': u'^\d+$',
 u'BRENDA': u'^((\d+\.-\.-\.-)|(\d+\.\d+\.-\.-)|(\d+\.\d+\.\d+\.-)|(\d\
+\.\d+\.\d+\.\d+))$',
...

name2www

Value:
{u'3DMET': 'http://www.3dmet.dna.affrc.go.jp/html/%s.html',
 u'Aclame': 'http://aclame.ulb.ac.be/perl/Aclame/Genomes/mge_view.cgi?\
view=info&id=%s',
 u'Anatomical Therapeutic Chemical': 'http://www.whocc.no/atc_ddd_inde\
x/?code=%s',
 u'ArrayExpress': 'http://www.ebi.ac.uk/arrayexpress/experiments/%s',
 u'BIND': 'http://www.bind.ca/Action?identifier=bindid&idsearch=%s',
 u'BRENDA': 'http://www.brenda-enzymes.org/php/result_flat.php4?ecno=%\
...

bio_qualifier_type2name

Value:
{0: u'is',
 1: u'hasPart',
 2: u'isPartOf',
 3: u'isVersionOf',
 4: u'hasVersion',
 5: u'isHomologTo',
 6: u'isDescribedBy',
 7: u'isEncodedBy',
...

model_qualifier_type2name

Value:
{0: u'is', 1: u'isDescribedBy', 2: u'unknown'}

bio_qualifier_name2type

Value:
{u'encodes': 8,
 u'hasPart': 1,
 u'hasVersion': 4,
 u'is': 0,
 u'isDescribedBy': 6,
 u'isEncodedBy': 7,
 u'isHomologTo': 5,
 u'isPartOf': 2,
...

modelqual_name2type

Value:
{u'is': 0, u'isDescribedBy': 1, u'unknown': 2}

modelqual_name2desc

Value:
{u'is': u'The modelling object represented by the model component is t\
he subject of the referenced resource. For instance, this qualifier mi\
ght be used to link the encoded model to a database of models.',
 u'isDerivedFrom': u'The modelling object represented by the component\
 of the encoded model is derived from the modelling object represented\
 by the referenced resource. For instance, they can be the fruit of a \
refinement or their adaptation for usage in a different context.',
 u'isDescribedBy': u'The modelling object represented by the component\
...

bioqual_name2desc

Value:
{u'encodes': u'The biological entity represented by the model componen\
t encodes, directly or by transitivity the subject of the referenced r\
esource.',
 u'hasPart': u'The biological entity represented by the model componen\
t includes the subject of the referenced resource, either physically o\
r logically. This relation might be used to link a complex to the desc\
ription of its components.',
 u'hasProperty': u'The subject of the referenced resource is a propert\
...

bio_qualifiers

Value:
[u'is',
 u'hasPart',
 u'hasProperty',
 u'isPartOf',
 u'isPropertyOf',
 u'isVersionOf',
 u'hasVersion',
 u'isHomologTo',
...

model_qualifiers

Value:
[u'is', u'isDerivedFrom', u'isDescribedBy', u'unknown']

msg

Value:
'%e<br>Old %s needs update!<br> Trying to get it ...' %(e, libSBAnnota\
tion.config.Config().getpath('resources', 'libsbml_resources'))