Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
2e8935e4
Commit
2e8935e4
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
enable listing and displaying PPI families for a compound
Former-commit-id: 8e38acc04f6bb2e703791158b930ee6699e18fec
parent
f655abd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ippisite/ippidb/models.py
+7
-0
7 additions, 0 deletions
ippisite/ippidb/models.py
ippisite/ippidb/templates/compound_v_item.html
+1
-1
1 addition, 1 deletion
ippisite/ippidb/templates/compound_v_item.html
with
8 additions
and
1 deletion
ippisite/ippidb/models.py
+
7
−
0
View file @
2e8935e4
...
@@ -471,6 +471,13 @@ class Compound(models.Model):
...
@@ -471,6 +471,13 @@ class Compound(models.Model):
"""
"""
return
self
.
compoundactivityresult_set
.
all
().
filter
(
test_activity_description__test_type
=
'
CELL
'
).
count
()
return
self
.
compoundactivityresult_set
.
all
().
filter
(
test_activity_description__test_type
=
'
CELL
'
).
count
()
@property
def
families
(
self
):
"""
return the all PPI families for PPIs involved in the compound activity of the compound
"""
return
list
(
set
([
ca
.
ppi
.
family
for
ca
in
self
.
compoundaction_set
.
all
()]))
class
LeLleBiplotData
(
models
.
Model
):
class
LeLleBiplotData
(
models
.
Model
):
le_lle_biplot_data
=
models
.
CharField
(
'
LE-LLE biplot JSON data
'
,
max_length
=
150000
,
blank
=
True
,
null
=
True
)
le_lle_biplot_data
=
models
.
CharField
(
'
LE-LLE biplot JSON data
'
,
max_length
=
150000
,
blank
=
True
,
null
=
True
)
...
...
This diff is collapsed.
Click to expand it.
ippisite/ippidb/templates/compound_v_item.html
+
1
−
1
View file @
2e8935e4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<a
href=
"/compound/{{ compound.id }}"
>
{% include "pubchem_img.html" %}
</a>
<a
href=
"/compound/{{ compound.id }}"
>
{% include "pubchem_img.html" %}
</a>
<div
class=
"card-body"
style=
"overflow:hidden; word-wrap:break-word;"
>
<div
class=
"card-body"
style=
"overflow:hidden; word-wrap:break-word;"
>
<span
class=
"badge badge-dark"
><a
href=
"/compound/{{ compound.id }}"
>
{{ compound.id }}
</a></span>
<span
class=
"badge badge-dark"
><a
href=
"/compound/{{ compound.id }}"
>
{{ compound.id }}
</a></span>
<p>
{% for
p
fam
_id
in compound.
p
fam
_id
s %}{{
p
fam
_id
}}{% endfor %}
</p>
<p>
{% for fam
ily
in compound.fam
ilie
s %}{{ fam
ily.name
}}{% endfor %}
</p>
<p>
Molecular Weight: {{ compound.molecular_weight }} g/mol
</p>
<p>
Molecular Weight: {{ compound.molecular_weight }} g/mol
</p>
</div>
</div>
</div>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
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