Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
255650ad
Commit
255650ad
authored
Oct 11, 2021
by
carlosribas
Browse files
Update interactions section
parent
f4fa192c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
rnacentral/portal/templates/portal/sequence.html
rnacentral/portal/templates/portal/sequence.html
+7
-3
rnacentral/portal/views.py
rnacentral/portal/views.py
+13
-1
No files found.
rnacentral/portal/templates/portal/sequence.html
View file @
255650ad
...
...
@@ -142,19 +142,23 @@ limitations under the License.
</small>
</h2>
<p>
According to
<a
href=
"https://www.ebi.ac.uk/intact"
target=
"_blank"
>
I
nt
A
ct
</a>
, {{ context.precomputed.description }} interacts with:
According to
{% if context.intact_name == 'PSICQUIC' %}
<a
href=
"http://www.ebi.ac.uk/Tools/webservices/psicquic/view/home.xhtml"
target=
"_blank"
>
{{ context.intact_name }}
</a>
{% else %}
<a
href=
"https://www.ebi.ac.uk/intact"
target=
"_blank"
>
{{ context.i
nt
a
ct
_name }}
</a>
{% endif %}
, {{ context.precomputed.description }} interacts with:
</p>
<div
style=
"overflow-y: auto; max-height: 200px;"
class=
"force-scrollbars"
>
<table
class=
"table table-condensed table-hover table-responsive"
style=
"margin-left: 10px; width: 95%;"
>
<thead>
<th>
Int
Act ID
</th>
<th>
Int
eraction id
</th>
<th>
Participant
</th>
<th>
Synonyms
</th>
</thead>
{% for interaction in context.intact %}
<tr>
<td
style=
"white-space: nowrap;"
>
<a
href=
"https://www.ebi.ac.uk/intact/interaction/{{ interaction.intact_id }}"
target=
"_blank"
>
{{ interaction.intact_id }}
</a>
{% if context.intact_name == 'PSICQUIC' %}
{{ interaction.intact_id }}
{% else %}
<a
href=
"https://www.ebi.ac.uk/intact/interaction/{{ interaction.intact_id }}"
target=
"_blank"
>
{{ interaction.intact_id }}
</a>
{% endif %}
</td>
<td>
{% if interaction.url %}
...
...
rnacentral/portal/views.py
View file @
255650ad
...
...
@@ -141,6 +141,17 @@ def rna_view(request, upi, taxid=None):
)
plugin_installed
=
True
if
os
.
path
.
isfile
(
path
)
else
False
# Interactions
intact_name
=
None
intact
=
rna
.
get_intact
(
taxid
)
if
intact
and
intact
[
0
][
'intact_id'
].
startswith
(
'PSICQUIC'
):
intact_name
=
'PSICQUIC'
for
item
in
intact
:
split_data
=
item
[
'intact_id'
].
split
(
':'
)
item
[
'intact_id'
]
=
split_data
[
1
]
elif
intact
and
intact
[
0
][
'intact_id'
].
startswith
(
'EBI'
):
intact_name
=
'IntAct'
context
=
{
'upi'
:
upi
,
'symbol_counts'
:
symbol_counts
,
...
...
@@ -155,7 +166,8 @@ def rna_view(request, upi, taxid=None):
'precomputed'
:
precomputed
,
'mirna_regulators'
:
rna
.
get_mirna_regulators
(
taxid
=
taxid
),
'annotations_from_other_species'
:
rna
.
get_annotations_from_other_species
(
taxid
=
taxid
),
'intact'
:
rna
.
get_intact
(
taxid
),
'intact'
:
intact
,
'intact_name'
:
intact_name
,
'plugin_installed'
:
plugin_installed
,
}
response
=
render
(
request
,
'portal/sequence.html'
,
{
'rna'
:
rna
,
'context'
:
context
})
...
...
Write
Preview
Markdown
is supported
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