• Stars
    star
    204
  • Rank 192,063 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Converts an xyz file to an RDKit mol object

xyz2mol has now been implented in RDKit

raw_mol = Chem.MolFromXYZFile('acetate.xyz')
mol = Chem.Mol(raw_mol)
rdDetermineBonds.DetermineBonds(mol,charge=-1)

Convert Cartesian coordinates to one or more molecular graphs

Given Cartesian coordinates in the form of a .xyz file, the code constructs a list of one or more molecular graphs. In cases where there are several possible resonance forms xyz2mol returns a list of all, otherwise just a list of one.

This code is based on the work of DOI: 10.1002/bkcs.10334

Yeonjoon Kim and Woo Youn Kim
"Universal Structure Conversion Method for Organic Molecules:
From Atomic Connectivity to Three-Dimensional Geometry"
Bull. Korean Chem. Soc.
2015, Vol. 36, 1769-1777

Setup

Depends on rdkit, numpy, and networkx. Easiest to setup via anaconda/conda:

conda install -c conda-forge xyz2mol

Setup for a standalone enviroment is avaliable via Makefile. To setup and test simply clone the project and make.

git clone https://github.com/jensengroup/xyz2mol

and then run the following the the xyz2mol folder

make
make test

Note, it is also possible to run the code without the networkx dependencies, but is slower.

Example usage

Read in xyz file and print out the SMILES, but don't incode the chirality.

xyz2mol.py examples/chiral_stereo_test.xyz --ignore-chiral

Read in xyz file and print out the SDF format, save it in a file

xyz2mol.py examples/chiral_stereo_test.xyz -o sdf > save_file.sdf

Read in xyz file with a charge and print out the SMILES

xyz2mol.py examples/acetate.xyz --charge -1

Dependencies:

rdkit # (version 2019.9.1 or later needed for huckel option)
networkx

More Repositories

1

propka

PROPKA predicts the pKa values of ionizable groups in proteins and protein-ligand complexes based in the 3D structure.
Python
259
star
2

molcalc

MolCalc is a web interface that allows anyone to build molecules and calculate molecular properties online
HTML
73
star
3

GB_GA

Graph-based genetic algorithm
Python
68
star
4

GB-GM

Graph-based generative model
Python
19
star
5

protonator

Quick and dirty protonation
Jupyter Notebook
15
star
6

fragbuilder

fragbuilder is a tool to create, setup and analyze QM calculations on peptides.
Python
14
star
7

atom_mapper

Atom order in one molecule is made to match that in another
Python
10
star
8

RegioSQM

See http://dx.doi.org/10.1039/C7SC04156J for more details
Python
9
star
9

compute_pka

Computes apparent pKa values from QM dat
Python
8
star
10

FP_RF_XAI

Jupyter Notebook
8
star
11

molstat

Molecular Statistics
TeX
8
star
12

take_elementary_step

Python
8
star
13

propka-3.0

PROPKA predicts the pKa values of ionizable groups in proteins based in the 3D structure.
Python
7
star
14

mol_gen

Molecule generation and optimization
Python
7
star
15

String-GA

String-based genetic algorithm
Python
6
star
16

GA_ChemSpace_exploration

Jupyter Notebook
6
star
17

mbh_catalyst_ga

Catalyst design for the Morita−Baylis−Hillman Reaction using a graph-based genetic algorithm
Python
6
star
18

get_conformations

generate molecular conformations
Python
6
star
19

RegioML

RegioML predicts the regioselectivity of electrophilic aromatic substitution reactions using machine learning.
Python
5
star
20

AutomatedReactionsMetaMD

Python
4
star
21

RegioSQM20

RegioSQM20 predicts the regioselectivity of electrophilic aromatic substitution reactions in heteroaromatic systems.
Python
4
star
22

ReactionDiscovery

Python
4
star
23

dha_htvs

Jupyter Notebook
4
star
24

molget

Generates molecular coordinates from chemical name using Babel and Cactus
Shell
4
star
25

HeckQM

A QM-based workflow for determining the regioselectivity of palladium-catalyzed Heck reactions.
Jupyter Notebook
4
star
26

procs

A Protein Chemical Shift Predictor
Python
3
star
27

smiles2coord

bash script to get coordinates from SMILES and Cactus.
Shell
3
star
28

TS_conf_search

Conformer search for transition states
Python
3
star
29

molcalc-1.3

MolCalc version 1.3 (php)
JavaScript
3
star
30

db-enzymes

Database of reaction barriers in proteins with structures
Python
3
star
31

statsig

Determination of statistical significance using composite errors
Python
3
star
32

fragreact

Molecular reaction fragmentation scheme towards improving the accuracy of enthalpy calculation
Python
3
star
33

MBH_CatalystDiscovery

Jupyter Notebook
2
star
34

procs15

DFT-based chemical shift predictor
C++
2
star
35

SI_RegioSQM20

Jupyter Notebook
2
star
36

protonate

Python
2
star
37

RMSD_PP_TS

Locate TS based on RMSD-PP method
Python
2
star
38

optimized-protein-structures

Collection of optimized protein structures
2
star
39

CHSQM

Prediction of labile carbon hydrogens using semiempirical methods
Python
2
star
40

xtb_gaussian

Python
1
star
41

GED

Computes the graph edit distance between 2 graphs using RDKit and Networkx
Python
1
star
42

rdkit_qm_utilities

Python
1
star
43

prohxms

Simple Protein HXMS prediction frame work with BioPython.
Python
1
star
44

find_heteroaromatic_rings

Python/RDKit script that finds unique heteroaromatic rings in a list of SMILES strings
Python
1
star
45

db-regioselectivity

A database of compounds and their regioselective products
TeX
1
star
46

procs-phaistos

ProCS amide proton chemical shift predictor module for Phaistos
C++
1
star
47

xyz2sdf

Python
1
star
48

hydrogen-bond-correction-f3

Third-Generation Hydrogen-Bonding Corrections for Semiempirical QM Methods and Force Fields
Fortran
1
star
49

camshift-phaistos

PHAISTOS module containing an implementation of the CamShift chemical shift predictor
C++
1
star
50

GA_schrock

Genetic algorithm for evolution of the Schrock catalyst.
Python
1
star