You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"<a href=\"https://colab.research.google.com/github/Bio2Byte/public_notebooks/blob/main/ACPype_API_Reference.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
34
+
]
35
+
},
36
+
{
37
+
"cell_type": "markdown",
38
+
"source": [
39
+
"# ACPYPE API Reference\n",
40
+
"\n",
41
+
"[ACPYPE](https://bio2byte.be/acpype/) provides a user-friendly HTTP API that allows users to submit molecules in a variety of formats for processing using the ACPYPE software.\n",
42
+
"\n",
43
+
"Our API enables users to specify a wide range of options for processing, including charge method, net charge, and atom type.\n",
44
+
"\n",
45
+
"After submitting their molecule, users can query the result files generated by ACPYPE in the background using a simple hash ID.\n",
"The ACPYPE Portal was designed to generate topology parameters files for unusual organic chemical compounds. It is based on ANTECHAMBER and so far, ACPYPE is able to work for CNS/XPLOR, GROMACS, CHARMM and AMBER.\n",
52
+
"\n",
53
+
"The main scope for ACPYPE Server is to help to pave the way for automatic molecular dynamics simulations involving molecules with unknown parameters, like for example, in complexes of protein and inhibitor, where the ligand is usually an unusual chemical compound.\n",
54
+
"\n",
55
+
"ACPYPE stands for AnteChamber PYthon Parser interfacE and is pronounced \"ace + pipe\".\n",
56
+
"\n",
57
+
"### What the ACPYPE Server does\n",
58
+
"It will take either a SMILES input or files in format PDB, MDL or MOL2 of a small organic molecule without open valence and assign charges and force field parameterizations according to GAFF (Generalised Amber Force Field). There are some options that can be applied to a submitting project.\n",
59
+
"For charge, there are three methods:\n",
60
+
"\n",
61
+
"bcc: for semi-epirical AM1-BCC, parameterized to reproduce HF/6- 31G* RESP charges; slow, but with good cost/benefit (default)\n",
62
+
"Gasteiger method, very fast but less accurate\n",
63
+
"user: for a MOL2 file with charges already calculated, via, e.g., R.E.D.-III\n",
64
+
"For net charge, set a integer value for the project, or let ACPYPE guess the net charge for the molecule.\n",
65
+
"For atom type, set GAFF (default), GAFF2 or AMBER. If set AMBER, ACPYPE/antechamber will try to set parameters and atom types according to AMBER14SB forcefield. Case it fails, GAFF parameters (but with AMBER atom types) will be used.\n",
66
+
"\n",
67
+
"### What the ACPYPE Server doesn't do\n",
68
+
"It will not work with organic molecule with open valences; containing others atoms than C, N, O, S, P, H, F, Cl, Br and I; or covalently bonded to another molecule. If one wants parameters for a modified amino acid residue, one way of getting it is by neutralising the N- and C- termini and then fit manually the additional parameters to the modified residue.\n",
69
+
"\n",
70
+
"### Citations\n",
71
+
"If you use this resource, please cite:\n",
72
+
"\n",
73
+
"> SOUSA DA SILVA, A. W. & VRANKEN, W. F. ACPYPE - AnteChamber PYthon Parser interfacE. BMC Research Notes 2012, 5:367\n",
74
+
"KAGAMI, L. P., SOUSA DA SILVA, A. W., DÍAZ, A., & VRANKEN, W. F. The ACPYPE web server for small molecule MD topology generation. Manuscript submitted.\n",
75
+
"If you use non-uniform 1-4 scale factor conversion (e.g. if using GLYCAM06), please cite:\n",
76
+
"\n",
77
+
"> BERNARDI, A., FALLER, R., REITH, D., and KIRSCHNER, K. N. ACPYPE update for nonuniform 1-4 scale factors: Conversion of the GLYCAM06 force field from AMBER to GROMACS. SoftwareX 10 (2019), 100241.\n",
78
+
"\n",
79
+
"### Disclaimer\n",
80
+
"This service is provided with ABSOLUTELY NO WARRANTY and holds no liabilities. If you decide to use it, bear in mind that your data and potential results are not stored with encryption, and the service administration has access to it. Furthermore, the data and results will be eventually removed after two weeks from the time of submission, whether your job has finished or not."
81
+
],
82
+
"metadata": {
83
+
"id": "Sd18WMA-LMw6"
84
+
}
85
+
},
86
+
{
87
+
"cell_type": "markdown",
88
+
"source": [
89
+
"## Submitting a ligand\n",
90
+
"Depending on your input, please execute one of the two available scenarios."
91
+
],
92
+
"metadata": {
93
+
"id": "URKKUNUuLWlq"
94
+
}
95
+
},
96
+
{
97
+
"cell_type": "code",
98
+
"execution_count": null,
99
+
"metadata": {
100
+
"id": "A4XSVcRrLMHv"
101
+
},
102
+
"outputs": [],
103
+
"source": [
104
+
"# Import the necessary libraries\n",
105
+
"import json\n",
106
+
"import requests"
107
+
]
108
+
},
109
+
{
110
+
"cell_type": "code",
111
+
"source": [
112
+
"location = None\n",
113
+
"hash_id = None"
114
+
],
115
+
"metadata": {
116
+
"id": "8ZCpOe2ndTDf"
117
+
},
118
+
"execution_count": null,
119
+
"outputs": []
120
+
},
121
+
{
122
+
"cell_type": "markdown",
123
+
"source": [
124
+
"### Scenario A: Using SMILES representation"
125
+
],
126
+
"metadata": {
127
+
"id": "42Dx-W2PhNvX"
128
+
}
129
+
},
130
+
{
131
+
"cell_type": "code",
132
+
"source": [
133
+
"url = \"https://bio2byte.be/acs/api\"\n",
134
+
"print(\"POST\", url)\n",
135
+
"\n",
136
+
"# Define request payload\n",
137
+
"payload = {\n",
138
+
"\"inputFile\": None,\n",
139
+
"\"file_name\": \"OXYGEN_FROM_API\",\n",
140
+
"\"token\": \"RTV5GZHc5M\",\n",
141
+
"\"charge_method\": \"bbc\",\n",
142
+
"\"net_charge\": None,\n",
143
+
"\"atom_type\": \"gaff\",\n",
144
+
"\"email\": None,\n",
145
+
"\"smiles\": \"O\"\n",
146
+
"}\n",
147
+
"\n",
148
+
"# Send POST request\n",
149
+
"response = requests.post(url, json=payload)\n",
150
+
"\n",
151
+
"# Process the response\n",
152
+
"if response.status_code > 200 and response.status_code < 300:\n",
0 commit comments