cadd-synthetic / GASA

Synthetic Accessible Prediction of Organic Compounds based on Graph Attention Mechanism
GNU General Public License v2.0
20 stars 7 forks source link

GASA: Synthetic Accessibility Prediction of Organic Compounds based on Graph Attention Mechanism

Description

Use in Python

from gasa import GASA 
smiles = 'NC(=O)OC[C@H](N)CC1=CC=CC=C1' 
predict, pos, neg = GASA(smiles) 
print(predict, pos, neg) 
[0] [0.8078028559684753] [0.19219708442687988] 

df = pd.read_csv('./test.csv')
smiles = list(df['smiles'])
print(smiles)
[CCOC(=O)c1c(NC(C)=O)sc2c1CCN(Cc1ccccc1)C2,
CCOC(=O)c1ccc2[nH]c(-c3ccc(C)cc3)nc2c1,
CCc1[nH]cc2c1c(CO)cc1nc[nH]c12,
CC1=C(C)C2(CC2)C(C(C)(C)C(C)(C)[NH3+])C1]

predict, pos, neg = GASA(smiles)
print(predict, pos, neg) 
[0, 0, 1, 1]
[0.9403825402259827, 0.8335544466972351, 0.19376544654369354, 0.1610676646232605]
[0.05961743742227554, 0.1664455384016037, 0.8062344789505005, 0.8389323353767395]

The structure of the code is as follows:

In data:

In model:

Outside:

Citation

Jiahui Yu; Jike Wang; Hong Zhao; Junbo Gao; Yu Kang; Dongsheng Cao; Zhe Wang; Tingjun Hou. Synthetic Accessibility Prediction of Organic Compounds Based on the Graph Attention Mechanism. J. Chem. Inf. Model. 2022
https://doi.org/10.1021/acs.jcim.2c00038