From 426d6e460b36690e8fbbc0d09ad34e7bacade61a Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 17 Oct 2020 18:22:35 +0530 Subject: added Molecule Properties and Alerts --- app/misc.ini | 13 ++++- app/templates/base.html | 9 ++++ app/templates/home.html | 10 +++- app/templates/mol-characteristics.html | 66 +++++++++++++++++++++++++ app/views.py | 90 +++++++++++++++++++++++++++++++++- 5 files changed, 184 insertions(+), 4 deletions(-) create mode 100644 app/templates/mol-characteristics.html diff --git a/app/misc.ini b/app/misc.ini index c474556..9587e56 100644 --- a/app/misc.ini +++ b/app/misc.ini @@ -13,4 +13,15 @@ DB02 = Unknown Hostname, failed to connect to the database. CW01 = Looks like an invalid PDB ID -PC00 = Could not find any compound on PubChem matching the query. \ No newline at end of file +PC00 = Could not find any compound on PubChem matching the query. + +RD00 = Failed to import RDKit. +RD01 = Could not convert SMILES to molecule, please check the SMILES + +[ALERT_SMARTS] +ESTER = [#6][CX3](=O)[OX2H0][#6] +ANILINE = [NX3][$(C=C),$(cc)] + +[ALERT_DESCRIPTION] +ESTER = The given compound contains Ester. For more details read the paper. +ANILINE = None \ No newline at end of file diff --git a/app/templates/base.html b/app/templates/base.html index e4ae447..0936f80 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -29,6 +29,15 @@
  • About
  • +