Skip to content

Commit

Permalink
keep working
Browse files Browse the repository at this point in the history
  • Loading branch information
SalvadorBrandolin committed Sep 28, 2023
1 parent d9771d3 commit 5bd9af6
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 1 deletion.
88 changes: 88 additions & 0 deletions coso.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from rdkit import Chem\n",
"\n",
"from ugropy import Groups"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
"a = Groups(\"2-propanol\")"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"()"
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.chem_object.GetSubstructMatches(\n",
" Chem.MolFromSmarts(\"[$([OH][CH]([#6])[#6]),[$([OH][CH0]([#6])([#6])[!#6])]\")\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'CH3': 1, 'CH2': 2, 'OH': 1}"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.psrk_groups"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "ugropy",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
2 changes: 1 addition & 1 deletion ugropy/groupscsv/dortmund/dortmund_subgroups.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AC|[cH0](a)(a)(*)|"{""AC"": 1}"|n|10|3|0.3763|0.2113|12.011
ACCH3|[c][CX4H3]|"{""ACCH3"": 1, ""CH3"": -1, ""AC"": -1}"|y|11|4|0.91|0.949|27.046
ACCH2|[c][CX4H2]|"{""ACCH2"": 1, ""CH2"": -1, ""AC"": -1}"|y|12|4|0.91|0.7962|26.038
ACCH|[c][CX4H]|"{""ACCH"": 1, ""CH"": -1, ""AC"": -1}"|y|13|4|0.91|0.3769|25.03
OH (P)||||14|5|1.2302|0.8927|
OH (P)|[OH]|||14|5|1.2302|0.8927|
CH3OH|[CH3][OH]|"{""CH3OH"": 1, ""CH3"": -1, ""OH"": -1}"|n|15|6|0.8585|0.9938|32.042
H2O|[OH2]|"{""H2O"": 1}"|n|16|7|1.7334|2.4561|18.015
ACOH|[cH0][OH]|"{""ACOH"": 1, ""OH"": -1, ""AC"": -1}"|y|17|8|1.08|0.975|29.018
Expand Down

0 comments on commit 5bd9af6

Please sign in to comment.