Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
c56d91b5
Commit
c56d91b5
authored
5 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
change labels for pIC50, pEC50 etc. to IC50, EC50
FIX #200
parent
4f763df5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!13
Master
Pipeline
#28690
passed
5 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/forms.py
+10
-0
10 additions, 0 deletions
ippisite/ippidb/forms.py
with
10 additions
and
0 deletions
ippisite/ippidb/forms.py
+
10
−
0
View file @
c56d91b5
...
...
@@ -937,10 +937,20 @@ class CompoundActivityResultForm(ModelForm):
class
CompoundActivityResultBaseInlineNestedFormSet
(
BaseInlineNestedFormSet
):
__compound_names
=
[]
# pIC50, pEC50, etc. activity types are labelled below as IC50, EC50, etc.
# specifically because the user enters them in these forms as the former
# value but they are converted to and stored in the latter.
__activity_types
=
[
(
"
pIC50
"
,
"
IC50 (half maximal inhibitory concentration)
"
),
(
"
pEC50
"
,
"
EC50 (half maximal effective concentration)
"
),
(
"
pKd
"
,
"
Kd (dissociation constant)
"
),
(
"
pKi
"
,
"
Ki (inhibition constant)
"
),
]
def
add_fields
(
self
,
form
,
index
):
super
().
add_fields
(
form
,
index
)
form
.
fields
[
"
compound_name
"
].
choices
=
self
.
__compound_names
form
.
fields
[
"
activity_type
"
].
choices
=
self
.
__activity_types
def
set_modulation_type
(
self
,
modulation_type
):
for
form
in
self
.
forms
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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