From 09826e4bd595872a61c85a7d7c013d81408ecfd8 Mon Sep 17 00:00:00 2001 From: elavington Date: Mon, 25 Sep 2017 13:41:56 -0400 Subject: Cleaned up classifier html output --- bin/classifier.py | 35 +++++++++++++++++++---------------- index.html | 3 +-- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/bin/classifier.py b/bin/classifier.py index 1e27758..e3150ee 100755 --- a/bin/classifier.py +++ b/bin/classifier.py @@ -74,12 +74,21 @@ predictions=clf.predict(X) # | results="""""" if "demo" in nameList: - results+="""

There seems to have been an error.
If you are expecting more than one prediction or - do not see the name you entered please try the submission form again, making sure that the input is in FASTA format.""" + results+="""

There seems to have been an error.
If you are expecting more than one prediction or do not see the name you entered please try the submission form again, making sure that the input is in FASTA format.
""" else: + results+=""" + + + + + + + """ for k in len(seqList): results+="""""".format(nameList[k],lenList[k],predictions[k]) - + results+=""" +
Sequence NameLengthPrediction
{0}{1}{2}
+ """ #----------------------------------------------\ # Build output page \ @@ -169,16 +178,16 @@ body1="""

Home

Part of the National Science Foundation's Assembling the Tree of Life.

- Sponsored with a Grant from the National Science Foundation + Sponsored with a Grant from the National Science Foundation

Taxonomy

-

Please enter only one word as the name(no space) and only one Rep sequence

-

-
- +
+ +
@@ -234,17 +243,11 @@ Enter ONE Rep protein sequence here...

Results

Results from Taxonomy prediction

- - - - - - + """ #Page contents, second part (results fit between body1 and body2) body2=""" -
Sequence NameLengthPrediction

This classifier will return the best fit of the submitted sequence to the training data.
Currently included in the training data:

  • Circoviridae
  • diff --git a/index.html b/index.html index 28e1893..d554741 100644 --- a/index.html +++ b/index.html @@ -65,8 +65,7 @@ div.tab button.active {

    Taxonomy


    -
    -- cgit v1.2.3