Skip to content
Permalink
d430133ce3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
303 lines (278 sloc) 12.9 KB
{% extends 'base.html' %}
{% block container %}
{% import 'macros/cluster_actions.html' as ca %}
<div class="top-pad">
{% if sequence %}
<h1>Sequence: <strong>{{ sequence.name }}</strong> <small>({{ sequence.type }})</small></h1>
Species: <em><a href="{{ url_for('species.species_view', species_id=sequence.species.id) }}">{{ sequence.species.name }}</a></em>
<br />
{% if sequence.description != '' %}
<strong>Description: </strong> {{sequence.description}}
{% endif %}
<h3>Coding Sequence <small>(length: {{ sequence.coding_sequence|length }} bp)
<a href="{{ url_for('sequence.sequence_fasta_coding', sequence_id=sequence.id) }}" data-toggle="tooltip" data-placement="top" title="Download coding sequence">
<span class="glyphicon glyphicon-download" aria-hidden="true"></span>
</a></small></h3>
<div class="well sequence">{{ sequence.coding_sequence }}</div>
<br />
{% if sequence.type == 'protein_coding' %}
<h3>Protein Sequence <small>(length: {{ sequence.protein_sequence|length }} aa)
<a href="{{ url_for('sequence.sequence_fasta_protein', sequence_id=sequence.id) }}" data-toggle="tooltip" data-placement="top" title="Download protein sequence">
<span class="glyphicon glyphicon-download" aria-hidden="true"></span>
</a></small></h3>
<div class="well sequence">{{ sequence.protein_sequence }}</div>
<br />
{% endif %}
<h3>Sequence details</h3>
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading"><abbr title="Click to show help" href="{{ url_for('help.help_topic', topic='go') }}" data-target="#helpModal">GO</abbr> annotation <span class="text-muted">(<a href="#" id="go_toggle">Toggle parental</a>)</span></div>
{% if go_associations|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped" id="go_table">
<thead>
<tr>
<th data-sort="string-ins">Label</th>
<th data-sort="string-ins">Name</th>
<th data-sort="string-ins">Evidence</th>
</tr>
</thead>
<tbody>
{% for go_association in go_associations %}
{% if go_association.evidence == None %}
<tr class="parent_term" style="display: none">
{% else %}
<tr>
{% endif %}
<td><a href="{{ url_for('go.go_view', go_id=go_association.go.id) }}" data-toggle="tooltip"
data-placement="top" title="{{ go_association.go.description }}">{{ go_association.go.label }}</a></td>
<td>{{ go_association.go.name }}</td>
<td>{{ go_association.evidence }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>No GO annotation available for this sequence</p>
</div>
{% endif %}
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading"><abbr title="Click to show help" href="{{ url_for('help.help_topic', topic='interpro_domain') }}" data-target="#helpModal">InterPro domains</abbr></a></sup></div>
{% if interpro_associations|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped" id="interpro_table">
<thead>
<tr>
<th data-sort="string-ins">Label</th>
<th data-sort="string-ins">Description</th>
<th data-sort="int">Start</th>
<th data-sort="int">Stop</th>
</tr>
</thead>
<tbody>
{% for association in interpro_associations %}
<tr>
<td><a href="{{ url_for('interpro.interpro_view', interpro_id=association.domain.id) }}">{{ association.domain.label }}</a></td>
<td>{{ association.domain.description }}</td>
{% if association.start %}
<td>{{ association.start }}</td>
{% else %}
<td> - </td>
{% endif %}
{% if association.stop %}
<td>{{ association.stop }}</td>
{% else %}
<td> - </td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>No InterPro domains available for this sequence</p>
</div>
{% endif %}
</div>
</div> <!-- end col -->
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading"><abbr title="Click to show help" href="{{ url_for('help.help_topic', topic='gene_family') }}" data-target="#helpModal">Gene Families</abbr></div>
{% if families|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped" id="family_table">
<thead>
<tr>
<th data-sort="string-ins">Name</th>
<th data-sort="string-ins">Method</th>
</tr>
</thead>
<tbody>
{% for family in families %}
<tr>
<td><a href="{{ url_for('family.family_view', family_id=family.id) }}">{{ family.name }}</a></td>
<td>{{ family.method.method }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>This sequence isn't a member of any gene families</p>
</div>
{% endif %}
</div>
</div> <!-- end col -->
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Expression Profiles</div>
{% if expression_profiles|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped">
<tbody>
{% for profile in expression_profiles %}
<tr>
<td><a href="{{ url_for('expression_profile.expression_profile_view', profile_id=profile.id) }}">{{ profile.probe }}</a></td>
<td><a href="{{ url_for('expression_profile.expression_profile_modal', profile_id=profile.id) }}" data-target="#profileModal">Show profile</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>This sequence doens't have an expression profile associated with it</p>
</div>
{% endif %}
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Networks</div>
{% if network_nodes|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped">
<tbody>
{% for network in network_nodes %}
<tr>
<td>{{ network.method.description }}: <a href="{{ url_for('expression_network.expression_network_graph', node_id=network.id) }}">{{ network.probe }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>This sequence isn't included in a network</p>
</div>
{% endif %}
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Coexpression Clusters</div>
{% if coexpression_clusters|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped">
<tbody>
{% for cluster in coexpression_clusters %}
<tr>
<td><strong data-toggle="tooltip"
data-placement="top" title="{{ cluster.method.method }}">{{ cluster.name }}</strong></td>
<td>
{{ ca.cluster_actions(cluster.id) }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>This sequence isn't included in a network</p>
</div>
{% endif %}
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">External Links</div>
{% if xrefs|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped">
<tbody>
{% for xref in xrefs %}
<tr>
<td><strong>{{ xref.platform }}</strong></td>
<td>
<a href="{{ xref.url }}">{{ xref.name }} <i class="fa fa-external-link"></i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>No external references for this sequences in the database.</p>
</div>
{% endif %}
</div>
</div>
</div>
<div class="modal" id="profileModal" tabindex="-1" role="dialog" aria-labelledby="profileModalLabel">
<div class="modal-dialog" role="document" style="width:1000px;height:800px;">
<div class="modal-content">
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}
</div>
{% block extrajs %}
<script>
$(function () {
$("#go_table").stupidtable();
$("#interpro_table").stupidtable();
$("#family_table").stupidtable();
$('[data-toggle="tooltip"]').tooltip();
$('a[data-target=#profileModal]').click(function(ev) {
ev.preventDefault();
var target = $(this).attr("href");
// load the url and show modal on success
$("#profileModal .modal-content").load(target, function() {
$("#profileModal").modal("show");
});
});
$("#go_toggle").click(function(ev) {
ev.preventDefault();
$(".parent_term").toggle();
});
})
</script>
<script src="{{ url_for('static', filename='js/Chart.min.js') }}"></script>
{% endblock %}