Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
0880187d
Commit
0880187d
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add computing of LE and LLE in Compound
Former-commit-id: b1a17d4f65dc933c11891cee60d91e12334e41be
parent
a663f6d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/models.py
+15
-0
15 additions, 0 deletions
ippisite/ippidb/models.py
with
15 additions
and
0 deletions
ippisite/ippidb/models.py
+
15
−
0
View file @
0880187d
...
...
@@ -2,6 +2,7 @@ from __future__ import unicode_literals
from
django.db
import
models
from
django_pandas.managers
import
DataFrameManager
from
django.db.models
import
Max
from
.ws
import
get_pubmed_info
,
get_epo_info
,
get_uniprot_info
,
get_taxonomy_info
,
get_go_info
,
get_pfam_info
...
...
@@ -407,6 +408,20 @@ class Compound(models.Model):
def
pfizer_global
(
self
):
return
self
.
pfizer_a_log_p
and
self
.
pfizer_tpsa
@property
def
le
(
self
):
"""
LE: Ligand Efficiency
"""
return
(
1.37
*
float
(
self
.
compoundactivityresult_set
.
aggregate
(
Max
(
'
activity
'
))[
'
activity__max
'
]))
/
self
.
nb_atom_non_h
@property
def
lle
(
self
):
"""
LLE: Lipophilic Efficiency
"""
return
float
(
self
.
compoundactivityresult_set
.
aggregate
(
Max
(
'
activity
'
))[
'
activity__max
'
]
-
self
.
a_log_p
)
class
MDDRActivityClass
(
models
.
Model
):
name
=
models
.
CharField
(
'
Activity Class
'
,
max_length
=
100
,
unique
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment