Giter Site home page Giter Site logo

copacof's Introduction

COPACOF: a computational protocol for the assignment of NMR resonances in covalent organic frameworks

This repository contains data related to the following publication in ACS-JCTC: https://doi.org/10.1021/acs.jctc.3c01414. The folder vasp/ contains input files for the structural optimization and NMR calculations of the covalent organic framework materials studied. The folder spectrum/ contains the following Python scripts and files, which may be used to produce a computational NMR spectrum based on theoretical shielding data using the gs model as described in the main text:
(a) classify_carbon.py
(b) gs_model.py
(c) Input and output files as an example of the usage of the scripts.

(a) classify_carbon.py Based on connectivity (using graphs), classify the carbon atoms in the COF into classes.
input files:
system.extxyz -- periodic COF material
node.xyz -- TAPD node that will be searched for in the material
linker.xyz -- Me linker that will be searched for in the material
output files: txt files where the first column is the number of the carbon atom, which is a label derived from the index in the node/linker xyz. Next columns are the indices of the carbon atom in the COF material xyz that belong to that class. One class per row.
linkers_classified.dat
nodes_classified.dat

(b) gs_model.py
input files:
shieldings -- all shieldings in the COF system
linkers_classified.dat
nodes_classified.dat
nodes_colordef.dat -- color choice specific to example case. Change to whatever color codes desired.
linkers_colordef.dat
spectrum.dat -- the experimental spectrum to fit to

Run: python classify_carbon.py
python gs_model.py mse

where mse is the choice for the residual function (others are implemented as well, see script). Additionally, boxplots (and other indicators) may be plotted for the data on the spectrum, which may be switched on in the script setting boxplot_on to value of 1.

copacof's People

Contributors

siebevanlommel avatar

Watchers

Toon Verstraelen avatar Louis Vanduyfhuys avatar Sven M. J. Rogge avatar  avatar

Forkers

siebevl

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.