@@ -92,7 +92,7 @@ public void execute() {
92
92
protected DataTable dataTable ;
93
93
protected boolean isScatterChartLoaded = false ;
94
94
protected int snpPosX = -1 ;
95
- protected double bonferroniThreshold = -1 ;
95
+ protected double pvalThreshold = -1 ;
96
96
97
97
// use instance because getSelection() does not work in onUnderlay event, because date_graph is not properly initialized
98
98
protected JsArray <Selection > selections =JsArray .createArray ().cast ();
@@ -352,13 +352,13 @@ public void draw(DataTable dataTable,double max_value, int start,int end) {
352
352
draw (dataTable ,max_value ,start ,end ,-1 );
353
353
}
354
354
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 )
356
356
{
357
357
this .dataTable = dataTable ;
358
358
this .max_value = max_value ;
359
359
this .viewStart = start ;
360
360
this .viewEnd = end ;
361
- this .bonferroniThreshold = bonferroniThreshold ;
361
+ this .pvalThreshold = pvalThreshold ;
362
362
geneViewer .setViewRegion (start ,end );
363
363
geneViewer .setChromosome (chromosome );
364
364
geneViewer .setDataSource (datasource );
@@ -561,8 +561,8 @@ public void onUnderlay(UnderlayEvent event) {
561
561
}
562
562
}
563
563
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 ;
566
566
int width = ctx .getCanvas ().getWidth ();
567
567
ctx .save ();
568
568
ctx .beginPath ();
@@ -637,8 +637,8 @@ public void hideColoredLDValues() {
637
637
638
638
protected DygraphOptions setOptions (DygraphOptions options ){
639
639
double maxValue = max_value ;
640
- if (maxValue < bonferroniThreshold )
641
- maxValue = bonferroniThreshold ;
640
+ if (maxValue < pvalThreshold )
641
+ maxValue = pvalThreshold ;
642
642
options .setStrokeWidth (0.000000001 );
643
643
options .setDrawPoints (true );
644
644
options .setPointSize (pointSize );
@@ -809,4 +809,8 @@ public void destroy() {
809
809
scatterChart .destroy ();
810
810
geneViewer .destroy ();
811
811
}
812
+
813
+ public void setUploadGenomeStatsFormUrl (String url ,String urlParameters ) {
814
+ geneViewer .setUploadGenomeStatsFormUrl (url ,urlParameters );
815
+ }
812
816
}
0 commit comments