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
1203893a
Commit
1203893a
authored
1 year ago
by
Fabien MAREUIL
Browse files
Options
Downloads
Patches
Plain Diff
black format
parent
67a93628
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!65
update release (ippidb prod)
Pipeline
#128300
failed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/views/targetcentric.py
+12
-12
12 additions, 12 deletions
ippisite/ippidb/views/targetcentric.py
with
12 additions
and
12 deletions
ippisite/ippidb/views/targetcentric.py
+
12
−
12
View file @
1203893a
...
@@ -585,17 +585,17 @@ class SummaryView(TemplateView):
...
@@ -585,17 +585,17 @@ class SummaryView(TemplateView):
def
about_pi_general
(
request
):
def
about_pi_general
(
request
):
context
=
{}
context
=
{}
cavitiescount
=
Cavity
.
objects
.
all
().
count
()
cavitiescount
=
Cavity
.
objects
.
all
().
count
()
proteincount
=
(
proteincount
=
Chain
.
objects
.
all
().
values
(
"
protein__uniprot_id
"
).
distinct
().
count
()
Chain
.
objects
.
all
().
values
(
"
protein__uniprot_id
"
).
distinct
().
count
()
)
organismcount
=
(
organismcount
=
(
Chain
.
objects
.
all
().
values
(
"
protein__organism__name
"
).
distinct
().
count
()
Chain
.
objects
.
all
().
values
(
"
protein__organism__name
"
).
distinct
().
count
()
)
)
orthocount
=
Cavity
.
objects
.
filter
(
type
=
'
orthosteric
'
).
count
()
orthocount
=
Cavity
.
objects
.
filter
(
type
=
"
orthosteric
"
).
count
()
allostcount
=
Cavity
.
objects
.
filter
(
type
=
'
liganded_allosteric
'
).
count
()
allostcount
=
Cavity
.
objects
.
filter
(
type
=
"
liganded_allosteric
"
).
count
()
ortho_comp
=
Cavity
.
objects
.
filter
(
type
=
'
liganded_orthosteric_competitive
'
).
count
()
ortho_comp
=
Cavity
.
objects
.
filter
(
type
=
"
liganded_orthosteric_competitive
"
).
count
()
ortho_nocomp
=
Cavity
.
objects
.
filter
(
type
=
'
liganded_orthosteric_noncompetitive
'
).
count
()
ortho_nocomp
=
Cavity
.
objects
.
filter
(
type
=
"
liganded_orthosteric_noncompetitive
"
).
count
()
context
[
"
cavitiescount
"
]
=
cavitiescount
context
[
"
cavitiescount
"
]
=
cavitiescount
context
[
"
proteincount
"
]
=
proteincount
context
[
"
proteincount
"
]
=
proteincount
context
[
"
organismcount
"
]
=
organismcount
context
[
"
organismcount
"
]
=
organismcount
...
@@ -603,5 +603,5 @@ def about_pi_general(request):
...
@@ -603,5 +603,5 @@ def about_pi_general(request):
context
[
"
allostcount
"
]
=
allostcount
context
[
"
allostcount
"
]
=
allostcount
context
[
"
ortho_comp
"
]
=
ortho_comp
context
[
"
ortho_comp
"
]
=
ortho_comp
context
[
"
ortho_nocomp
"
]
=
ortho_nocomp
context
[
"
ortho_nocomp
"
]
=
ortho_nocomp
return
render
(
request
,
"
about-pie.html
"
,
context
=
context
)
return
render
(
request
,
"
about-pie.html
"
,
context
=
context
)
\ No newline at end of file
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