Commit 6747635a authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

glabalstat first commit

parent 9da35b89
Pipeline #45082 failed with stages
in 9 minutes and 50 seconds
......@@ -41,6 +41,9 @@
<a href="{% url 'networks' %}"><strong>See the complete cavities network</strong></a>
<a href="{% url 'globalstat' %}"><strong>See the global cavities space</strong></a>
<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 %}
<a href="{% url 'globalstat' %}"><strong>See the global cavities space</strong></a>
<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"),
......@@ -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 (
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment