pyenzyme.enzymeml.databases.dataverse module

pyenzyme.enzymeml.databases.dataverse.add_object(json_data, mapping, add_fun)[source]
pyenzyme.enzymeml.databases.dataverse.create_citation_metadatablock(enzmldoc: EnzymeMLDocument)[source]
pyenzyme.enzymeml.databases.dataverse.create_enzymeml_metadatablock(enzmldoc)[source]
pyenzyme.enzymeml.databases.dataverse.kinetic_law_params(reaction: EnzymeReaction) Dict[str, str][source]

Retrieves the arguments to add a kinetic law to an EnzymeML Metadatablock

pyenzyme.enzymeml.databases.dataverse.uploadToDataverse(enzmldoc, dataverse_name: str, base_url: Optional[str] = None, api_token: Optional[str] = None) None[source]

Uploads a givene EnzymeMLDocument object to a dataverse installation.

It should be noted, that the environment variables ‘DATAVERSE_URL’ and ‘DATAVERSE_API_TOKEN’ should be given approriately before the upload. If not, tje upload cant be done.

Parameters
  • enzmldoc (EnzymeMLDocument) – The EnzymeMLDocument to be uploaded.

  • dataverse_name (str) – Name of the dataverse to be uploaded to.

  • base_url (str) – Base URL of the dataverse to upload. Defaults to None. If None the URL will be drawn from env vars.

  • api_token (str) – API Token of the dataverse to upload. Defaults to None. If None the API Token will be drawn from env vars.