Skip to content

Commit

Permalink
Add a homepage (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Jul 4, 2023
1 parent e63b359 commit d808e83
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rnaseq_pipeline/webviewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def bad_request(e):
def not_found(e):
return render_template('404.html', e=e), 404

@app.route('/')
def home():
return render_template('index.html')

@app.route('/experiment/<experiment_id>')
def experiment_summary(experiment_id):
try:
Expand Down
48 changes: 48 additions & 0 deletions rnaseq_pipeline/webviewer/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="charset" content="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ experiment_id }}">
<title>{{ experiment_id }}</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>
<div class="container py-3">
<h2>Pavlidis Lab RNA-Seq Pipeline</h2>
<p>There isn't much at this time here, but you can take a look at the following links:</p>
<ul>
<li><a href="https://pavlab.msl.ubc.ca/">Pavlidis Lab Home</a></li>
<li><a href="https://github.com/PavlidisLab/rnaseq-pipeline">Source code on GitHub</a></li>
</ul>
<h3>Endpoints</h3>
<dl>
<dt>/experiment/{experimentId}</dt>
<dd>
Summary
(<a href="{{ url_for('experiment_summary', experiment_id='GSE141029') }}">example</a>)
</dd>
<dt>/experiment/{experimentId}/batch-info</dt>
<dd>
Batch Information
(<a href="{{ url_for('experiment_batch_info', experiment_id='GSE141028') }}">example</a>)
</dd>
<dt>/experiment/{experimentId}/quantifications/counts</dt>
<dd>
Quantifications (counts)
(<a href="{{ url_for('experiment_quantifications', experiment_id='GSE141028', reference_id='hg38_ncbi', mode='counts') }}">example</a>)
</dd>
<dt>/experiment/{experimentId}/quantifications/fpkm</dt>
<dd>
Quantifications (FPKM)
(<a href="{{ url_for('experiment_quantifications', experiment_id='GSE141028', reference_id='hg38_ncbi', mode='fpkm') }}">example</a>)
</dd>
<dt>/experiment/{experimentId}/report</dt>
<dd>
MultiQC Report
(<a href="{{ url_for('experiment_report', experiment_id='GSE141028', reference_id='hg38_ncbi') }}">example</a>)
</dd>
</dl>
</div>
</body>
</html>

0 comments on commit d808e83

Please sign in to comment.