From 5a3f413da480123e3ad943b5f556e0a557f185cc Mon Sep 17 00:00:00 2001
From: Zachary Sloan
Date: Thu, 9 May 2013 22:54:34 +0000
Subject: Just added some print statements so I can show matrix/vector shapes
to Tony
---
wqflask/base/data_set.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'wqflask/base')
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 1520b180..d7328441 100755
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -385,7 +385,7 @@ class PhenotypeDataSet(DataSet):
continue # for now
if not webqtlUtil.hasAccessToConfidentialPhenotypeTrait(privilege=self.privilege, userName=self.userName, authorized_users=this_trait.authorized_users):
description = this_trait.pre_publication_description
- this_trait.description_display = description
+ this_trait.description_display = unicode(description, "utf8")
if not this_trait.year.isdigit():
this_trait.pubmed_text = "N/A"
--
cgit v1.2.3
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/base')
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 %}
- {#
-
-
-
- Id |
- Species |
- Group |
- Description |
- LRS |
- Year |
- Authors |
-
-
-
- {% for result in results.phenotype %}
-
- {{ 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'] }} |
-
- {% endfor %}
-
-
-
-
-
-
-
- Record ID |
- Species |
- Group |
- Data Set |
- Symbol |
- Description |
- Location |
- Mean Expr |
- Max LRS |
-
-
-
- {% for result in results.mrna_assay %}
-
-
-
- |
- {{ 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'] }} |
-
- {% endfor %}
-
-
-
-
-
-
-
- Marker |
- Species |
- Group |
- Data Set |
- Location |
-
-
-
- {% for result in results.genotype %}
-
-
-
- {{ 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'] }} |
-
- {% endfor %}
-
-
-
- #}
-
-
{% block js %}
@@ -274,9 +175,14 @@
-
@@ -175,16 +275,9 @@
+
{% endblock %}
+
diff --git a/wqflask/wqflask/templates/show_trait_details.html b/wqflask/wqflask/templates/show_trait_details.html
index c3abfc9f..b57c3c21 100644
--- a/wqflask/wqflask/templates/show_trait_details.html
+++ b/wqflask/wqflask/templates/show_trait_details.html
@@ -19,11 +19,11 @@
BLAT Specifity
- {{ "%.1f" % (this_trait.probe_set_specificity) }}
+ {{ "%s" % (this_trait.probe_set_specificity) }}
{% endif %}
{% if this_trait.probe_set_blat_score %}
BLAT Score
- {{ "%i" % (this_trait.probe_set_blat_score) }}
+ {{ "%s" % (this_trait.probe_set_blat_score) }}
{% endif %}
--
cgit v1.2.3