Giter Site home page Giter Site logo

mmtf-java's People

Contributors

abradle avatar altaite avatar andreasprlic avatar dependabot[bot] avatar josemduarte avatar pwrose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mmtf-java's Issues

Support loading of reduced structures

Currently the base URL is hard coded to use the full version of the MMTF files. We should add methods or a flag to be able to load reduced structures.

GenericEncoder: remove invalid constructor

The following constructor used the same precision for coordinates, B-factors, and occupancy. Usually, different precision is used for these quantities. This constructor should be removed.

/**
* The constructor for the encoder.
* @param structureDataInterface the interface of data to be encoded
* @param precision the precision for the storing of coordinate, B-factor and occupancy data
*/
public GenericEncoder(StructureDataInterface structureDataInterface, int precision) {
coordDivider = precision;
bfactorOccDivider = precision;
encode(structureDataInterface);
}

Unit test for: testReadFromReducedUrl() fails

This unit test fails for PDB ID 4CUP because the expected number of atoms should be:
115 CA's + 24 heterogen atoms = 139 atoms.

CA at alternative locations are not included in the reduced files, and therefore should not be counted.

Extra residue bonds present in MMTF data from v1.0.9.

I recently updated to v1.0.9 from v1.0.5 to gain access to the HTTPS ReaderUtils function. I noticed one particular file is now producing extra bonds: 3N4B. There are now a total of 4135 residue bonds produced, instead of the correct 4131. In the rendering, these bonds are incorrect. Everything else in the file appears correct. Any ideas on what the problem may be?

I do not know if the data has changed or if the issue is in a version of the Java MMTF libs >1.0.5 as I cannot test from v1.0.5 anymore with HTTP.
Screen Shot 2021-05-23 at 9 32 17 AM
Screen Shot 2021-05-23 at 9 34 39 AM

Support https

We need either methods to load structures using https or a flag to switch from http to https.

simple alternative needed

I'm not seeing how one would integrate this mmtf-java package into a working Java program such as Jmol. It has a very large set of dependencies, including

org.msgpack.jackson.dataformat
fasterxml.jackson.annotation
fasterxml.jackson.core
fasterxml.jackson.databind

This amounts to over 5 MB of code and over 500 classes.

The decoding task, at least, is not at all that difficult. I have implemented it in Jmol using a very simple class that has only three generic dependencies (a byte array converter, a binary document reader, and an efficient JavaScript-compatible StringBuffer equivalent). See Jmol's MessagePackReader

I offer this code as a possible very lightweight alternative to what is presently on this site (4 files total; under 20K total for either .class or .js files).

So perhaps just suggesting development of a similar "mmtf-java-decode-lite"

Bob Hanson

Release version 1.0.8

Please create a new version with all the latest fixes. We'll use the new version of mmtf-java to create an updated set of mmtf files.

Also, if you could send me instructions how to update a version, I'd be happy to do it myself in the future.

Dead code in DecoderUtils.addEntityInfo

This seems to be dead code:

String[] chainIdList = new String[dataApi.getEntityChainIndexList(i).length];
int counter = 0;
for (int chainInd : dataApi.getEntityChainIndexList(i)) {
chainIdList[counter] = dataApi.getChainIds()[chainInd];
counter++;
}

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.