Giter VIP home page Giter VIP logo

Comments (2)

lohedges avatar lohedges commented on July 22, 2024

Hi there,

Thanks for this. The issue is that the AMBER topology file contains CMAP records, which we don't currently support. Apologies that the message isn't a little more informative. We currently only provided high-level error messages by default, since the low-level messages from Sire, on which BioSImSpace is built, are often quite cryptic to the end user. We are working on an improved way to expose these.

If you are using Sire/BioSImSpace < 2023.0, you can get full error messages as follows:

import BioSImSpace as BSS
BSS.setVerbose(True)
system = BSS.IO.readMolecules(["system.prm7","system.rst7"])

For BioSimSpace 2023.0.0, this doesn't work in quite the same way since Sire has changed its error handling. To get the same error, you'd need to try loading the topology directly with Sire.

from sire.legacy import IO
amber_prm = AmberPrm("system.prm7")

Both report the following:

...

UserWarning: SireIO::parse_error: Could not extract the format from the line '%COMMENT  Ala CMAP                                                              '. Expected to read a line similar to '%FORMAT(5E16.8)'. 

CMAP records are in our roadmap of features for the next year. While it is easy enough to add read/write support for a given format, we need to do some work dealing with interoperability and making sure that the terms are preserved during molecular editing, or applied correctly for certain simulation protocols.

For now, I'll try to give the user a more informative error message when this problem occurs.

from biosimspace.

lohedges avatar lohedges commented on July 22, 2024

I've now parsed the error message and let the user know that CMAP records are currently unsupported. Thanks again for reporting.

from biosimspace.

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.