Changeset 204


Ignore:
Timestamp:
Nov 24, 2006, 1:55:55 PM (16 years ago)
Author:
Johan Enell
Message:

Fixes #27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/se/lu/onk/ZTest/src/ztest/Start.java

    r197 r204  
    122122    try
    123123    {
    124       PrintWriter out = new PrintWriter(new File("index.html"));
     124      PrintWriter html = new PrintWriter(new File("index.html"));
    125125      int numOfReporters = bfss.getReporterSize();
    126126
    127       out.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">");
    128       out.println("<html>");
    129       out.println("<head>");
    130       out.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />");
    131       out.println("<title>BASE 1.2.16dev - Experiment Enell:Enell Plugin</title>");
    132       out.println("<link rel=\"stylesheet\" type=\"text/css\" href=\"base.css\" />");
    133       out.println("</head>");
    134       out.println("<table>");
    135       out.println("<tr><th>Reporter</th><th>Average M</th><th>P</th><th>Number of values</th><th>Rank</th<th>Expected</th><th>FDR</th></tr>");
     127      html.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">");
     128      html.println("<html>");
     129      html.println("<head>");
     130      html.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />");
     131      html.println("<title>BASE 1.2.16dev - Experiment Enell:Enell Plugin</title>");
     132      html.println("<link rel=\"stylesheet\" type=\"text/css\" href=\"base.css\" />");
     133      html.println("</head>");
     134      html.println("<table>");
     135      html.println("<tr><th>Reporter</th><th>Average M</th><th>P</th><th>Number of values</th><th>Rank</th<th>Expected</th><th>FDR</th></tr>");
    136136     
    137       for (int i = 0; i < bfss.getReporterSize() && i < 100; i++)
     137      for (int i = 0; i < bfss.getReporterSize(); i++)
    138138      {
    139139        int rank = i + 1;
     
    142142        double fdr = (numExpected / rank);
    143143       
    144         out.print("<tr class=\"row"+(i%2+1)+"\">");
    145         out.printf(
     144        html.print("<tr class=\"row"+(i%2+1)+"\">");
     145        html.printf(
    146146          "<td>%d</td>" +
    147147          "<td>%f</td>" +
     
    158158          numExpected,
    159159          fdr);
    160         out.println("</tr>");
     160        html.println("</tr>");
    161161      }
    162       out.println("</table>");
     162      html.println("</table>");
    163163
    164       out.print("</html>");
    165       out.close();
     164      html.print("</html>");
     165      html.close();
    166166    }
    167167    catch (FileNotFoundException e)
Note: See TracChangeset for help on using the changeset viewer.