Giter Site home page Giter Site logo

kuulia / bespe-maccs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.74 MB

A proof-of-concept type demo of the Binary Encoded SMARTS Pattern Enumeration + Molecular aCCess System molecular descriptor developed as part of Bachelor's Thesis: "Molecular descriptor engineering for machine learning predictions in atmospheric science." Includes a toy data set for demonstrative purposes.

License: GNU General Public License v3.0

Python 100.00%
cheminformatics krr machine-learning molecular-descriptor molecular-descriptors python supervised-learning thesis-project vapour-pressure maccs maccs-fingerprint

bespe-maccs's Introduction

BESPE-MACCS cheminformatics molecular descriptor

A proof-of-concept type demo of the Binary Encoded SMARTS Pattern Enumeration - Molecular aCCess System molecular (BESPE-MACCS) descriptor. Includes a toy data set for demonstrative purposes.

Pipeline

  1. Enumerate SMARTS patterns in the format given by enumerated_smarts_patterns.csv. For the header, SMARTS labels can be arbitrary names, but make sure to name enumerated atom counts accordingly i.e. 'carbon number' and 'oxygen count'. See my other repo that shows one way of doing this https://github.com/kuulia/SMARTS_pattern_enumeration
  2. List molecules as SMILES strings and save them to 'smiles.txt', see example file. No headers.
  3. List target values similar to the SMILES strings, and name file '{target}.txt'. You this name is used later in the 'main.py' script.
  4. Run 'main.py'.

Script files

'main.py' - Calls descriptor generation scripts and calls Kernel Ridge Regression (KRR) model training and testing.

'generate_MACCS.py' - Generates MACCS descriptor file 'MACCS.txt' from 'smiles.txt' file.

'add_BESPE.py' - Binary encodes SMARTS pattern enumeration data 'from enumerated_smarts_patterns.csv', appends it to the MACCS data from 'MACCS.txt' and saves it to 'BESPE-MACCS.txt'.

'krr.py' - Trains and tests KRR model. Outputs 'output_KRR_xxx.txt' files that contain training and testing errors for all training sizes and optionally saves plots for learning curve and scatter of predictions, and explicit predictions 'output_predictions_xxx.csv'.

Developed in Python ver. 3.12.0. See requirements.txt for relevant library versions.

bespe-maccs's People

Contributors

kuulia avatar

Watchers

Kostas Georgiou avatar  avatar

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.