Skip to content

Commit

Permalink
building secondary structures of CG
Browse files Browse the repository at this point in the history
  • Loading branch information
SalvadorBrandolin committed Apr 22, 2024
1 parent 0e90e02 commit 73f9919
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 4 deletions.
44 changes: 44 additions & 0 deletions reminder.md
Original file line number Diff line number Diff line change
@@ -1 +1,45 @@
Constantinou Gani secondary test:

CHn=CHm-CHp=CHk
---------------
CH0=CH0-CH0=CH0|[CH0]=[CH0]-[CH0]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH0=CH1-CH1=CH0|[CH0]=[CH1]-[CH1]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH0=CH0-CH1=CH0|[CH0]=[CH0]-[CH1]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH1=CH0-CH0=CH0|[CH1]=[CH0]-[CH0]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH1=CH1-CH1=CH0|[CH1]=[CH1]-[CH1]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH1=CH0-CH1=CH0|[CH1]=[CH0]-[CH1]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH1=CH1-CH0=CH0|[CH1]=[CH1]-[CH0]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH0-CH0=CH0|[CH2]=[CH0]-[CH0]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH1-CH1=CH0|[CH2]=[CH1]-[CH1]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH0-CH1=CH0|[CH2]=[CH0]-[CH1]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH1-CH0=CH0|[CH2]=[CH1]-[CH0]=[CH0]|""{"CHn=CHm-CHp=CHk": 1}""
CH1=CH0-CH0=CH1|[CH1]=[CH0]-[CH0]=[CH1]|""{"CHn=CHm-CHp=CHk": 1}""
CH1=CH1-CH1=CH1|[CH1]=[CH1]-[CH1]=[CH1]|""{"CHn=CHm-CHp=CHk": 1}""
CH1=CH0-CH1=CH1|[CH1]=[CH0]-[CH1]=[CH1]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH0-CH0=CH1|[CH2]=[CH0]-[CH0]=[CH1]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH1-CH1=CH1|[CH2]=[CH1]-[CH1]=[CH1]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH0-CH1=CH1|[CH2]=[CH0]-[CH1]=[CH1]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH1-CH0=CH1|[CH2]=[CH1]-[CH0]=[CH1]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH0-CH0=CH2|[CH2]=[CH0]-[CH0]=[CH2]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH1-CH1=CH2|[CH2]=[CH1]-[CH1]=[CH2]|""{"CHn=CHm-CHp=CHk": 1}""
CH2=CH0-CH1=CH2|[CH2]=[CH0]-[CH1]=[CH2]|""{"CHn=CHm-CHp=CHk": 1}""


CH3-CHm=CHn
-----------
CH3-CH0=CH0
CH3-CH0=CH1
CH3-CH0=CH2
CH3-CH1=CH0
CH3-CH1=CH1
CH3-CH1=CH2


CH2-CHm=CHn
-----------
CH2-CH0=CH0
CH2-CH0=CH1
CH2-CH0=CH2
CH2-CH1=CH0
CH2-CH1=CH1
CH2-CH1=CH2
8 changes: 4 additions & 4 deletions ugropy/fragmentation_models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def _rd(file_path: str, index_col: str = None) -> pd.DataFrame:
# Primary structures
_cg = f"{_csvs}/constantinou_gani"

_cg_sg = _rd(f"{_cg}/c_g_prymary_subgroups.csv", "group")
_cg_problems = _rd(f"{_cg}/cg_problematics.csv", "smarts")
_cg_hide = _rd(f"{_cg}/hideouts.csv", "group")
_cg_props = _rd(f"{_cg}/properties_prymary_contrib.csv", "group")
_cg_sg = _rd(f"{_cg}/primary/c_g_prymary_subgroups.csv", "group")
_cg_problems = _rd(f"{_cg}/primary/cg_problematics.csv", "smarts")
_cg_hide = _rd(f"{_cg}/primary/hideouts.csv", "group")
_cg_props = _rd(f"{_cg}/primary/properties_prymary_contrib.csv", "group")

constantinou_gani_primary = PropertiesEstimator(
subgroups=_cg_sg,
Expand Down
16 changes: 16 additions & 0 deletions ugropy/groupscsv/constantinou_gani/secondary/structures.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
group|smarts|contribute
(CH3)2CH|[CH]([CH3])[CH3]|""{"(CH3)2CH": 1}"
(CH3)3C|[CH0]([CH3])([CH3])[CH3]|""{"(CH3)3C": 1}"
CH(CH3)CH(CH3)|[CH]([CH3])[CH]([CH3])|""{"CH(CH3)CH(CH3)": 1}"
CH(CH3)C(CH3)2|[CH]([CH3])[CH0]([CH3])([CH3])|""{"CH(CH3)C(CH3)2": 1}"
C(CH3)2C(CH3)2|[CH0]([CH3])([CH3])[CH0]([CH3])([CH3])|""{"C(CH3)2C(CH3)2": 1}"
3 membered ring|[C;R]1[C;R][C;R]1|""{"3 membered ring": 1}"
4 membered ring|[C;R]1[C;R][C;R][C;R]1|""{"4 membered ring": 1}"
5 membered ring|[C;R]1[C;R][C;R][C;R][C;R]1|""{"5 membered ring": 1}"
6 membered ring|[C;R]1[C;R][C;R][C;R][C;R][C;R]1|""{"6 membered ring": 1}"
7 membered ring|[C;R]1[C;R][C;R][C;R][C;R][C;R][C;R]1|""{"7 membered ring": 1}"
CHn=CHm-CHp=CHk|[C]=[C]-[C]=[C]|""{"CHn=CHm-CHp=CHk": 1}""
CH3-CHm=CHn|[CH3]-[C]=[C]|""{"CH3-CHm=CHn": 1}""
CH2-CHm=CHn|[CH2]-[C]=[C]|""{"CH2-CHm=CHn": 1}""
CH-CHm=CHn|[CH1]-[C]=[C]|""{"CH-CHm=CHn": 1}""
C-CHm=CHn|[CH0]-[C]=[C]|""{"C-CHm=CHn": 1}""

0 comments on commit 73f9919

Please sign in to comment.