Skip to content
Snippets Groups Projects
Commit 6747635a authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

glabalstat first commit

parent 9da35b89
No related branches found
No related tags found
No related merge requests found
Pipeline #45082 failed
......@@ -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">
......
......@@ -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">
......
......@@ -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(
......
......@@ -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,
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment