Skip to content

Commit d63844c

Browse files
author
Uemit Seren
committed
bonferroniThreshold renamed to pvalThreshold
1 parent 171c849 commit d63844c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/main/java/at/gmi/nordborglab/widgets/gwasgeneviewer/client/GWASGeneViewer.java

+11-7
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void execute() {
9292
protected DataTable dataTable;
9393
protected boolean isScatterChartLoaded = false;
9494
protected int snpPosX = -1;
95-
protected double bonferroniThreshold = -1 ;
95+
protected double pvalThreshold = -1 ;
9696

9797
// use instance because getSelection() does not work in onUnderlay event, because date_graph is not properly initialized
9898
protected JsArray<Selection> selections =JsArray.createArray().cast();
@@ -352,13 +352,13 @@ public void draw(DataTable dataTable,double max_value, int start,int end) {
352352
draw(dataTable,max_value,start,end,-1);
353353
}
354354

355-
public void draw(DataTable dataTable,double max_value, int start,int end,double bonferroniThreshold)
355+
public void draw(DataTable dataTable,double max_value, int start,int end,double pvalThreshold)
356356
{
357357
this.dataTable = dataTable;
358358
this.max_value = max_value;
359359
this.viewStart = start;
360360
this.viewEnd = end;
361-
this.bonferroniThreshold = bonferroniThreshold;
361+
this.pvalThreshold = pvalThreshold;
362362
geneViewer.setViewRegion(start,end);
363363
geneViewer.setChromosome(chromosome);
364364
geneViewer.setDataSource(datasource);
@@ -561,8 +561,8 @@ public void onUnderlay(UnderlayEvent event) {
561561
}
562562
}
563563

564-
if (bonferroniThreshold != -1) {
565-
double posY = (int)event.dygraph.toDomYCoord(bonferroniThreshold, 0)-0.5;
564+
if (pvalThreshold != -1) {
565+
double posY = (int)event.dygraph.toDomYCoord(pvalThreshold, 0)-0.5;
566566
int width = ctx.getCanvas().getWidth();
567567
ctx.save();
568568
ctx.beginPath();
@@ -637,8 +637,8 @@ public void hideColoredLDValues() {
637637

638638
protected DygraphOptions setOptions(DygraphOptions options){
639639
double maxValue = max_value;
640-
if (maxValue < bonferroniThreshold)
641-
maxValue = bonferroniThreshold;
640+
if (maxValue < pvalThreshold)
641+
maxValue = pvalThreshold;
642642
options.setStrokeWidth(0.000000001);
643643
options.setDrawPoints(true);
644644
options.setPointSize(pointSize);
@@ -809,4 +809,8 @@ public void destroy() {
809809
scatterChart.destroy();
810810
geneViewer.destroy();
811811
}
812+
813+
public void setUploadGenomeStatsFormUrl(String url,String urlParameters) {
814+
geneViewer.setUploadGenomeStatsFormUrl(url,urlParameters);
815+
}
812816
}

0 commit comments

Comments
 (0)