Git Product home page Git Product logo

Comments (2)

pennatula avatar pennatula commented on July 24, 2024

This pathway converted in Version 50 but the one from Version 53 gives this error.

converting pathway #556833 Metabolism of lipids and lipoproteins...
Creating new GPML pathway 556835
Warning creating a new DataSource with systemCode Re and null fullName!
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.pathvisio.core.biopax.BiopaxNode.(BiopaxNode.java:41)
at org.pathvisio.core.biopax.PublicationXref.(PublicationXref.java:32)
at org.gk.gpml.ReactometoGPML2013.addLitRef(ReactometoGPML2013.java:226)
at org.gk.gpml.ReactometoGPML2013.convertNode(ReactometoGPML2013.java:520)
at org.gk.gpml.ReactometoGPML2013.convertPathway(ReactometoGPML2013.java:794)
at org.gk.gpml.CLIConverter.convertReactomeToGPML(CLIConverter.java:170)
at org.gk.gpml.CLIConverter.convertReactomeToGPMLByID(CLIConverter.java:206)
at org.gk.gpml.CLIConverter.main(CLIConverter.java:63)
Caused by: java.lang.IllegalArgumentException: Full name does not match for DataSource Re was null so it can not be changed to Reactome
at org.bridgedb.DataSource.findOrRegister(DataSource.java:629)
at org.bridgedb.DataSource.register(DataSource.java:595)
at org.bridgedb.bio.DataSourceTxt.loadLine(DataSourceTxt.java:69)
at org.bridgedb.bio.DataSourceTxt.loadAnInputStream(DataSourceTxt.java:63)
at org.bridgedb.bio.DataSourceTxt.init(DataSourceTxt.java:42)
at org.pathvisio.core.model.GpmlFormat.(GpmlFormat.java:55)
... 8 more

from reactome2gpml-converter.

egonw avatar egonw commented on July 24, 2024

Anwesha, can you please try the following:

  1. Replace

    DataSource ds = DataSource.getBySystemCode("Re");
    

    with

      DataSource ds = DataSource.getExistingBySystemCode("Re");
    
  2. initialize the DataSourceTxt yourself, at the very start of the convertPathway() method, with:

    DataSourceTxt.init();
    

from reactome2gpml-converter.

Related Issues (20)

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.