anchor.diff:  
   
   
  -<c:if test = "${not empty categoricalBarCharts}"><div class="row-fluid dataset">
  -</c:if>
  -<c:forEach var="categoricalBarChart" items="${categoricalBarCharts}" varStatus="loop">
  - <%-- ${loop.count  % 2} --%>
  -<c:if test = "${loop.count  % 2!=0}">
  -<!-- <div class="row-fluid dataset">   -->
  -		 <div class="row-fluid">
  -		 		<div class="container span6">
  -		 				<h4>Allele -  <t:formatAllele>${categoricalMutantBModel[loop.index].alleles[0].symbol}</t:formatAllele> <span class="graphGenBackground"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background -  ${categoricalMutantBModel[loop.index].geneticBackground}</span></h4>
  +
  +<c:forEach var="categoricalResultAndCharts" items="${allCategoricalResultAndCharts}" varStatus="maleAndFemaleLoop">
  +	<div class="row-fluid dataset">
  +	<c:if test="${fn:length(categoricalResultAndCharts.maleAndFemale)==0}">
  +	No data for this zygosity and gender for this parameter and gene
  +	</c:if>
  +	<c:if test="${fn:length(categoricalResultAndCharts.maleAndFemale)>0}">
  + 		<div class="row-fluid">
  +				<div class="container span12">
  +		 				<h4>Allele - <t:formatAllele>${categoricalResultAndCharts.maleAndFemale[0].biologicalModel.alleles[0].symbol}</t:formatAllele> <span class="graphGenBackground"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background -  ${categoricalResultAndCharts.maleAndFemale[0].biologicalModel.geneticBackground} </span></h4>
   		 		</div>
  -		 		<c:if test="${fn:length(categoricalBarCharts) > (loop.index+1)}">
  -		 		<div class="container span6">
  -		 				<h4>Allele -  <t:formatAllele>${categoricalMutantBModel[loop.index+1].alleles[0].symbol}</t:formatAllele> <span class="graphGenBackground"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background -  ${categoricalMutantBModel[loop.index+1].geneticBackground}</span></h4>
  -		 		</div>
  -		 		</c:if> 
  - 		</div>
  - 		<div class="row-fluid">
  - </c:if>
  -  				 <div class="container span6">
  -								<div id="categoricalBarChart${loop.count}"
  +		 </div>
  +		
  +				<div class="row-fluid">
  + 				<c:forEach var="categoricalChartDataObject" items="${categoricalResultAndCharts.maleAndFemale}" varStatus="chartLoop">
  +  				 	<div class="container span6">
  +								<div id="categoricalBarChart${categoricalChartDataObject.chartIdentifier}"
   									style="min-width: 400px; height: 400px; margin: 0 auto">
   								</div>
  -								
  -									<c:set var="table" scope="page" value="${tables[loop.index]}"/>
  -									
  -										<table id="table${loop.count}" class="table table-bordered  table-striped table-condensed">
  +   								<script type="text/javascript">
  +   								${categoricalChartDataObject.chart}
  +   							</script>
  +					</div>
  + 				</c:forEach>
  +				</div>
  + <%--  ${categoricalResultAndCharts.maleAndFemale} --%>
  + 				<div class="row-fluid">
  +						<table id="catTable${categoricalChartDataObject.chartIdentifier}" class="table table-bordered  table-striped table-condensed">
   										<thead><tr>
  -										<c:forEach var="colHeader" items="${table.columnHeaders}" varStatus="xCatCount">
  -										<th>${colHeader}</th>
  -										</c:forEach>
  -										<%-- <th>${tables[loop.count-1].xAxisCategories[1]}</th><th>${tables[loop.count-1].xAxisCategories[2]}</th> --%>
  +										<th>Control Gender</th><th>Exp Gender</th><th>ctrl zygosity</th><th>exp zygosity</th><th>Ctrl ${categoricalResultAndCharts.statsResults[0].categoryA}</th><th>Ctrl ${categoricalResultAndCharts.statsResults[0].categoryB}</th><th>Exp ${categoricalResultAndCharts.statsResults[0].categoryA}</th><th>Exp ${categoricalResultAndCharts.statsResults[0].categoryB}</th><th>p Value</th><th>Effect size</th>
   										</tr></thead>
   										<tbody>
  -										
  -										
  -										
  -												<c:forEach var="rowHeader" items="${table.rowHeaders}" varStatus="rowCount">
  -												<tr>
  -												<td>${rowHeader}</td>
  -														<c:forEach var="cellRow" items="${table.cellData[rowCount.index]}" varStatus="cellCount">
  -																<c:forEach var="cell" items="${cellRow}" varStatus="columnCount">
  -																		<td>${cell}</td>
  +										<c:forEach var="catStatsResult"  items="${categoricalResultAndCharts.statsResults}" varStatus="catStatsStatus">
  +										<tr>
  +											<td> ${catStatsResult.controlSex }</td><td> ${catStatsResult.experimentalSex }</td><td>${catStatsResult.controlZygosity }</td><td>${catStatsResult.experimentalZygosity }</td>
  +											<td>
  +													<c:forEach var="sexCatObject" items="${categoricalResultAndCharts.maleAndFemale}">
  +												
  +														<c:if test="${sexCatObject.sexType==catStatsResult.experimentalSex}" >
  +  
  +														<%-- blah ${sexCatObject.sexType} ${catStatsResult.experimentalSex} --%>
  +																<c:forEach var="controlHomOrHetObjectCatSetObject" items="${sexCatObject.categoricalSets}">
  +																	<c:forEach var="catObject" items="${controlHomOrHetObjectCatSetObject.catObjects }">
  +																	<c:if test="${catObject.name =='control' && catObject.category==catStatsResult.categoryA}" >${catObject.count }
  +																	</c:if>
  +																	</c:forEach>
   																</c:forEach>
  -														</c:forEach>
  -												</tr>
  -												</c:forEach>
  -			
  -										</tbody>
  -										</table>
  -										
  -   								<script type="text/javascript">
  -   
  -   								${categoricalBarChart}
  -   
  -   								
  -								</script>
  -								
  +														</c:if> 
  +													</c:forEach>
  +											</td>
  +											<td><c:forEach var="sexCatObject" items="${categoricalResultAndCharts.maleAndFemale}">
  +												
  +														<c:if test="${sexCatObject.sexType==catStatsResult.experimentalSex}" >
  +  
  +														<%-- blah ${sexCatObject.sexType} ${catStatsResult.experimentalSex} --%>
  +																<c:forEach var="controlHomOrHetObjectCatSetObject" items="${sexCatObject.categoricalSets}">
  +																	<c:forEach var="catObject" items="${controlHomOrHetObjectCatSetObject.catObjects }">
  +																	<c:if test="${catObject.name =='control' && catObject.category==catStatsResult.categoryB}" >${catObject.count }
  +																	</c:if>
  +																	</c:forEach>
  +																</c:forEach>
  +														</c:if> 
  +													</c:forEach>
  +											</td>
  +											<td>
  +												<c:forEach var="sexCatObject" items="${categoricalResultAndCharts.maleAndFemale}">
  +												
  +														<c:if test="${sexCatObject.sexType==catStatsResult.experimentalSex}" >
  +  
  +														<%--  ${sexCatObject.sexType} ${catStatsResult.experimentalSex} --%>
  +																<c:forEach var="controlHomOrHetObjectCatSetObject" items="${sexCatObject.categoricalSets}">
  +																	<c:forEach var="catObject" items="${controlHomOrHetObjectCatSetObject.catObjects }">
  +																	<%-- catName=${catObject.name} zyg= ${catStatsResult.experimentalZygosity } --%>
  +																	<c:if test="${(catObject.name ==catStatsResult.experimentalZygosity.name) && catObject.category==catStatsResult.categoryA}" > ${catObject.count }
  +																	</c:if>
  +																	</c:forEach>
  +																</c:forEach>
  +														</c:if> 
  +													</c:forEach>
  +												
  +											</td>
  +											<td>
  +											<c:forEach var="sexCatObject" items="${categoricalResultAndCharts.maleAndFemale}">
  +												
  +														<c:if test="${sexCatObject.sexType==catStatsResult.experimentalSex}" >
  +  
  +														<%--  ${sexCatObject.sexType} ${catStatsResult.experimentalSex} --%>
  +																<c:forEach var="controlHomOrHetObjectCatSetObject" items="${sexCatObject.categoricalSets}">
  +																	<c:forEach var="catObject" items="${controlHomOrHetObjectCatSetObject.catObjects }">
  +																	<%-- catName=${catObject.name} zyg= ${catStatsResult.experimentalZygosity } --%>
  +																	<c:if test="${(catObject.name ==catStatsResult.experimentalZygosity.name) && catObject.category==catStatsResult.categoryB}" > ${catObject.count }
  +																	</c:if>
  +																	</c:forEach>
  +																</c:forEach>
  +														</c:if> 
  +											</c:forEach>
  +											</td>
  +											<td>${catStatsResult.pValue }</td><td>${catStatsResult.maxEffect}</td>
  +										</tr>
  +										</c:forEach>
  +						</table>
  +					<%-- 	<c:forEach var="sexCatObject" items="${categoricalResultAndCharts.maleAndFemale}">
  +						${sexCatObject.sexType}<br/>
  +								<c:forEach var="controlHomOrHetObjectCatSetObject" items="${sexCatObject.categoricalSets}">
  +									${controlHomOrHetObjectCatSetObject.catObjects } <br/>
  +								</c:forEach>
  +						</c:forEach> --%>
   				</div>
  -<c:if test = "${(loop.count % 2==0) || (loop.count eq fn:length(categoricalBarCharts))} ">
  -</div>
  -<!-- </div> -->
  -</c:if>
  +				</c:if>
  + 	</div>
    </c:forEach>
  -<c:if test = "${not empty categoricalBarCharts}">
  -</div>
  -</c:if>
  +
   			
   				
   			
  
positive.code: 		
  		<!--/end of categoriacl charts-->
  		
   
  <c:forEach var="continuousChart" items="${continuousCharts}" varStatus="uniDimensionalLoop">
   <%-- ${loop.count  % 2} --%>
  <c:if test = "${uniDimensionalLoop.count  % 2!=0}">
   <div class="row-fluid dataset"> 
  		 <div class="row-fluid">
  		 		<div class="container span6"><h4>Allele -  <t:formatAllele>${unidimensionalMutantBiologicalModels[uniDimensionalLoop.index].alleles[0].symbol}</t:formatAllele> <span class="graphGenBackground">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background -  ${unidimensionalMutantBiologicalModels[uniDimensionalLoop.index].geneticBackground}</span></h4>
  				 </div>
  				 <c:if test="${fn:length(continuousCharts) > (uniDimensionalLoop.index+1)}">
  				 <div class="container span6"><h4>Allele -  <t:formatAllele>${unidimensionalMutantBiologicalModels[uniDimensionalLoop.index+1].alleles[0].symbol}</t:formatAllele> <span class="graphGenBackground">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background -  ${unidimensionalMutantBiologicalModels[uniDimensionalLoop.index+1].geneticBackground}</span></h4>
  				 </div>
  				 </c:if>
   		</div>
   		<div class="row-fluid">
   </c:if>
  		
   
    		<div class="container span6">
  				<div id="chart${uniDimensionalLoop.count}"
  									style="min-width: 400px; height: 400px; margin: 0 auto">
  				</div>
  		<c:set var="table" scope="page" value="${continuousTables[uniDimensionalLoop.index]}"/>
  		<table id="continuousTable${uniDimensionalLoop.count}" class="table table-bordered  table-striped table-condensed">
  		<thead><tr>
  		<c:forEach var="colHeader" items="${table.columnHeaders}" varStatus="xCatCount">
  		<th>${colHeader}</th>
  		</c:forEach>
  		<%-- <th>${tables[loop.count-1].xAxisCategories[1]}</th><th>${tables[loop.count-1].xAxisCategories[2]}</th> --%>
  		</tr></thead>
  		<tbody>
  										
  										
  										
  												<c:forEach var="rowHeader" items="${table.rowHeaders}" varStatus="rowCount">
  												<tr>
  												<td>${rowHeader}</td>
  														<c:forEach var="cellRow" items="${table.cellData[rowCount.index]}" varStatus="cellCount">
  																<c:forEach var="cell" items="${cellRow}" varStatus="columnCount">
  																		<td>${cell}</td>
  																</c:forEach>
  														</c:forEach>
  												</tr>
  												</c:forEach>
  									
  										
  										<%-- <td>${tables[loop.count-1].seriesDataForCategoricalType[0][0]}</td><td>${tables[loop.count-1].seriesDataForCategoricalType[0][1]}</td><td>${tables[loop.count-1].seriesDataForCategoricalType[0][2]}</td>
  
negative.code: 
  <!-- time series charts here-->
  
  <c:forEach var="timeChart" items="${timeSeriesChartsAndTables}" varStatus="timeLoop">
   <%-- ${loop.count  % 2} --%>
  	<c:if test = "${timeLoop.count  % 2!=0}">
  		<div class="row-fluid dataset">  
  		 <div class="row-fluid ">
  		 		<div class="container span6"><h4><!--  style="background-color:lightgrey;"  -->Allele -  <t:formatAllele>${timeSeriesMutantBiologicalModels[timeLoop.index].alleles[0].symbol}</t:formatAllele> <span class="graphGenBackground">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background -  ${timeSeriesMutantBiologicalModels[timeLoop.index].geneticBackground}</span></h4>
  		 		</div>
  		 		 <c:if test="${fn:length(timeSeriesChartsAndTables) > (timeLoop.index+1)}">
  		 		 <div class="container span6"><h4><!--  style="background-color:lightgrey;"  -->Allele -  <t:formatAllele>${timeSeriesMutantBiologicalModels[timeLoop.index+1].alleles[0].symbol}</t:formatAllele> <span class="graphGenBackground">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background -  ${timeSeriesMutantBiologicalModels[timeLoop.index+1].geneticBackground}</span></h4>
  		 		</div>
  		 		</c:if>
  