Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
6747635a
Commit
6747635a
authored
Jan 11, 2021
by
Fabien MAREUIL
Browse files
glabalstat first commit
parent
9da35b89
Pipeline
#45082
failed with stages
in 9 minutes and 50 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/templates/targetcentric.html
View file @
6747635a
...
...
@@ -41,6 +41,9 @@
<div>
<a
href=
"{% url 'networks' %}"
><strong>
See the complete cavities network
</strong></a>
</div>
<div>
<a
href=
"{% url 'globalstat' %}"
><strong>
See the global cavities space
</strong></a>
</div>
<div
class=
"card"
>
<div
id=
"accordion"
>
<div
class=
"card"
>
...
...
ippisite/ippidb/templates/targetcentric_networks.html
View file @
6747635a
...
...
@@ -16,6 +16,9 @@
{% block breadcrumb %}
<a
href=
"{% url 'networks' %}"
class=
"breadNav-link"
>
Query cavities
</a>
> Cavity {% endblock %}
</div>
</nav>
<div>
<a
href=
"{% url 'globalstat' %}"
><strong>
See the global cavities space
</strong></a>
</div>
<div
class=
"card"
>
<div
class=
"input-group"
>
<div
class=
"btn-group mr-3"
>
...
...
ippisite/ippidb/urls.py
View file @
6747635a
...
...
@@ -27,6 +27,7 @@ urlpatterns = [
url
(
r
"^about-pca/$"
,
views
.
about_pca
,
name
=
"pca"
),
url
(
r
"^targetcentric/$"
,
views
.
PDBView
.
as_view
(),
name
=
"cavities"
),
url
(
r
"^targetcentric/networks$"
,
views
.
NetworkView
.
as_view
(),
name
=
"networks"
),
url
(
r
"^targetcentric/globalstat$"
,
views
.
GlobalTargetCentricView
.
as_view
(),
name
=
"globalstat"
),
url
(
r
"^api/"
,
include
(
ROUTER
.
urls
)),
url
(
r
"^compounds/$"
,
views
.
CompoundListView
.
as_view
(),
name
=
"compound_list"
),
url
(
...
...
ippisite/ippidb/views/__init__.py
View file @
6747635a
...
...
@@ -11,7 +11,7 @@ iPPI-DB views
"""
from
django.contrib.auth.decorators
import
login_required
from
django.shortcuts
import
render
from
.targetcentric
import
PdbViewSet
,
DistanceViewSet
,
PDBView
,
NetworkView
from
.targetcentric
import
PdbViewSet
,
DistanceViewSet
,
PDBView
,
NetworkView
,
GlobalTargetCentricView
from
.contribute
import
ippidb_wizard_view
,
admin_session_view
from
.compound_query
import
(
CompoundListView
,
...
...
ippisite/ippidb/views/targetcentric.py
View file @
6747635a
...
...
@@ -4,7 +4,7 @@ iPPI-DB targetcentric views and related classes
from
itertools
import
product
from
functools
import
reduce
from
operator
import
add
from
django.views.generic
import
ListView
from
django.views.generic
import
ListView
,
TemplateView
from
django.contrib
import
messages
from
django.db.models
import
Case
,
When
,
Value
,
IntegerField
,
F
,
Q
from
rest_framework
import
viewsets
...
...
@@ -305,3 +305,10 @@ class NetworkView(ListView):
def
get_queryset
(
self
):
queryset
=
self
.
model
.
objects
.
all
()
return
queryset
.
order_by
(
"number"
)
class
GlobalTargetCentricView
(
TemplateView
):
"""
Global informations on cavities
"""
template_name
=
"targetcentric_global.html"
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment