From 43eb99c11d8ef371bba926a3a63bf599b56820ae Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Fri, 31 May 2013 16:01:31 +0000 Subject: Fixed the location column for the quick search page Began writing some jquery to automatically open the first tab within each species tab on the quick search page (not done yet) --- wqflask/base/trait.py | 2 +- wqflask/wqflask/my_pylmm/pyLMM/lmm.py | 2 + wqflask/wqflask/templates/quick_search.html | 110 ++-------------------------- wqflask/wqflask/views.py | 2 +- 4 files changed, 12 insertions(+), 104 deletions(-) (limited to 'wqflask') diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 7c1c035c..dde8b8d8 100755 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -302,7 +302,7 @@ class GeneralTrait: #XZ: assign SQL query result to trait attributes. for i, field in enumerate(self.dataset.display_fields): - setattr(self, field, traitInfo[i]) + setattr(self, field, str(traitInfo[i])) if self.dataset.type == 'Publish': self.confidential = 0 diff --git a/wqflask/wqflask/my_pylmm/pyLMM/lmm.py b/wqflask/wqflask/my_pylmm/pyLMM/lmm.py index 62fb0fbd..5bfc3a01 100644 --- a/wqflask/wqflask/my_pylmm/pyLMM/lmm.py +++ b/wqflask/wqflask/my_pylmm/pyLMM/lmm.py @@ -243,6 +243,8 @@ def run(pheno_vector, with Bench("LMM_ob fitting"): lmm_ob.fit() + print("genotype_matrix: ", genotype_matrix.shape) + with Bench("Doing GWAS"): t_stats, p_values = GWAS(pheno_vector, genotype_matrix, diff --git a/wqflask/wqflask/templates/quick_search.html b/wqflask/wqflask/templates/quick_search.html index 5877a840..01588924 100644 --- a/wqflask/wqflask/templates/quick_search.html +++ b/wqflask/wqflask/templates/quick_search.html @@ -105,7 +105,7 @@ {% if result.result_fields['species'] == species %} - {{ result.result_fields['name'] }} @@ -114,7 +114,7 @@ {{ result.result_fields['dataset_name'] }} {{ result.result_fields['symbol'] }} {{ result.result_fields['description'] }} - {{ result.result_fields['chr'] }} : {{ result['mb'] }} + Chr {{ result.result_fields['chr'] }}: {{ result.result_fields['mb'] }} {{ result.result_fields['mean'] }} {{ result.result_fields['lrs'] }} @@ -168,105 +168,6 @@ {% endblock %} - {# - - - - - - - - - - - - - - {% for result in results.phenotype %} - - - - - - - - - - {% endfor %} - -
IdSpeciesGroupDescriptionLRSYearAuthors
{{ result.result_fields['phenotype_id'] }}{{ result.result_fields['species'] }}{{ result.result_fields['group_name'] }}{{ result.result_fields['description'] }}{{ result.result_fields['lrs'] }} - - {{ result.result_fields['year'] }} - - {{ result.result_fields['authors'] }}
- -
- - - - - - - - - - - - - - - - {% for result in results.mrna_assay %} - - - - - - - - - - - - {% endfor %} - -
Record IDSpeciesGroupData SetSymbolDescriptionLocationMean ExprMax LRS
- - {{ result.result_fields['species'] }}{{ result.result_fields['group_name'] }}{{ result.result_fields['dataset_name'] }}{{ result.result_fields['symbol'] }}{{ result.result_fields['description'] }}{{ result.result_fields['chr'] }} : {{ result['mb'] }}{{ result.result_fields['mean'] }}{{ result.result_fields['lrs'] }}
-
-
- - - - - - - - - - - - {% for result in results.genotype %} - - - - - - - - {% endfor %} - -
MarkerSpeciesGroupData SetLocation
- - {{ result.result_fields['marker_name'] }} - - {{ result.result_fields['species'] }}{{ result.result_fields['group_name'] }}{{ result.result_fields['dataset_name'] }}{{ result.result_fields['chr'] }} : {{ result.result_fields['mb'] }}
-
- #} - - {% block js %} @@ -274,9 +175,14 @@ -