aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorZachary Sloan2012-10-30 18:22:27 -0500
committerZachary Sloan2012-10-30 18:22:27 -0500
commit45b6e6a5eea13dbd06045e8307e371994b8c3083 (patch)
tree08670e421895fc229994241c6450b76469a7021e /wqflask/base
parentdbda821555f2e9293d824b7c3662d251c0004252 (diff)
downloadgenenetwork2-45b6e6a5eea13dbd06045e8307e371994b8c3083.tar.gz
Worked on search_result.py code related to adding clause item to queries
Continued work on redesigning the trait data page design
Diffstat (limited to 'wqflask/base')
-rwxr-xr-xwqflask/base/webqtlTrait.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wqflask/base/webqtlTrait.py b/wqflask/base/webqtlTrait.py
index 46af6683..51d36ab2 100755
--- a/wqflask/base/webqtlTrait.py
+++ b/wqflask/base/webqtlTrait.py
@@ -226,7 +226,7 @@ class webqtlTrait:
def retrieveData(self, samplelist=None):
-
+
if samplelist == None:
samplelist = []
assert self.db and self.cursor
@@ -331,7 +331,7 @@ class webqtlTrait:
self.cursor.execute(query)
results = self.cursor.fetchall()
self.data.clear()
-
+
if results:
self.mysqlid = results[0][-1]
#if samplelist:
@@ -345,7 +345,7 @@ class webqtlTrait:
name = item[0]
self.data[name] = webqtlCaseData(*item) #name, value, variance, num_cases)
#end for
- # else:
+ # else:
# for item in results:
# val = item[1]
# if val != None:
@@ -604,7 +604,7 @@ class webqtlTrait:
formatted += "; " + self.probe_target_description
else:
formatted = "Not available"
- return formatted
+ return formatted.capitalize()
@property
def alias_fmt(self):
@@ -660,7 +660,7 @@ class webqtlTrait:
else:
return dict(name = self.db.fullname,
url = webqtlConfig.INFOPAGEHREF % self.db.name)
-
+
def calculate_correlation(self, values, method):
"""Calculate the correlation value and p value according to the method specified"""
@@ -693,4 +693,4 @@ class webqtlTrait:
else:
ZValue = 0.5*log((1.0+self.correlation)/(1.0-self.correlation))
ZValue = ZValue*sqrt(self.overlap-3)
- self.p_value = 2.0*(1.0 - reaper.normp(abs(ZValue)))
+ self.p_value = 2.0*(1.0 - reaper.normp(abs(ZValue)))