You are in REST API » v15.1 || Go to



Conversion

Conversion API provides access to MINERVA’s ability convert between different systems biology network formats and to export of layouts to different graphical formats.

Conversion to systems biology formats

List available formats

  • URL: /convert/
  • Method: GET or POST
  • Example:
  • Output: List of input and output format identifiers which can be used as values for the sourceFormat and targetFormat parameters in other convert API calls
    curl -X GET https://minerva-dev.lcsb.uni.lu/minerva/api/convert/
    

Convert network from an input format to an output format

  • URL: /convert/{sourceFormat}:{targetFormat}/
  • Method: POST
  • Parameters:
    • sourceFormat - input format (list of available formats be obtained from the /convert/ API)
    • targetFormat - output format (list of available formats be obtained from the /convert/ API)
  • Body: the input file to be converted
  • Example:
    curl -X POST --data-binary @cell_designer.xml \
    -H "Content-Type: text/plain" https://minerva-dev.lcsb.uni.lu/minerva/api/convert/CellDesigner_SBML:SBML
    

Conversion to image

List available formats

  • URL: /convert/image/
  • Method: GET or POST
  • Output: List of input and output format identifiers which can be used as values for the sourceFormat and targetFormat parameters in other convert API calls
  • Example:
    curl -X GET https://minerva-dev.lcsb.uni.lu/minerva/api/convert/image/
    

Convert network from an input format to an output image

  • URL: /convert/image/{sourceFormat}:{targetFormat}/
  • Method: POST
  • Parameters:
    • sourceFormat - input format (list of available formats be obtained from the /convert/image/ API)
    • targetFormat - output format (list of available formats be obtained from the /convert/image/ API)
  • Body: the input file to be converted
  • Example:
    curl -X POST --data-binary @cell_designer.xml -H "Content-Type: text/plain" \
    https://minerva-dev.lcsb.uni.lu/minerva/api/convert/image/CellDesigner_SBML:svg
    

Merging of maps

This API call allows to merge few files into one. Layout of merged map files will be a simple matrix.

  • URL: /convert/merge/{sourceFormat}:{targetFormat}/
  • Method: POST
  • Parameters:
    • sourceFormat - format of map files to be merged (list of available formats be obtained from the /convert/image/ API)
    • targetFormat - output format (list of available formats be obtained from the /convert/image/ API)
  • Body: the input file with zipped maps. In the zipped folder files must be in maps subfolder.
    curl -X POST --data-binary @cd-maps.zip  -H 'Content-Type: text/plain'  https://minerva-dev.lcsb.uni.lu/minerva/api/convert/merge/CellDesigner_SBML:CellDesigner_SBML
    


Back to top