Skip to content

Commit 417739f

Browse files
Merge pull request #17 from CIDARLAB/feature/compensation
Compensation Matrix scripts linked to Website
2 parents 2b15972 + cab0a37 commit 417739f

File tree

4 files changed

+73
-5
lines changed

4 files changed

+73
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
package org.cidarlab.fpSelection.servlets;
7+
8+
import java.io.BufferedReader;
9+
import java.io.FileInputStream;
10+
import java.io.IOException;
11+
import java.io.InputStreamReader;
12+
import java.io.PrintWriter;
13+
import javax.servlet.ServletConfig;
14+
import javax.servlet.ServletContext;
15+
import javax.servlet.ServletException;
16+
import javax.servlet.http.HttpServlet;
17+
import javax.servlet.http.HttpServletRequest;
18+
import javax.servlet.http.HttpServletResponse;
19+
20+
21+
/**
22+
*
23+
* @author prash
24+
*/
25+
public class Compensation extends HttpServlet {
26+
27+
private ServletContext context;
28+
29+
public void init(ServletConfig config) throws ServletException
30+
{
31+
this.context = config.getServletContext();
32+
}
33+
34+
@Override
35+
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
36+
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(context.getRealPath("/")+"/_LayoutHeader.html")));
37+
String str;
38+
PrintWriter out = response.getWriter();
39+
while ((str = in.readLine()) != null) {
40+
out.println(str);
41+
}
42+
in = new BufferedReader(new InputStreamReader(new FileInputStream(context.getRealPath("/")+"/Compensation.html")));
43+
while ((str = in.readLine()) != null) {
44+
out.println(str);
45+
}
46+
in = new BufferedReader(new InputStreamReader(new FileInputStream(context.getRealPath("/")+"/_LayoutFooter.html")));
47+
while ((str = in.readLine()) != null) {
48+
out.println(str);
49+
}
50+
}
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
<ul class="nav nav-tabs" style="margin-top: 100px;">
3+
<li class="tooltipNav false" title="Generate custom cytometer settings"><a href="/Tools">Instrument Config Generator</a></li>
4+
<li class="tooltipNav active" title="Scripts to create compensation matrices"><a href="/Compensation">Compensation Matrix Creation</a></li>
5+
</ul>
6+
</br>
7+
<p style="font-size:20px"> The <a href="https://github.com/CIDARLAB/fpSelection" target="_blank">fpSelection GitHub repository</a> contains scripts for creating compensation matrices from raw cytometry data using R Bioconductor packages.
8+
The files are in the <a href= "https://github.com/CIDARLAB/fpSelection/tree/master/resources/bleedThroughAnalysis" target="_blank">resources folder</a>.
9+
Specific instructions to execute the scripts can be found in the <a href="https://github.com/CIDARLAB/fpSelection/blob/master/resources/bleedThroughAnalysis/README.md" target="_blank">README</a>. </p>
10+

fpSelectionWebApp/src/main/webapp/CytometerForm.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
<!--
1+
22
<ul class="nav nav-tabs" style="margin-top: 100px;">
3-
<li class="tooltipNav active" title="Generate custom cytometer settings"><a href="/Extras">Instrument Config Generator</a></li>
3+
<li class="tooltipNav active" title="Generate custom cytometer settings"><a href="/Tools">Instrument Config Generator</a></li>
4+
<li class="tooltipNav false" title="Scripts to create compensation matrices"><a href="/Compensation">Compensation Matrix Creation</a></li>
45
</ul>
5-
<br>
6-
-->
7-
<fieldset style="margin-top: 150px;">
6+
<fieldset >
87
<!--FORM START-->
98
<legend>Instrument Config Generator</legend>
109
<div class="container cytoData">

fpSelectionWebApp/src/main/webapp/WEB-INF/web.xml

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
<servlet-name>Documentation</servlet-name>
4141
<servlet-class>org.cidarlab.fpSelection.servlets.Documentation</servlet-class>
4242
</servlet>
43+
<servlet>
44+
<servlet-name>Compensation</servlet-name>
45+
<servlet-class>org.cidarlab.fpSelection.servlets.Compensation</servlet-class>
46+
</servlet>
4347
<servlet>
4448
<servlet-name>Tools</servlet-name>
4549
<servlet-class>org.cidarlab.fpSelection.servlets.Tools</servlet-class>
@@ -92,6 +96,10 @@
9296
<servlet-name>Tools</servlet-name>
9397
<url-pattern>/Tools</url-pattern>
9498
</servlet-mapping>
99+
<servlet-mapping>
100+
<servlet-name>Compensation</servlet-name>
101+
<url-pattern>/Compensation</url-pattern>
102+
</servlet-mapping>
95103
<servlet-mapping>
96104
<servlet-name>Attributions</servlet-name>
97105
<url-pattern>/Attributions</url-pattern>

0 commit comments

Comments
 (0)