From e3f94a5f42849dcd1c3ea116037623c7bed826b1 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 7 Nov 2022 23:04:42 +0000 Subject: Change sample correlations to use full samplelist, including f1s/parents --- wqflask/wqflask/correlation/rust_correlation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py index a2f842bc..935ab699 100644 --- a/wqflask/wqflask/correlation/rust_correlation.py +++ b/wqflask/wqflask/correlation/rust_correlation.py @@ -238,7 +238,7 @@ def __compute_sample_corr__( sample_type=start_vars["corr_samples_group"], sample_data= json.loads(start_vars["sample_vals"]), all_samples=this_dataset.group.all_samples_ordered(), - dataset_samples=this_dataset.group.samplelist) + dataset_samples=this_dataset.group.all_samples_ordered()) if not bool(sample_data): return {} -- cgit v1.2.3 From 0b6d7199145c9fcaf1200e4b18fe24154da3a555 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Sun, 9 Oct 2022 21:26:40 +0300 Subject: Delete unused JavaScript files * wqflask/wqflask/static/new/javascript/dataset_select_menu.js: Delete. * wqflask/wqflask/static/new/javascript/dataset_select_menu_edit_trait.js: Ditto. --- .../static/new/javascript/dataset_select_menu.js | 169 -------------- .../javascript/dataset_select_menu_edit_trait.js | 253 --------------------- 2 files changed, 422 deletions(-) delete mode 100644 wqflask/wqflask/static/new/javascript/dataset_select_menu.js delete mode 100644 wqflask/wqflask/static/new/javascript/dataset_select_menu_edit_trait.js (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js deleted file mode 100644 index 9ad38102..00000000 --- a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js +++ /dev/null @@ -1,169 +0,0 @@ -$(function() { - var gndata; // loaded once for all to use - process_json = function(data) { - populate_species(); - return apply_default(); - }; - $.getJSON(gn_server_url+"int/menu/main.json", - function(data) { - gndata = data; - console.log("***** GOT DATA from GN_SERVER ****"); - console.log(gndata); - populate_species(); - }).error(function() { - console.log("ERROR: GN_SERVER not responding"); - alert("ERROR: GN_SERVER internal REST API is not responding"); - }); - - var populate_species = function() { - var species_list = Object.keys(gndata.menu).map(function(species) { - var mitem = gndata.menu[species].menu - // console.log("Species menu:",species,mitem) - return [species,mitem]; - }); - redo_dropdown($('#species'), species_list); - return populate_group(); - }; - window.populate_species = populate_species; - - var populate_group = function() { - var species = $('#species').val(); - var groups = gndata.groups[species].map(function(item) { - console.log("group:",item); - return item.slice(1,3); - }) - redo_dropdown($('#group'), groups); - return populate_type(); - }; - window.populate_group = populate_group; - - var populate_type = function() { - var species = $('#species').val(); - var group = $('#group').val(); - var type_list = gndata.menu[species].types[group].map(function(item) { - return [item,item]; - }); - - redo_dropdown($('#type'), type_list); - return populate_dataset(); - }; - window.populate_type = populate_type; - - var populate_dataset = function() { - var species = $('#species').val(); - var group = $('#group').val(); - var type = $('#type').val(); - var dataset_list = gndata.datasets[species][group][type].map(function(item) { - return item.slice(1,3); - }) - - return redo_dropdown($('#dataset'), dataset_list); - }; - window.populate_dataset = populate_dataset; - - var redo_dropdown = function(dropdown, items) { - var item, _i, _len, _results; - console.log("in redo:", dropdown, items); - dropdown.empty(); - _results = []; - for (_i = 0, _len = items.length; _i < _len; _i++) { - item = items[_i]; - if (item.length > 2){ - _results.push(dropdown.append($("") - this_opt_group.append($("") - this_opt_group.append($("") - this_opt_group.append($("") - this_opt_group.append($("