6 use File::Spec::Functions qw / catfile catdir/;
8 use SGN::Test::WWW::WebDriver;
9 use SGN::Test::Fixture;
10 use SGN::Test::solGSData;
12 my $d = SGN::Test::WWW::WebDriver->new();
13 my $f = SGN::Test::Fixture->new();
15 my $solgs_data = SGN::Test::solGSData->new(
18 'accessions_list_subset' => 60,
19 'plots_list_subset' => 60
23 my $cache_dir = $solgs_data->site_cluster_shared_dir();
24 my $protocol_dir = $solgs_data->default_protocol_dir();
25 my $cluster_dir = catdir( $protocol_dir, 'cluster' );
26 my $log_dir = catdir( $protocol_dir, 'log' );
28 my $accessions_list = $solgs_data->load_accessions_list();
29 my $accessions_list_name = $accessions_list->{list_name};
30 my $accessions_list_id = 'list_' . $accessions_list->{list_id};
32 my $plots_list = $solgs_data->load_plots_list();
33 my $plots_list_name = $plots_list->{list_name};
34 my $plots_list_id = 'list_' . $plots_list->{list_id};
37 my $trials_list = $solgs_data->load_trials_list();
38 my $trials_list_name = $trials_list->{list_name};
39 my $trials_list_id = 'list_' . $trials_list->{list_id};
41 my $trials_dt = $solgs_data->load_trials_dataset();
42 my $trials_dt_name = $trials_dt->{dataset_name};
43 my $trials_dt_id = 'dataset_' . $trials_dt->{dataset_id};
45 my $accessions_dt = $solgs_data->load_accessions_dataset();
46 my $accessions_dt_name = $accessions_dt->{dataset_name};
47 my $accessions_dt_id = 'dataset_' . $accessions_dt->{dataset_id};
49 my $plots_dt = $solgs_data->load_plots_dataset();
50 my $plots_dt_name = $plots_dt->{dataset_name};
51 my $plots_dt_id = 'dataset_' . $plots_dt->{dataset_id};
54 print STDERR "\ntrials dt: $trials_dt_name -- $trials_dt_id\n";
55 print STDERR "\naccessions dt: $accessions_dt_name -- $accessions_dt_id\n";
56 print STDERR "\nplots dt: $plots_dt_name -- $plots_dt_id\n";
58 print STDERR "\ntrials list: $trials_list_name -- $trials_list_id\n";
60 "\naccessions list: $accessions_list_name -- $accessions_list_id\n";
61 print STDERR "\nplots list: $plots_list_name -- $plots_list_id\n";
65 $d->while_logged_in_as(
69 $d->get_ok( '/cluster/analysis', 'cluster home page' );
72 $d->find_element_ok('//tr[@id="' . $accessions_list_id .'"]//*[starts-with(@id, "cluster_type_select")]',
73 'xpath', 'select k-means' )->send_keys('K-means');
76 '//tr[@id="' . $accessions_list_id .'"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
81 $d->find_element_ok( '//tr[@id="' . $accessions_list_id .'"]//*[starts-with(@id, "k_number_input")]',
82 'xpath', 'select k number' )->send_keys(4);
85 '//tr[@id="' . $accessions_list_id . '"]//*[starts-with(@id, "run_cluster")]',
87 'run clones list (genotype) clustering'
90 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
93 my $sel_pops = $d->find_element( '//*[contains(text(), "Clustering")]',
94 'xpath', 'scroll up' );
95 my $elem = $d->driver->execute_script(
96 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
99 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check accessions list geno kmeans cluster plot');
103 $d->driver->refresh();
107 $d->find_element_ok( '//tr[@id="' . $plots_list_id . '"]//*[starts-with(@id, "cluster_type_select")]',
108 'xpath', 'select k-means' )->send_keys('K-means');
111 '//tr[@id="' . $plots_list_id . '"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
116 $d->find_element_ok( '//tr[@id="' . $plots_list_id . '"]//*[starts-with(@id, "k_number_input")]',
117 'xpath', 'select k number' )->send_keys(4);
120 '//tr[@id="' . $plots_list_id . '"]//*[starts-with(@id, "run_cluster")]',
122 'run plots list (phenotype) clustering'
125 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
128 my $sel_pops = $d->find_element( '//*[contains(text(), "Clustering")]',
129 'xpath', 'scroll up' );
130 my $elem = $d->driver->execute_script(
131 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
134 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check plots phenotype kmeans cluster plot');
137 $d->driver->refresh();
141 $d->find_element_ok('//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_type_select")]',
142 'xpath', 'select k-means' )->send_keys('K-means');
145 '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
150 $d->find_element_ok('//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "k_number_input")]',
151 'xpath', 'select k number' )->send_keys(4);
154 '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "run_cluster")]',
156 'run trials list (genotype) clustering'
159 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
162 my $sel_pops = $d->find_element( '//*[contains(text(), "Clustering")]',
163 'xpath', 'scroll up' );
164 my $elem = $d->driver->execute_script(
165 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
168 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check trials list geno kmeans cluster plot');
171 $d->driver->refresh();
175 $d->find_element_ok('//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_type_select")]',
176 'xpath', 'select k-means' )->send_keys('K-means');
179 '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
184 $d->find_element_ok('//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "k_number_input")]',
185 'xpath', 'select k number' )->send_keys(4);
188 '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "run_cluster")]',
190 'run trials list (phenotype) clustering'
193 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
196 my $sel_pops = $d->find_element('//*[contains(text(), "Clustering")]',
197 'xpath', 'scroll up' );
198 my $elem = $d->driver->execute_script(
199 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
202 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check trials list geno kmeans cluster plot');
205 $d->driver->refresh();
208 `rm -r /tmp/localhost`;
212 $d->find_element_ok( '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_type_select")]',
213 'xpath', 'select k-means' )->send_keys('K-means');
216 '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
221 $d->find_element_ok( '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "k_number_input")]',
222 'xpath', 'select k number' )->send_keys(4);
224 $d->find_element_ok( '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "run_cluster")]',
225 'xpath', 'run cluster' )->click();
227 $d->find_element_ok( 'queue_job', 'id', 'job queueing' )->click();
229 $d->find_element_ok( 'analysis_name', 'id',
230 'trials list pheno analysis name' )
231 ->send_keys('trials list clustering');
233 $d->find_element_ok( 'user_email', 'id', 'user email' )
234 ->send_keys('email@email.com');
236 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
239 $d->driver->go_back();
243 $d->find_element_ok('//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_type_select")]',
244 'xpath', 'select k-means' )->send_keys('K-means');
247 '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
252 $d->find_element_ok( '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "k_number_input")]',
253 'xpath', 'select k number' )->send_keys(4);
256 '//tr[@id="' . $trials_list_id . '"]//*[starts-with(@id, "run_cluster")]',
258 'run trials list (pheno) cluster'
262 # $d->find_element_ok('no_queue', 'id', 'no job queueing')->click();
265 my $sel_pops = $d->find_element('//*[contains(text(), "Clustering")]',
266 'xpath', 'scroll up' );
267 my $elem = $d->driver->execute_script(
268 "arguments[0].scrollIntoView(true);window.scrollBy(0, -10);",
271 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check trials list pheno kmeans cluster plot');
274 $d->driver->refresh();
278 $d->find_element_ok('//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "cluster_type_select")]',
279 'xpath', 'select k-means' )->send_keys('K-means');
282 '//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
287 $d->find_element_ok('//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "k_number_input")]',
288 'xpath', 'select k number' )->send_keys(4);
291 '//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "run_cluster")]',
293 'run trials dataset (genotype) cluster'
296 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
299 my $sel_pops = $d->find_element( '//*[contains(text(), "Clustering")]',
300 'xpath', 'scroll up' );
301 my $elem = $d->driver->execute_script(
302 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
305 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check trials dataset geno kmeans cluster plot');
308 $d->driver->refresh();
312 $d->find_element_ok( '//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "cluster_type_select")]',
313 'xpath', 'select k-means' )->send_keys('K-means');
316 '//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
321 $d->find_element_ok( '//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "k_number_input")]',
322 'xpath', 'select k number' )->send_keys(4);
325 '//tr[@id="' . $trials_dt_id . '"]//*[starts-with(@id, "run_cluster")]',
327 'run trials dataset (phenotype) cluster'
330 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
333 my $sel_pops = $d->find_element( '//*[contains(text(), "Clustering")]',
334 'xpath', 'scroll up' );
335 my $elem = $d->driver->execute_script(
336 "arguments[0].scrollIntoView(true);window.scrollBy(0, 500);",
339 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check trials dataset pheno kmeans cluster plot');
343 #### trial page #######
344 `rm -r /tmp/localhost`;
347 $d->get_ok( '/breeders/trial/139', 'trial detail home page' );
350 my $analysis_tools = $d->find_element(
353 'toogle analysis tools'
355 my $elem = $d->driver->execute_script(
356 "arguments[0].scrollIntoView(true);window.scrollBy(0,-50);",
362 'toogle analysis tools'
365 $d->find_element_ok( 'Clustering', 'partial_link_text',
366 'expand cluster sec' )->click();
368 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
369 'xpath', 'select k-means' )->send_keys('K-means');
372 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
377 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
378 'xpath', 'select k number' )->send_keys(4);
381 '//*[starts-with(@id, "run_cluster")]',
383 'run phenotype cluster'
386 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
388 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check trial detail page pheno kmeans cluster plot');
391 $d->driver->refresh();
395 $d->find_element( 'cluster_canvas', 'id', 'toogle analysis tools' );
396 my $elem = $d->driver->execute_script(
397 "arguments[0].scrollIntoView(true);window.scrollBy(0,-50);",
403 'toogle analysis tools'
406 $d->find_element_ok( 'Clustering', 'partial_link_text',
407 'expand cluster sec' )->click();
409 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
410 'xpath', 'select k-means' )->send_keys('K-means');
413 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
418 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
419 'xpath', 'clear k number' )->clear();
420 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
421 'xpath', 'select k number' )->send_keys(4);
424 '//*[starts-with(@id, "run_cluster")]',
426 'run genotype cluster'
429 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
431 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check trials detail page geno kmeans cluster plot');
434 ############## solGS #####################
437 $d->get_ok( '/solgs', 'solgs homepage' );
440 $d->find_element_ok( 'trial_search_box', 'id',
441 'population search form' )->send_keys('Kasese solgs trial');
443 $d->find_element_ok( 'search_training_pop', 'id',
444 'search for training pop' )->click();
446 $d->find_element_ok( 'Kasese', 'partial_link_text',
447 'create training pop' )->click();
449 $d->find_element_ok( 'queue_job', 'id', 'submit job tr pop' )->click();
451 $d->find_element_ok( 'analysis_name', 'id', 'training data job name' )
452 ->send_keys('Test Kasese Tr pop');
454 $d->find_element_ok( 'user_email', 'id', 'user email' )
455 ->send_keys('email@email.com');
457 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
459 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
463 $d->find_element_ok( 'trial_search_box', 'id',
464 'population search form' )->send_keys('Kasese solgs trial');
466 $d->find_element_ok( 'search_training_pop', 'id',
467 'search for training pop' )->click();
469 $d->find_element_ok( 'Kasese', 'partial_link_text',
470 'create training pop' )->click();
474 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
475 'xpath', 'select 1st trait' )->click();
477 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
478 'xpath', 'select 2nd trait' )->click();
479 $d->find_element_ok( 'runGS', 'id', 'build multi models' )->click();
481 $d->find_element_ok( 'queue_job', 'id', 'multi models job queueing' )
484 $d->find_element_ok( 'analysis_name', 'id', 'job name' )
485 ->send_keys('Test DMCP-FRW modeling Kasese');
487 $d->find_element_ok( 'user_email', 'id', 'user email' )
488 ->send_keys('email@email.com');
490 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
492 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
497 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
498 'xpath', 'select 1st trait' )->click();
500 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
501 'xpath', 'select 2nd trait' )->click();
502 $d->find_element_ok( 'runGS', 'id', 'build multi models' )->click();
506 # ##############################################################
507 # # $d->get_ok('solgs/traits/all/population/139/traits/1971973596/gp/1', 'models page');
510 # #####################################################################
512 $d->find_element_ok( 'trial_search_box', 'id',
513 'population search form' )->send_keys('trial2 NaCRRI');
515 $d->find_element_ok( 'search_selection_pop', 'id',
516 'search for selection pop' )->click();
519 '//table[@id="selection_pops_table"]//*[contains(text(), "Predict")]',
524 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
526 $d->find_element_ok( 'analysis_name', 'id',
527 'multi trials sel job name' )
528 ->send_keys('Test DMCP-FRW selection pred nacrri');
530 $d->find_element_ok( 'user_email', 'id', 'user email' )
531 ->send_keys('email@email.com');
533 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
535 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
540 '//tr[@id="' . $accessions_list_id .'"]//*[contains(text(), "Predict")]',
542 'click list sel pred'
545 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
547 $d->find_element_ok( 'analysis_name', 'id', 'list sel job name' )
548 ->send_keys('clones list dmc-frw sel pred');
550 $d->find_element_ok( 'user_email', 'id', 'user email' )
551 ->send_keys('email@email.com');
553 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
555 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
560 '//tr[@id="' . $accessions_dt_id .'"]//*[contains(text(), "Predict")]',
565 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
567 $d->find_element_ok( 'analysis_name', 'id', 'dataset sel job name' )
568 ->send_keys('dataset clones sel pred');
570 $d->find_element_ok( 'user_email', 'id', 'user email' )
571 ->send_keys('email@email.com');
573 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
575 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
580 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
581 my $elem = $d->driver->execute_script(
582 "arguments[0].scrollIntoView(true);window.scrollBy(0, -200);",
584 $d->find_element_ok('//tr[@id="' . $accessions_list_id .'"]//*[contains(text(), "Predict")]', 'xpath', 'accessions list sel pred')->click();
589 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
590 $d->driver->execute_script(
591 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
594 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
598 '//select[@id="cluster_pops_select"]/option[text()="'
599 . $accessions_list_name . '"]',
601 'select accessions list sel pop'
604 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
605 'xpath', 'select k-means' )->send_keys('K-means');
608 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
609 'xpath', 'select gebv' )->click();
611 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
612 'xpath', 'clear k number' )->clear();
613 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
614 'xpath', 'select k number' )->send_keys(4);
616 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
617 'xpath', 'run cluster' )->click();
619 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
621 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs acccessions list gebvs kmeans cluster plot');
624 $d->driver->refresh();
628 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
629 my $elem = $d->driver->execute_script(
630 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
634 $d->find_element_ok('//tr[@id="' . $accessions_dt_id .'"]//*[contains(text(), "Predict")]', 'xpath', 'accessions list sel pred')->click();
637 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
638 $d->driver->execute_script(
639 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
642 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
646 '//select[@id="cluster_pops_select"]/option[text()="'
647 . $accessions_dt_name . '"]',
649 'select accessions dataset sel pop'
652 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
653 'xpath', 'select k-means' )->send_keys('K-means');
656 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
661 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
662 'xpath', 'clear k number' )->clear();
663 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
664 'xpath', 'select k number' )->send_keys(4);
666 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
667 'xpath', 'run cluster' )->click();
669 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
672 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
673 $d->driver->execute_script(
674 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
677 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs accessions dataset geno kmeans cluster plot');
680 $d->driver->refresh();
684 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
685 my $elem = $d->driver->execute_script(
686 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
690 $d->find_element_ok('//tr[@id="' . $accessions_dt_id .'"]//*[contains(text(), "Predict")]', 'xpath', 'accessions dataset sel pred')->click();
694 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
695 $d->driver->execute_script(
696 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
699 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
703 '//select[@id="cluster_pops_select"]/option[text()="'
704 . $accessions_dt_name . '"]',
706 'select accessions dataset sel pop'
709 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
710 'xpath', 'select k-means' )->send_keys('K-means');
713 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
714 'xpath', 'select gebv' )->click();
716 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
717 'xpath', 'clear k number' )->clear();
718 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
719 'xpath', 'select k number' )->send_keys(4);
721 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
722 'xpath', 'run cluster' )->click();
724 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
726 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs accessions dataset gebvs kmeans cluster plot');
729 $d->driver->refresh();
733 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
734 my $elem = $d->driver->execute_script(
735 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
738 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
742 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
744 'select trial tr pop'
747 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
748 'xpath', 'select k-means' )->send_keys('K-means');
751 '//select[@id="cluster_data_type_select"]/option[text()="Phenotype"]',
752 'xpath', 'select ghenotype'
755 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
756 'xpath', 'clear k number' )->clear();
757 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
758 'xpath', 'select k number' )->send_keys(4);
760 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
761 'xpath', 'run cluster' )->click();
763 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
765 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs tr pop pheno kmeans cluster plot');
768 $d->driver->refresh();
772 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
773 $d->driver->execute_script(
774 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
777 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
781 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
783 'select trial tr pop'
786 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
787 'xpath', 'select k-means' )->send_keys('K-means');
790 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
795 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
796 'xpath', 'clear k number' )->clear();
797 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
798 'xpath', 'select k number' )->send_keys(4);
800 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
801 'xpath', 'run cluster' )->click();
803 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
805 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check tr pop geno kmeans cluster plot');
808 $d->driver->refresh();
812 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
813 $d->driver->execute_script(
814 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
817 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
821 '//select[@id="cluster_pops_select"]/option[text()="Kasese solgs trial"]',
823 'select trial tr pop'
826 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
827 'xpath', 'select k-means' )->send_keys('K-means');
830 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
831 'xpath', 'select gebv' )->click();
833 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
834 'xpath', 'clear k number' )->clear();
835 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
836 'xpath', 'select k number' )->send_keys(4);
838 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
839 'xpath', 'run cluster' )->click();
841 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
843 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs tr pop gebvs kmeans cluster plot');
846 $d->driver->refresh();
849 my $cor = $d->find_element( 'Genetic correlation',
850 'partial_link_text', 'scroll up' );
851 $d->driver->execute_script(
852 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
855 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
859 '//select[@id="si_pops_select"]/option[text()="Kasese solgs trial"]',
861 'select trial type tr pop'
864 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
866 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
868 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
873 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
874 $d->driver->execute_script(
875 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
878 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
882 '//select[@id="cluster_pops_select"]/option[text()="139-DMCP-3-FRW-5"]',
883 'xpath', 'select sel index pop'
886 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
887 'xpath', 'select k-means' )->send_keys('K-means');
890 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
896 '//*[starts-with(@id, "selection_proportion_input")]',
897 'xpath', 'fill in sel prop' )->send_keys('15');
899 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
900 'xpath', 'clear k number' )->clear();
902 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
903 'xpath', 'select k number' )->send_keys(4);
905 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
906 'xpath', 'run cluster' )->click();
908 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
910 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs SIndex geno kmeans cluster plot');
913 $d->driver->refresh();
917 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
918 $d->driver->execute_script(
919 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
922 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
926 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
928 'select trial sel pop'
931 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
932 'xpath', 'select k-means' )->send_keys('K-means');
935 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
940 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
941 'xpath', 'clear k number' )->clear();
942 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
943 'xpath', 'select k number' )->send_keys(4);
946 '//*[starts-with(@id, "run_cluster")]',
948 'run trial2 NaCRRI geno cluster'
951 $d->find_element_ok( 'no_queue', 'id',
952 'no job queueing -- trial2 NaCRRI geno cluster' )->click();
954 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs sel pop geno kmeans cluster plot');
957 $d->driver->refresh();
961 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
962 $d->driver->execute_script(
963 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
966 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
970 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
972 'select trial sel pop'
975 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
976 'xpath', 'select k-means' )->send_keys('K-means');
979 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
980 'xpath', 'select gebv' )->click();
982 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
983 'xpath', 'clear k number' )->clear();
984 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
985 'xpath', 'select k number' )->send_keys(4);
987 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
988 'xpath', 'run cluster' )->click();
990 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
992 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check sel pop gebv kmeans cluster plot');
995 $d->driver->refresh();
998 `rm -r $cluster_dir`;
1003 # # $d->get_ok('solgs/traits/all/population/139/traits/1971973596/gp/1', 'models page');
1007 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1008 $d->driver->execute_script(
1009 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1012 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1015 $d->find_element_ok(
1016 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1018 'select trial sel pop'
1021 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1022 'xpath', 'select k-means' )->send_keys('K-means');
1024 $d->find_element_ok(
1025 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1030 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1031 'xpath', 'clear k number' )->clear();
1032 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1033 'xpath', 'select k number' )->send_keys(4);
1035 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1036 'xpath', 'run cluster' )->click();
1038 $d->find_element_ok( 'queue_job', 'id',
1039 'queueing trial2 NaCRRI geno km clustering' )->click();
1041 $d->find_element_ok( 'analysis_name', 'id',
1042 'analysis name -Nacrri sel pop geno clustering' )
1043 ->send_keys('Nacrri sel pop geno clustering');
1045 $d->find_element_ok( 'user_email', 'id', 'user email' )
1046 ->send_keys('email@email.com');
1048 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1050 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1054 $d->driver->refresh();
1058 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1059 $d->driver->execute_script(
1060 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1063 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1066 $d->find_element_ok(
1067 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1069 'select trial sel pop'
1072 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1073 'xpath', 'select k-means' )->send_keys('K-means');
1075 $d->find_element_ok(
1076 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1081 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1082 'xpath', 'clear k number' )->clear();
1083 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1084 'xpath', 'select k number' )->send_keys(4);
1086 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1087 'xpath', 'run cluster' )->click();
1089 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs sel pop geno kmeans cluster plot');
1092 $d->driver->refresh();
1096 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1097 $d->driver->execute_script(
1098 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1101 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1104 $d->find_element_ok(
1105 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1107 'select trial sel pop'
1110 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1111 'xpath', 'select k-means' )->send_keys('K-means');
1113 $d->find_element_ok(
1114 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1115 'xpath', 'select gebv' )->click();
1117 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1118 'xpath', 'clear k number' )->clear();
1119 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1120 'xpath', 'select k number' )->send_keys(4);
1122 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1123 'xpath', 'run cluster' )->click();
1125 $d->find_element_ok( 'queue_job', 'id',
1126 'queueing trial2 NaCRRI gebv cluster' )->click();
1128 $d->find_element_ok( 'analysis_name', 'id',
1129 'analysis name -Nacrri sel pop gebv clustering' )
1130 ->send_keys('Nacrri sel pop gebv clustering');
1132 $d->find_element_ok( 'user_email', 'id', 'user email' )
1133 ->send_keys('email@email.com');
1135 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1137 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1141 $d->driver->refresh();
1145 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1146 $d->driver->execute_script(
1147 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1150 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1153 $d->find_element_ok(
1154 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1156 'select trial sel pop'
1159 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1160 'xpath', 'select k-means' )->send_keys('K-means');
1162 $d->find_element_ok(
1163 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1164 'xpath', 'select gebv' )->click();
1166 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1167 'xpath', 'clear k number' )->clear();
1168 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1169 'xpath', 'select k number' )->send_keys(4);
1171 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1172 'xpath', 'run cluster' )->click();
1174 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs trial sel pop gebv kmeans cluster plot');
1177 $d->driver->refresh();
1180 my $cor = $d->find_element( 'Genetic correlation',
1181 'partial_link_text', 'scroll up' );
1182 $d->driver->execute_script(
1183 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1186 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
1189 $d->find_element_ok(
1190 '//select[@id="si_pops_select"]/option[text()="Kasese solgs trial"]',
1192 'select trial type tr pop'
1195 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
1197 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
1199 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
1204 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1205 $d->driver->execute_script(
1206 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1209 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1212 $d->find_element_ok(
1213 '//select[@id="cluster_pops_select"]/option[text()="139-DMCP-3-FRW-5"]',
1214 'xpath', 'select sel index pop'
1217 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1218 'xpath', 'select k-means' )->send_keys('K-means');
1220 $d->find_element_ok(
1221 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1226 $d->find_element_ok(
1227 '//*[starts-with(@id, "selection_proportion_input")]',
1228 'xpath', 'fill in sel prop' )->send_keys('15');
1230 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1231 'xpath', 'clear k number' )->clear();
1232 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1233 'xpath', 'select k number' )->send_keys(4);
1235 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1236 'xpath', 'run cluster' )->click();
1238 $d->find_element_ok( 'queue_job', 'id', 'no job queueing' )->click();
1240 $d->find_element_ok( 'analysis_name', 'id',
1241 'analysis name -Nacrri sel pop sindex clustering' )
1242 ->send_keys('Nacrri sel pop sindex clustering');
1244 $d->find_element_ok( 'user_email', 'id', 'user email' )
1245 ->send_keys('email@email.com');
1247 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1249 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1253 my $cor = $d->find_element( 'Genetic correlation',
1254 'partial_link_text', 'scroll up' );
1255 $d->driver->execute_script(
1256 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1259 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
1262 $d->find_element_ok(
1263 '//select[@id="si_pops_select"]/option[text()="Kasese solgs trial"]',
1265 'select trial type tr pop'
1268 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
1270 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
1272 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
1277 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1278 $d->driver->execute_script(
1279 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1282 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1285 $d->find_element_ok(
1286 '//select[@id="cluster_pops_select"]/option[text()="139-DMCP-3-FRW-5"]',
1287 'xpath', 'select sel index pop'
1290 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1291 'xpath', 'select k-means' )->send_keys('K-means');
1293 $d->find_element_ok(
1294 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1299 $d->find_element_ok(
1300 '//*[starts-with(@id, "selection_proportion_input")]',
1301 'xpath', 'fill in sel prop' )->send_keys('15');
1303 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1304 'xpath', 'clear k number' )->clear();
1305 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1306 'xpath', 'select k number' )->send_keys(4);
1308 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1309 'xpath', 'run cluster' )->click();
1311 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs SI geno kmeans cluster plot');
1314 $d->driver->refresh();
1317 #########################
1318 `rm -r $cluster_dir`;
1322 ########################################
1325 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1326 $d->driver->execute_script(
1327 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1330 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1333 $d->find_element_ok(
1334 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1336 'select trial sel pop'
1339 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1340 'xpath', 'select k-means' )->send_keys('K-means');
1342 $d->find_element_ok(
1343 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1348 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1349 'xpath', 'clear k number' )->clear();
1350 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1351 'xpath', 'select k number' )->send_keys(4);
1353 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1354 'xpath', 'run cluster' )->click();
1356 $d->find_element_ok( 'no_queue', 'id',
1357 'wait to finish clustering trial2 NaCRRI genotype' )->click();
1359 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs sel pop geno kmeans cluster plot');
1362 $d->driver->refresh();
1366 # # # $d->get_ok('/solgs/trait/70666/population/139/gp/1', 'open model page');
1371 $d->find_element( 'Models summary', 'partial_link_text',
1373 $d->driver->execute_script(
1374 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1377 $d->find_element_ok(
1378 '//table[@id="model_summary"]//*[contains(text(), "FRW")]',
1379 'xpath', 'click training pop' )->click();
1384 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1385 $d->driver->execute_script(
1386 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1389 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1390 'xpath', 'select k-means' )->send_keys('K-means');
1392 $d->find_element_ok(
1393 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1398 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1399 'xpath', 'clear k number' )->clear();
1400 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1401 'xpath', 'select k number' )->send_keys(4);
1403 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1404 'xpath', 'run cluster' )->click();
1406 $d->find_element_ok( 'no_queue', 'id',
1407 'wait to finish clustering in single trial model page' )->click();
1409 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs tr pop trait geno kmeans cluster plot');
1412 # # # #$d->get_ok('/solgs/model/combined/populations/2804608595/trait/70741/gp/1', 'open combined trials model page');
1416 $d->get_ok( '/solgs', 'solgs home page' );
1418 $d->find_element_ok( 'trial_search_box', 'id',
1419 'population search form' )->send_keys('Kasese solgs trial');
1421 $d->find_element_ok( 'search_training_pop', 'id',
1422 'search for training pop' )->click();
1424 $d->find_element_ok( 'trial_search_box', 'id',
1425 'population search form' )->clear();
1427 $d->find_element_ok( 'trial_search_box', 'id',
1428 'population search form' )->send_keys('trial2 nacrri');
1430 $d->find_element_ok( 'search_training_pop', 'id',
1431 'search for training pop' )->click();
1434 $d->find_element_ok(
1435 '//table[@id="searched_trials_table"]//input[@value="139"]',
1436 'xpath', 'select trial kasese' )->click();
1438 $d->find_element_ok(
1439 '//table[@id="searched_trials_table"]//input[@value="141"]',
1440 'xpath', 'select trial nacrri' )->click();
1442 $d->find_element_ok( 'select_trials_btn', 'id', 'done selecting' )
1445 $d->find_element_ok( 'combine_trait_trials', 'id', 'combine trials' )
1448 $d->find_element_ok( 'queue_job', 'id', 'submit job tr pop' )->click();
1450 $d->find_element_ok( 'analysis_name', 'id', 'job queueing' )
1451 ->send_keys('combined trials');
1453 $d->find_element_ok( 'user_email', 'id', 'user email' )
1454 ->send_keys('email@email.com');
1456 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1458 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1462 # ####################
1463 # # #$d->get('/solgs/populations/combined/2804608595/gp/1', 'combo trials tr pop page');
1466 # ##################
1467 $d->get_ok( '/solgs', 'solgs homepage' );
1470 $d->find_element_ok( 'trial_search_box', 'id',
1471 'population search form' )->send_keys('Kasese solgs trial');
1473 $d->find_element_ok( 'search_training_pop', 'id',
1474 'search for training pop' )->click();
1476 $d->find_element_ok( 'trial_search_box', 'id',
1477 'population search form' )->clear();
1479 $d->find_element_ok( 'trial_search_box', 'id',
1480 'population search form' )->send_keys('trial2 nacrri');
1482 $d->find_element_ok( 'search_training_pop', 'id',
1483 'search for training pop' )->click();
1486 $d->find_element_ok(
1487 '//table[@id="searched_trials_table"]//input[@value="139"]',
1488 'xpath', 'select trial kasese' )->click();
1490 $d->find_element_ok(
1491 '//table[@id="searched_trials_table"]//input[@value="141"]',
1492 'xpath', 'select trial nacrri' )->click();
1494 $d->find_element_ok( 'select_trials_btn', 'id', 'done selecting' )
1497 $d->find_element_ok( 'combine_trait_trials', 'id', 'combine trials' )
1501 $d->find_element_ok(
1502 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
1503 'xpath', 'select 1st trait' )->click();
1505 $d->find_element_ok(
1506 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
1507 'xpath', 'select 2nd trait' )->click();
1509 $d->find_element_ok( 'runGS', 'id',
1510 'run combined trials build multi models' )->click();
1512 $d->find_element_ok( 'queue_job', 'id', 'combined trials job queueing' )
1515 $d->find_element_ok( 'analysis_name', 'id',
1516 'combined trials multi models job name' )
1517 ->send_keys('Test DMCP-FRW modeling combo trials');
1519 $d->find_element_ok( 'user_email', 'id', 'user email' )
1520 ->send_keys('email@email.com');
1522 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1524 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1528 # # ###########################
1529 # # # $d->get('/solgs/populations/combined/2804608595/gp/1', 'combo trials tr pop page');
1531 # # ############################
1533 $d->find_element_ok(
1534 '//table[@id="population_traits_list"]/tbody/tr[1]/td/input',
1535 'xpath', 'select 1st trait' )->click();
1537 $d->find_element_ok(
1538 '//table[@id="population_traits_list"]/tbody/tr[2]/td/input',
1539 'xpath', 'select 2nd trait' )->click();
1541 $d->find_element_ok( 'runGS', 'id',
1542 ' go to combined trials multi models page' )->click();
1545 $d->find_element_ok( 'trial_search_box', 'id',
1546 'combo trials models sel population search form' )
1547 ->send_keys('trial2 NaCRRI');
1549 $d->find_element_ok( 'search_selection_pop', 'id',
1550 'search for selection pop' )->click();
1552 $d->find_element_ok(
1553 '//table[@id="selection_pops_table"]//*[contains(text(), "Predict")]',
1555 'click training pop'
1558 $d->find_element_ok( 'queue_job', 'id',
1559 'trial sel pop prediction job queueing' )->click();
1561 $d->find_element_ok( 'analysis_name', 'id',
1562 'sel pop prediction analysis name' )
1563 ->send_keys('combo DMCP-FRW selection pred nacrri');
1565 $d->find_element_ok( 'user_email', 'id', 'user email' )
1566 ->send_keys('email@email.com');
1568 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1570 $d->find_element_ok( 'Go back', 'partial_link_text',
1571 'go back to combo trials multi models pg' )->click();
1574 $d->find_element_ok('//tr[@id="' . $accessions_list_id .'"]//*[contains(text(), "Predict")]', 'xpath', 'accessions list sel pred')->click();
1576 $d->find_element_ok( 'queue_job', 'id',
1577 'list type sel pop prediction job queueing' )->click();
1579 $d->find_element_ok( 'analysis_name', 'id',
1580 'list type sel pop prediction analysis name' )
1581 ->send_keys('combo clones list dmc-frw sel pred');
1583 $d->find_element_ok( 'user_email', 'id', 'user email' )
1584 ->send_keys('email@email.com');
1586 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1588 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1592 $d->find_element_ok('//tr[@id="' . $accessions_dt_id .'"]//*[contains(text(), "Predict")]', 'xpath', 'accessions dataset sel pred')->click();
1594 $d->find_element_ok( 'queue_job', 'id',
1595 'dataset sel pop prediction job queueing' )->click();
1597 $d->find_element_ok( 'analysis_name', 'id',
1598 'dataset sel pop prediction analysis name' )
1599 ->send_keys('combo dataset clones sel pred');
1601 $d->find_element_ok( 'user_email', 'id', 'user email' )
1602 ->send_keys('email@email.com');
1604 $d->find_element_ok( 'submit_job', 'id', 'submit' )->click();
1606 $d->find_element_ok( 'Go back', 'partial_link_text', 'go back' )
1611 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1612 $d->driver->execute_script(
1613 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1616 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1619 $d->find_element_ok(
1620 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
1622 'select list sel pop'
1625 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1626 'xpath', 'select k-means' )->send_keys('K-means');
1628 $d->find_element_ok(
1629 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Phenotype"]',
1634 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1635 'xpath', 'select k number' )->send_keys(4);
1637 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1638 'xpath', 'run cluster' )->click();
1640 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1642 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check solgs tr combo trials pheno kmeans cluster plot');
1645 $d->driver->refresh();
1649 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1650 $d->driver->execute_script(
1651 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1654 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1657 $d->find_element_ok(
1658 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
1660 'select list sel pop'
1663 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1664 'xpath', 'select k-means' )->send_keys('K-means');
1666 $d->find_element_ok(
1667 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1668 'xpath', 'select phenotype' )->click();
1670 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1671 'xpath', 'select k number' )->send_keys(4);
1673 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1674 'xpath', 'run cluster' )->click();
1676 $d->find_element_ok( 'no_queue', 'id', 'no job queueing -- GEBV' )
1679 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo trials accessions list pheno kmeans cluster plot');
1682 $d->driver->refresh();
1686 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1687 $d->driver->execute_script(
1688 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1691 $d->find_element_ok( 'cluster_pops_select', 'id', 'click cluster pops' )
1694 $d->find_element_ok(
1695 '//select[@id="cluster_pops_select"]/option[text()="Training population 2804608595"]',
1700 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1701 'xpath', 'select k-means' )->send_keys('K-means');
1703 $d->find_element_ok(
1704 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1709 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1710 'xpath', 'clear k number' )->clear();
1711 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1712 'xpath', 'select k number' )->send_keys(4);
1714 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1715 'xpath', 'run cluster' )->click();
1717 $d->find_element_ok( 'no_queue', 'id', 'no job queueing-- Genotype' )
1720 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo trials tr pop geno kmeans cluster plot');
1723 $d->driver->refresh();
1726 my $cor = $d->find_element( 'Genetic correlation',
1727 'partial_link_text', 'scroll up' );
1728 $d->driver->execute_script(
1729 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1732 $d->find_element_ok( 'si_pops_select', 'id', 'select list sl pop' )
1735 $d->find_element_ok(
1736 '//select[@id="si_pops_select"]/option[text()="Training population 2804608595"]',
1741 $d->find_element_ok( 'DMCP', 'id', 'rel wt 1st' )->send_keys(3);
1743 $d->find_element_ok( 'FRW', 'id', 'rel wt 2st' )->send_keys(5);
1745 $d->find_element_ok( 'calculate_si', 'id', 'calc selection index' )
1750 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1751 $d->driver->execute_script(
1752 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1755 $d->find_element_ok( 'cluster_pops_select', 'id', 'click cluster pops' )
1758 $d->find_element_ok(
1759 '//select[@id="cluster_pops_select"]/option[text()="2804608595-DMCP-3-FRW-5"]',
1763 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1764 'xpath', 'select k-means' )->send_keys('K-means');
1766 $d->find_element_ok(
1767 '//select[@id="cluster_data_type_select"]/option[text()="Genotype"]',
1771 $d->find_element_ok(
1772 '//*[starts-with(@id, "selection_proportion_input")]',
1773 'xpath', 'fill in sel prop' )->send_keys('15');
1775 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1776 'xpath', 'clear k number' )->clear();
1777 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1778 'xpath', 'select k number' )->send_keys(4);
1780 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1781 'xpath', 'run cluster' )->click();
1783 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1785 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo triasl tr pop SIndex geno kmeans cluster plot');
1788 $d->driver->refresh();
1791 # #$d->get_ok('/solgs/models/combined/trials/2804608595/traits/1971973596/gp/1', 'combined trials models summary page');
1795 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
1796 my $elem = $d->driver->execute_script(
1797 "arguments[0].scrollIntoView(true);window.scrollBy(0, -600);",
1801 $d->find_element_ok('//tr[@id="' . $accessions_dt_id .'"]//*[contains(text(), "Predict")]', 'xpath', 'accessions dataset sel pred')->click();
1805 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1806 $d->driver->execute_script(
1807 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1810 $d->find_element_ok( 'cluster_pops_select', 'id',
1811 'select dataset type sl pop - GEBV' )->click();
1813 $d->find_element_ok(
1814 '//select[@id="cluster_pops_select"]/option[text()="'
1815 . $accessions_dt_name . '"]',
1817 'select dataset sel pop'
1820 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1821 'xpath', 'select k-means' )->send_keys('K-means');
1823 $d->find_element_ok(
1824 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1825 'xpath', 'select gebv' )->click();
1827 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1828 'xpath', 'clear k number' )->clear();
1829 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1830 'xpath', 'select k number' )->send_keys(4);
1832 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1833 'xpath', 'run GEBV cluster' )->click();
1835 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1837 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo trials accessions dataset gebv kmeans cluster plot');
1840 $d->driver->refresh();
1844 $d->find_element( 'Predict', 'partial_link_text', 'scroll up' );
1845 my $elem = $d->driver->execute_script(
1846 "arguments[0].scrollIntoView(true);window.scrollBy(0, -200);",
1849 $d->find_element_ok('//tr[@id="' . $accessions_list_id .'"]//*[contains(text(), "Predict")]', 'xpath', 'accessions list sel pred')->click();
1853 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1854 $d->driver->execute_script(
1855 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1858 $d->find_element_ok( 'cluster_pops_select', 'id',
1859 'select list type sl pop -- GEBV' )->click();
1861 $d->find_element_ok(
1862 '//select[@id="cluster_pops_select"]/option[text()="'
1863 . $accessions_list_name . '"]',
1865 'select list sel pop'
1868 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1869 'xpath', 'select k-means' )->send_keys('K-means');
1871 $d->find_element_ok(
1872 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1873 'xpath', 'select gebv' )->click();
1875 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1876 'xpath', 'clear k number' )->clear();
1877 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1878 'xpath', 'select k number' )->send_keys(4);
1880 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1881 'xpath', 'run cluster' )->click();
1883 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1885 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo triasl tr pop accessions list gebv kmeans cluster plot');
1888 $d->driver->refresh();
1892 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1893 $d->driver->execute_script(
1894 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1897 $d->find_element_ok( 'cluster_pops_select', 'id', 'select list sl pop' )
1900 $d->find_element_ok(
1901 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1903 'select trial sel pop'
1906 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1907 'xpath', 'select k-means' )->send_keys('K-means');
1909 $d->find_element_ok(
1910 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1915 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1916 'xpath', 'clear k number' )->clear();
1917 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1918 'xpath', 'select k number' )->send_keys(4);
1920 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1921 'xpath', 'run cluster' )->click();
1923 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1925 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo trials tr pop trial sel pop geno kmeans cluster plot');
1928 $d->driver->refresh();
1933 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1934 $d->driver->execute_script(
1935 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1938 $d->find_element_ok( 'cluster_pops_select', 'id',
1939 'select trial sl pop -- GEBV' )->click();
1941 $d->find_element_ok(
1942 '//select[@id="cluster_pops_select"]/option[text()="trial2 NaCRRI"]',
1944 'select trial sel pop'
1947 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1948 'xpath', 'select k-means' )->send_keys('K-means');
1950 $d->find_element_ok(
1951 '//select[@id="cluster_data_type_select"]/option[text()="GEBV"]',
1952 'xpath', 'select gebv' )->click();
1954 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1955 'xpath', 'clear k number' )->clear();
1956 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1957 'xpath', 'select k number' )->send_keys(4);
1959 $d->find_element_ok( '//*[starts-with(@id, "run_cluster")]',
1960 'xpath', 'run cluster' )->click();
1962 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
1964 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo trials tr pop trial gebv kmeans cluster plot');
1967 $d->driver->refresh();
1971 $d->find_element( 'Models summary', 'partial_link_text',
1973 $d->driver->execute_script(
1974 "arguments[0].scrollIntoView(true);window.scrollBy(0,-100);",
1977 $d->find_element_ok(
1978 '//table[@id="model_summary"]//*[contains(text(), "DMCP")]',
1979 'xpath', 'go to training model pg' )->click();
1983 $d->find_element( 'Clustering', 'partial_link_text', 'scroll up' );
1984 $d->driver->execute_script(
1985 "arguments[0].scrollIntoView(true);window.scrollBy(0,-200);",
1989 $d->find_element_ok( '//*[starts-with(@id, "cluster_type_select")]',
1990 'xpath', 'select k-means' )->send_keys('K-means');
1992 $d->find_element_ok(
1993 '//*[starts-with(@id, "cluster_data_type_select")]/option[text()="Genotype"]',
1998 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
1999 'xpath', 'clear k number' )->clear();
2000 $d->find_element_ok( '//*[starts-with(@id, "k_number_input")]',
2001 'xpath', 'select k number' )->send_keys(4);
2003 $d->find_element_ok(
2004 '//*[starts-with(@id, "run_cluster")]',
2006 'run genotype cluster'
2009 $d->find_element_ok( 'no_queue', 'id', 'no job queueing' )->click();
2011 $d->find_element_ok('//*[contains(text(), "Cluster variances")]', 'xpath', 'check combo trials tr pop trait model geno kmeans cluster plot');
2014 foreach my $list_id ( $trials_list_id, $accessions_list_id, $plots_list_id ) {
2015 $list_id =~ s/\w+_//g;
2016 $solgs_data->delete_list($list_id);
2019 foreach my $dataset_id ( $trials_dt_id, $accessions_dt_id, $plots_dt_id ) {
2020 $dataset_id =~ s/\w+_//g;
2021 $solgs_data->delete_dataset($dataset_id);