Skip to content

Instantly share code, notes, and snippets.

View kzfm's full-sized avatar
🏠
Working from home

Kazufumi Ohkawa kzfm

🏠
Working from home
View GitHub Profile
@kzfm
kzfm / recap.py
Created August 20, 2012 08:19 — forked from anonymous/recap.py
import openbabel
# Copyright 2009 TJ O'Donnell
class recap:
# RECAP-Retrosynthetic Combinatorial Analysis Procedure
# J. Chem. Inf. Comput. Sci. 1998, 38, 511-522
def __init__(self, mol, minsize=5):
self.mol = mol;
# minimum allowed size (atom count) of fragment
self.minsize = minsize;
# bonded atom pairs populated by the apply method,