Giter VIP home page Giter VIP logo

diagram-exporter's People

Contributors

adamjohnwright avatar chuqiaoo avatar cookersjs avatar cqgong avatar eliotragueneau avatar fabregat avatar gsviteri avatar pasculorente avatar solomonshorser-oicr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

diagram-exporter's Issues

Jenkinsfile needs to copy new/updated EHLDs

Cris puts new & updated files in /usr/local/reactomes/Reactome/production/Website/static/download/current/ehld, the Jenkinsfile should be changed:

  • remove the simple check for the existence of the ehld directory
  • prompt the user with a question: "Has Cris updated the files in /usr/local/reactomes/Reactome/production/Website/static/download/current/ehld ?"
  • If they choose "yes", copy the files to /usr/local/reactomes/Reactome/production/Website/static/download/$RELEASE_NUMBER/ehld (create the directory first, if necessary).

Missing "ehld" directory

Jenkinsfile does not create "${env.ABS_DOWNLOAD_PATH}/${releaseVersion}/ehld/" (expands to /usr/local/reactomes/Reactome/production/Website/static/download/76/ehld) and the program fails. The Jenkinsfile needs to check that the directory exists, and raise an error before trying to run the Java application if the directory is missing.

Normally, the "ehld" directory is populated manually by Cris. This step cannot be allowed to run if the directory has not been set up.

Add support for identifiers and colors to SBGN-ML

Color and identifier support will allow third-party tools (like Newt, newteditor.org) to modify the figures for alternative uses and pairing with analyses.

Example file with color and identifiers

https://bitbucket.org/vtoure/sbgn-extension/src/master/SBGNextension/examples/glycolysis.sbgn

Colors

SBGNML color information is stored as SBML Render content:

http://otto.bioquant.uni-heidelberg.de/sbml/#specifications

<style idList="glyph2 glyph7 glyph13 ">
  <g stroke="Color_2" stroke-width="5" fill="yelloComp"  />			
</style>

Identifiers

SBGNML identifier information is stored as SBML annotations:

https://semanticsbml.org/semanticSBML/static/documentation/annotate.html

<extension>
  <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="#glyph10">
      <bqbiol:is>
        <rdf:Bag>
          <rdf:li rdf:resource="http://identifiers.org/chebi/CHEBI:16761"/>
          <rdf:li rdf:resource="http://identifiers.org/kegg.compound/C00008"/>
        </rdf:Bag>
      </bqbiol:is>
    </rdf:Description>
  </rdf:RDF>
</extension>

libSBGN Support

Support for identifiers is provided in the Java libSBGN library (functions by @fbergmann).

Element getAnnotation(SBGNBase sbgnElement, String namespaceURI)
String getAnnotationString(SBGNBase sbgnElement, String namespaceURI)
String wrapRdf(String content) (with all the overloads up to)
String wrapRdf(String content, boolean includeBiol, boolean includeModel, boolean includeDc,
                boolean includeVcard)
void addAnnotation(SBGNBase sbgnElement, Reader r)  and overloads

that way adding new entries becomes relatively easy:

addAnnotation(glyph, 
        wrapRdf("<bqbiol:is><rdf:Bag><rdf:li rdf:resource='http://identifiers.org/uniprot/Q96RR4'/></rdf:Bag></bqbiol:is>", true));

and retrieving them is simple enough:

String annotationString = getAnnotationString(map, "http://www.w3.org/1999/02/22-rdf-syntax-ns#");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.