aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CRESSdna.html156
-rw-r--r--CRESSresults.html102
-rwxr-xr-x[-rw-r--r--]cgi-bin/classifier.py12
-rw-r--r--index.html169
4 files changed, 232 insertions, 207 deletions
diff --git a/CRESSdna.html b/CRESSdna.html
new file mode 100644
index 0000000..f037c56
--- /dev/null
+++ b/CRESSdna.html
@@ -0,0 +1,156 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<style>
+* {box-sizing: border-box}
+body {font-family: "Lato", sans-serif;}
+
+/* Style the tab */
+div.tab {
+ float: left;
+ border: 1px solid #ccc;
+ background-color: #f1f1f1;
+ width: 20%;
+ height: 250px;
+}
+
+/* Style the buttons inside the tab */
+div.tab button {
+ display: block;
+ background-color: inherit;
+ color: black;
+ padding: 22px 16px;
+ width: 100%;
+ border: none;
+ outline: none;
+ text-align: left;
+ cursor: pointer;
+ transition: 0.3s;
+ font-size: 17px;
+}
+
+/* Change background color of buttons on hover */
+div.tab button:hover {
+ background-color: #ddd;
+}
+
+/* Create an active/current "tab button" class */
+div.tab button.active {
+ background-color: #1acefc;
+}
+
+/* Style the tab content */
+.tabcontent {
+ float: left;
+ padding: 0px 12px;
+ border: 1px solid #ccc;
+ width: 80%;
+ min-height: 250px;
+}
+</style>
+</head>
+<body>
+
+<p>Welcome to CRESSdna.org</p>
+
+<div class="tab">
+ <button class="tablinks" onclick="openTab(event, 'Home')" id="defaultOpen">Home</button>
+ <button class="tablinks" onclick="openTab(event, 'Taxonomy')">Taxonomy</button>
+ <button class="tablinks" onclick="openTab(event, 'Contact')">Contact</button>
+ <button class="tablinks" onclick="openTab(event, 'Results')">Results</button>
+ </div>
+
+<div id="Home" class="tabcontent">
+ <h3>Home</h3>
+ <p>Part of the <a href='http://www.nsf.gov/pubs/2010/nsf10513/nsf10513.htm'>National Science Foundation's Assembling the Tree of Life</a>.</p>
+ <img src='nsf1.jpg' alt='Sponsored with a Grant from the National Science Foundation'>
+</div>
+
+<div id="Taxonomy" class="tabcontent">
+ <h3>Taxonomy</h3>
+ <p>Please enter only one word as the name(no space) and only one Rep sequence</p>
+ <form action="./cgi-bin/classifier.py" method="post"><br>
+ <input type="text" name="seqname" value="seqID"><br>
+ <textarea rows="4" cols="50" name="fasta" input type="submit">
+Enter ONE Rep protein sequence here...</textarea>
+ <br>
+ <input type="reset">
+ <input type="submit">
+</form>
+ <p>
+ <ul>
+ <li>This classifier requires Rep protein sequence to be:</li>
+ <ul>
+ <li>Complete</li>
+ <li>Unaligned</li>
+ <li>in FASTA format</li>
+ </ul>
+ <p>And has been trained on the following Genera:</p>
+ <li>Circoviridae</li>
+ <ul>
+ <li>Circovirus</li>
+ <li>Cyclovirus</li>
+ </ul>
+ <li>Nanoviridae</li>
+ <ul>
+ <li>Babuvirus</li>
+ <li>Nanovirus</li>
+ </ul>
+ <li>Genomoviridae</li>
+ <ul>
+ <li>Gemycircularvirus</li>
+ <li>Gemygorvirus</li>
+ <li>Gemykibivirus</li>
+ <li>Gemykolovirus</li>
+ <li>Gemykrogvirus</li>
+ <li>Gemyvongvirus</li>
+ </ul>
+ <li>Geminiviridae</li>
+ <ul>
+ <li>Becurtovirus</li>
+ <li>Begomovirus</li>
+ <li>Capulavirus</li>
+ <li>Curtovirus</li>
+ <li>Eragrovirus</li>
+ <li>Grablovirus</li>
+ <li>Mastrevirus</li>
+ <li>Turncurtovirus</li>
+ </ul>
+ <li>Smacovirus</li>
+</ul> </p>
+</div>
+
+
+<div id="Contact" class="tabcontent">
+ <h3>Contact</h3>
+ <p>Questions or comments? Send us an email:</p>
+ <p>email At domain Dot something</p>
+</div>
+
+<div id="Results" class="tabcontent">
+ <h3>Results</h3>
+ <p>Results from Taxonomy prediction</p>
+</div>
+
+<script>
+function openTab(evt, tabTitle) {
+ var i, tabcontent, tablinks;
+ tabcontent = document.getElementsByClassName("tabcontent");
+ for (i = 0; i < tabcontent.length; i++) {
+ tabcontent[i].style.display = "none";
+ }
+ tablinks = document.getElementsByClassName("tablinks");
+ for (i = 0; i < tablinks.length; i++) {
+ tablinks[i].className = tablinks[i].className.replace(" active", "");
+ }
+ document.getElementById(tabTitle).style.display = "block";
+ evt.currentTarget.className += " active";
+}
+
+// Get the element with id="defaultOpen" and click on it
+document.getElementById("defaultOpen").click();
+</script>
+
+</body>
+</html>
diff --git a/CRESSresults.html b/CRESSresults.html
index 09c552a..47c4227 100644
--- a/CRESSresults.html
+++ b/CRESSresults.html
@@ -1,51 +1,51 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-
-</head>
-<body>
-
-<h3>Taxonomy Prediction Results</h3>
- <p>Results as Name, predicted Genus, length of sequence: </p><br>
- <input type="text" readonly="true" value={prediction} size="40"/><br><br>
- <p>This classifier will return the best fit of the submitted sequence to the training data.<br>
-Currently included in the training data:<br>
-<li>Circoviridae</li>
- <ul>
- <li>Circovirus</li>
- <li>Cyclovirus</li>
- </ul>
- <li>Nanoviridae</li>
- <ul>
- <li>Babuvirus</li>
- <li>Nanovirus</li>
- </ul>
- <li>Genomoviridae</li>
- <ul>
- <li>Gemycircularvirus</li>
- <li>Gemygorvirus</li>
- <li>Gemykibivirus</li>
- <li>Gemykolovirus</li>
- <li>Gemykrogvirus</li>
- <li>Gemyvongvirus</li>
- </ul>
- <li>Geminiviridae</li>
- <ul>
- <li>Becurtovirus</li>
- <li>Begomovirus</li>
- <li>Capulavirus</li>
- <li>Curtovirus</li>
- <li>Eragrovirus</li>
- <li>Grablovirus</li>
- <li>Mastrevirus</li>
- <li>Turncurtovirus</li>
- </ul>
- <li>Smacovirus</li>
-
- <a href="./www/html/index.html">Return to CRESSdna.org</a>
-</p>
-
-</body>
-</html>
-
+<!DOCTYPE html>
+
+<html>
+<head>
+
+</head>
+<body>
+
+<h3>Taxonomy Prediction Results</h3>
+ <p>Results as Name, predicted Genus, length of sequence: </p><br>
+ <input type="text" readonly="true" value={prediction} size="40"/><br><br>
+ <p>This classifier will return the best fit of the submitted sequence to the training data.<br>
+Currently included in the training data:<br>
+<li>Circoviridae</li>
+ <ul>
+ <li>Circovirus</li>
+ <li>Cyclovirus</li>
+ </ul>
+ <li>Nanoviridae</li>
+ <ul>
+ <li>Babuvirus</li>
+ <li>Nanovirus</li>
+ </ul>
+ <li>Genomoviridae</li>
+ <ul>
+ <li>Gemycircularvirus</li>
+ <li>Gemygorvirus</li>
+ <li>Gemykibivirus</li>
+ <li>Gemykolovirus</li>
+ <li>Gemykrogvirus</li>
+ <li>Gemyvongvirus</li>
+ </ul>
+ <li>Geminiviridae</li>
+ <ul>
+ <li>Becurtovirus</li>
+ <li>Begomovirus</li>
+ <li>Capulavirus</li>
+ <li>Curtovirus</li>
+ <li>Eragrovirus</li>
+ <li>Grablovirus</li>
+ <li>Mastrevirus</li>
+ <li>Turncurtovirus</li>
+ </ul>
+ <li>Smacovirus</li>
+
+ <a href="./www/html/CRESSdna.html">Return to CRESSdna.org</a>
+</p>
+
+</body>
+</html>
+
diff --git a/cgi-bin/classifier.py b/cgi-bin/classifier.py
index 8f8450b..aa97555 100644..100755
--- a/cgi-bin/classifier.py
+++ b/cgi-bin/classifier.py
@@ -1,4 +1,8 @@
+<<<<<<< HEAD
+#!/home/erik/bin/python3.6m
+=======
#!/home/erik/bin/python3.6
+>>>>>>> f7d7849fcd6ce02a59db8c5fadc29d1962476493
#import packages to be used
from sklearn.svm import SVC
@@ -19,7 +23,11 @@ else:
name='demo'
size=len(alignment[0])
+<<<<<<< HEAD
+html = open("./var/www/html/CRESSresults.html")
+=======
html = open("./www.html/CRESSresults.html")
+>>>>>>> f7d7849fcd6ce02a59db8c5fadc29d1962476493
page=html.read()
@@ -49,4 +57,8 @@ f.close()"""
print (output)
+<<<<<<< HEAD
quit()
+=======
+quit()
+>>>>>>> f7d7849fcd6ce02a59db8c5fadc29d1962476493
diff --git a/index.html b/index.html
index a97d1c1..8658958 100644
--- a/index.html
+++ b/index.html
@@ -1,156 +1,13 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<style>
-* {box-sizing: border-box}
-body {font-family: "Lato", sans-serif;}
-
-/* Style the tab */
-div.tab {
- float: left;
- border: 1px solid #ccc;
- background-color: #f1f1f1;
- width: 20%;
- height: 250px;
-}
-
-/* Style the buttons inside the tab */
-div.tab button {
- display: block;
- background-color: inherit;
- color: black;
- padding: 22px 16px;
- width: 100%;
- border: none;
- outline: none;
- text-align: left;
- cursor: pointer;
- transition: 0.3s;
- font-size: 17px;
-}
-
-/* Change background color of buttons on hover */
-div.tab button:hover {
- background-color: #ddd;
-}
-
-/* Create an active/current "tab button" class */
-div.tab button.active {
- background-color: #1acefc;
-}
-
-/* Style the tab content */
-.tabcontent {
- float: left;
- padding: 0px 12px;
- border: 1px solid #ccc;
- width: 80%;
- min-height: 250px;
-}
-</style>
-</head>
-<body>
-
-<p>Welcome to CRESSdna.org</p>
-
-<div class="tab">
- <button class="tablinks" onclick="openTab(event, 'Home')" id="defaultOpen">Home</button>
- <button class="tablinks" onclick="openTab(event, 'Taxonomy')">Taxonomy</button>
- <button class="tablinks" onclick="openTab(event, 'Contact')">Contact</button>
- <button class="tablinks" onclick="openTab(event, 'Results')">Results</button>
- </div>
-
-<div id="Home" class="tabcontent">
- <h3>Home</h3>
- <p>Part of the <a href='http://www.nsf.gov/pubs/2010/nsf10513/nsf10513.htm'>National Science Foundation's Assembling the Tree of Life</a>.</p>
- <img src='nsf1.jpg' alt='Sponsored with a Grant from the National Science Foundation'>
-</div>
-
-<div id="Taxonomy" class="tabcontent">
- <h3>Taxonomy</h3>
- <p>Please enter only one word as the name(no space) and only one Rep sequence</p>
- <form action="./cgi-bin/classifier.py" method="post"><br>
- <input type="text" name="seqname" value="seqID"><br>
- <textarea rows="4" cols="50" name="fasta" input type="submit">
-Enter ONE Rep protein sequence here...</textarea>
- <br>
- <input type="reset">
- <input type="submit">
-</form>
- <p>
- <ul>
- <li>This classifier requires Rep protein sequence to be:</li>
- <ul>
- <li>Complete</li>
- <li>Unaligned</li>
- <li>in FASTA format</li>
- </ul>
- <p>And has been trained on the following Genera:</p>
- <li>Circoviridae</li>
- <ul>
- <li>Circovirus</li>
- <li>Cyclovirus</li>
- </ul>
- <li>Nanoviridae</li>
- <ul>
- <li>Babuvirus</li>
- <li>Nanovirus</li>
- </ul>
- <li>Genomoviridae</li>
- <ul>
- <li>Gemycircularvirus</li>
- <li>Gemygorvirus</li>
- <li>Gemykibivirus</li>
- <li>Gemykolovirus</li>
- <li>Gemykrogvirus</li>
- <li>Gemyvongvirus</li>
- </ul>
- <li>Geminiviridae</li>
- <ul>
- <li>Becurtovirus</li>
- <li>Begomovirus</li>
- <li>Capulavirus</li>
- <li>Curtovirus</li>
- <li>Eragrovirus</li>
- <li>Grablovirus</li>
- <li>Mastrevirus</li>
- <li>Turncurtovirus</li>
- </ul>
- <li>Smacovirus</li>
-</ul> </p>
-</div>
-
-
-<div id="Contact" class="tabcontent">
- <h3>Contact</h3>
- <p>Questions or comments? Send us an email:</p>
- <p>email At domain Dot something</p>
-</div>
-
-<div id="Results" class="tabcontent">
- <h3>Results</h3>
- <p>Results from Taxonomy prediction</p>
-</div>
-
-<script>
-function openTab(evt, tabTitle) {
- var i, tabcontent, tablinks;
- tabcontent = document.getElementsByClassName("tabcontent");
- for (i = 0; i < tabcontent.length; i++) {
- tabcontent[i].style.display = "none";
- }
- tablinks = document.getElementsByClassName("tablinks");
- for (i = 0; i < tablinks.length; i++) {
- tablinks[i].className = tablinks[i].className.replace(" active", "");
- }
- document.getElementById(tabTitle).style.display = "block";
- evt.currentTarget.className += " active";
-}
-
-// Get the element with id="defaultOpen" and click on it
-document.getElementById("defaultOpen").click();
-</script>
-
-</body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CRESSDNA</title>
+ </head>
+<*>
+</*>
+ <body>
+ <h1>Circular Rep-Encoding Single Stranded DNA Viruses</h1>
+ <p>Part of the <a href='http://www.nsf.gov/pubs/2010/nsf10513/nsf10513.htm'>National Science Foundation's Assembling the Tree of Life</a>.</p>
+ <img src='nsf1.jpg' alt='Sponsored with a Grant from the National Science Foundation'>
+ </body>
+</html>