aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexanderlacuna2020-11-06 11:09:11 +0300
committerAlexanderlacuna2020-11-06 11:09:11 +0300
commit55aa5bf7ec00fb5b5d28a1847e7f8682a62aa547 (patch)
treebb5563cd2c8bbef1f84ce7b18ada06fa1046cbfb /wqflask
parentfd402e9248f32bd79c4527d7d2cec518d1079586 (diff)
downloadgenenetwork2-55aa5bf7ec00fb5b5d28a1847e7f8682a62aa547.tar.gz
remove whitespace
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/show_trait/SampleList.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/wqflask/show_trait/SampleList.py b/wqflask/wqflask/show_trait/SampleList.py
index 6a056144..191c29bd 100644
--- a/wqflask/wqflask/show_trait/SampleList.py
+++ b/wqflask/wqflask/show_trait/SampleList.py
@@ -8,6 +8,7 @@ from pprint import pformat as pf
from utility import Plot
from utility import Bunch
+
class SampleList(object):
def __init__(self,
dataset,
@@ -67,7 +68,8 @@ class SampleList(object):
self.sample_list.append(sample)
self.se_exists = any(sample.variance for sample in self.sample_list)
- self.num_cases_exists = any(sample.num_cases for sample in self.sample_list)
+ self.num_cases_exists = any(
+ sample.num_cases for sample in self.sample_list)
first_attr_col = self.get_first_attr_col()
for sample in self.sample_list:
@@ -162,6 +164,7 @@ class SampleList(object):
return first_attr_col
+
def natural_sort(a_list, key=lambda s: s):
"""
Sort the list into natural alphanumeric order.
@@ -170,8 +173,5 @@ def natural_sort(a_list, key=lambda s: s):
def convert(text): return int(text) if text.isdigit() else text
return lambda s: [convert(c) for c in re.split('([0-9]+)', key(s))]
sort_key = get_alphanum_key_func(key)
-
- sorted_list=sorted(a_list,key=sort_key)
-
+ sorted_list = sorted(a_list, key=sort_key)
return sorted_list
- \ No newline at end of file