Giter Club home page Giter Club logo

smolscripts's Introduction

smolscripts

Internal: processing scripts for creating metabolomics/small molecule BMRB entries from NMR facility data.

Some of this code is of more general use:

  • create BMRB entry from (carefully crafted) JSON,
  • create NMR-STAR molecule sections from SDF/MOL,
  • create molecule images from SFD/MOL. incl. WSGI web insterface for that.

require:

  • pymol
  • rdkit
  • obabel

files

Dockerfile builds a container for use @ NMRFAM

  • conda install of uwsgi, python 3.6, werkzeug (flask), rdkit, and openbabel
  • runs wsgi.py in uwsgi on port 9090
  • WSGI interface creates molecule images and atom list from MOL/SDF, docker exec the shell to get to everything else.

assign_bmseid.py and bmrbids[.*].sql|sqlt3 - table (sqlite3) of BMSE IDs and associated InChI strings, and a script to look up/append new one

__main__.py and bmrbmb.properties - command line wrapper for creating an NMR-STAR file from files prepared at NMRFAM and its config file

release.py and release.conf - makes "release" version of the BMRB entry file. Requires BMRB validator package with all its dependencies (single .egg).

smolscripts's People

Contributors

dmaziuk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

smolscripts's Issues

Some assembly tags not present in a loop section

Hey Dimitri,

In the assembly saveframe of the output JSON data, the following three tags are at the saveframe level, but seem like they should be in a loop. Here is an excerpt from the assembly section of lovastatin.json:

{
      "sf_category": "assembly",
      "name": "assembly_1",
      ...
      "conformational_isomer": "no",
      "chemical_exchange_state": "no",
      "physical_state": "native",
}

but the three tags I've shown here are actually part of the assembly loop _Entity_assembly, so it seems it should be:

{
      "sf_category": "assembly",
      "name": "assembly_1",
      ...
      "entity_assembly": 
      [{
      "conformational_isomer": "no",
      "chemical_exchange_state": "no",
      "physical_state": "native",
      }]
}

Is this an easy fix or am I misinterpreting the JSON file? Thanks!

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.