aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHao Chen2019-05-19 17:40:47 -0500
committerHao Chen2019-05-19 17:40:47 -0500
commit57dc1ef7a63f8c05e6d4369dbcd8eb0e51f40a64 (patch)
treebbd3131b5113279820eb8b1f071298e30588f919 /templates
parenta5d68f2bb80b89a8a6cf1051754112eda70316df (diff)
downloadgenecup-57dc1ef7a63f8c05e6d4369dbcd8eb0e51f40a64.tar.gz
UI changes
Diffstat (limited to 'templates')
-rw-r--r--templates/about.html10
-rw-r--r--templates/index.html32
-rw-r--r--templates/layout.html2
-rw-r--r--templates/topAddictionGene.html2
4 files changed, 32 insertions, 14 deletions
diff --git a/templates/about.html b/templates/about.html
index 4ea4112..ea5e4c7 100644
--- a/templates/about.html
+++ b/templates/about.html
@@ -2,15 +2,13 @@
{% extends "layout.html" %}
{% block content %}
-<h3> What does RatsPub do?</h3>
+<h3> About RatsPub ...</h3>
-<p>RatsPub searches PubMed to find abstracts containing genes of interest and a list of curated addiction-related keywords. The abstracts corresponding to these returned PMIDs are then retrieve from a <a href="https://dataguide.nlm.nih.gov/edirect/archive.html">local archive of the PubMed</a>. No limit on the date of publication is set. Each abstract is then broken down into sentences, which are then filtered by genes and keywords.
+<p>RatsPub searches PubMed to find abstracts containing genes of interest and a list of curated addiction-related keywords. The abstracts corresponding to these returned PMIDs are then retrieve from a <a href="https://dataguide.nlm.nih.gov/edirect/archive.html">local archive of the PubMed</a>. No limit on the date of publication is set. Each abstract is then broken down into sentences, which are then filtered by gene names and keywords.
-<p>These gene-keyword relationships are presented as an interactive <a href="https://js.cytoscape.org" >cytoscape</a> graph.
+<p>Clicking the links will bring up the corresponding sentences in a new browser window. Clicking the keywords will bring up the correponding search terms. Clicking the genes will start a new search to find sentences containing the target gene and the top 200 addiction genes.
-<p>Clicking the links will bring up the corresponding sentences in a new browser window. Clicking the keyword nodes will bring up all the terms included. Clicking on the gene nodes will start a new search to find sentences containing that gene and the top 200 addiction genes.
-
-<p> The top 200 addiction genes were obtained by searching All human genes against addiction related keywords. The archived results for these top addiction genes can be accessed via the <a href="/allTopGenes">Addiction Genes</a> link.
+<p> The top 200 addiction genes were obtained by searching 29,761 human genes against addiction related keywords. To ensure comprehensive coverage, gene alias obtained from NCBI gene database were included in the search. The results were extensively curated to remove those alias that matched words that were not gene name or wrong genes. Some incorrect results remained because the same name also produced correct results. The archived results for these top addiction genes can be accessed via the <a href="/allTopGenes">Addiction Genes</a> link.
<hr>
<a href="https://github.com/chen42/ratspub"> Source code </a>
diff --git a/templates/index.html b/templates/index.html
index b94853e..f5b6aea 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,16 +4,36 @@
<h3> <u>R</u>elationship with <u>A</u>ddiction <u>T</u>hrough <u>S</u>earches of <u>Pub</u>Med </span></a>
</h3>
-
- This app searches PubMed to find <i>sentences</i> that contain the query terms (e.g., gene symbols) and <a href="https://github.com/chen42/RatsPub/blob/master/ratspub.py#L95-L129">keywords</a> related to drug addiction.
-<br>
+<table>
+ <tr><td >
+<p>
+ RatsPub searches PubMed to find <i>sentences</i> that contain the query terms (i.e., gene symbols) and <a href="https://github.com/chen42/RatsPub/blob/master/ratspub_keywords.py">drug addiction-related keywords</a>. These gene-keyword relationships are presented as an interactive graph that can efficiently answer the question <b>"What do we know about these genes and addiction?" </b>
+
+<p> In addition, clicking gene names in the graph will launch a new search for sentences containing the target gene and 200 addiction-related genes. These results help to answer the question <b>"Are there genes that can link my gene of interest to addiction?" </b>
+ </td>
+ <td >
+ <div class='img'><img src="/static/ratspub.png" class="img-fluid">
+ </td></tr>
+ <tr><td colspan=2>
+
+ Up to 100 gene symbols can be searched at a time. Gene symbols can be separated by either a space or a semicolon. Gene alias will <i>not</i> be automatically included because the large number of false matches associated with gene synonyms retrieved from databases.
+ </td></tr></table>
+
<p>
+ <b>Example</b>: Rgma Nrxn3; Chrna3
+
+<br>
<form action="/progress">
- <input name="query" class="form-control form-control-lg" type="search" placeholder="Rgma Nrxn3" aria-label="search" value="">
- <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
- </form>
+ <textarea name="query" class="form-control form-control-lg" type="search" row="3" id="searchform">
+ </textarea>
+ <div class="form-group row">
+ <div class="col-sm-10">
+ <button type="submit" class="btn btn-primary">Submit</button>
+ </div>
+ </div>
+ </form>
{% endblock %}
diff --git a/templates/layout.html b/templates/layout.html
index 08977c3..6a85473 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -22,7 +22,7 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
- <a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
+ <a class="nav-link" href="/">Search <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/allTopGenes">Addiction Genes</a>
diff --git a/templates/topAddictionGene.html b/templates/topAddictionGene.html
index e427560..e62103a 100644
--- a/templates/topAddictionGene.html
+++ b/templates/topAddictionGene.html
@@ -5,7 +5,7 @@
<h3> Top addiction related genes </h3>
<br>
-These genes are ranked by the number of PubMed abstracts that contain the name of the gene and one or more addiction related keyword.
+These genes are ranked by the number of PubMed abstracts that contain the name of the gene and one or more addiction related keyword. Alias were obtained from NCBI gene database and have been curated to remove most, but not all, false matches.
<hr>
<ol><li><a href="/showTopGene?topGene=CNR1">CNR1</a> <span style="font-size:small; color:grey">(CNRS1; PROTOCADHERIN ALPHA CLUSTER, COMPLEX LOCUS)</span><br>