diff options
author | zsloan | 2018-04-09 17:18:15 +0000 |
---|---|---|
committer | zsloan | 2018-04-09 17:18:15 +0000 |
commit | ad71cfe2828a2cc7378b83c0b0f476b53e7dd03b (patch) | |
tree | 75907e0f8eca80efde8f20681d1205343145aa72 /wqflask/utility | |
parent | c9b0ab18457929bd7ca458f7207e50fe14099d6a (diff) | |
download | genenetwork2-ad71cfe2828a2cc7378b83c0b0f476b53e7dd03b.tar.gz |
Removed unused code from convert_geno_to_bimbam.py and corestats.py
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/corestats.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/wqflask/utility/corestats.py b/wqflask/utility/corestats.py index c48183ed..67ca3ad3 100644 --- a/wqflask/utility/corestats.py +++ b/wqflask/utility/corestats.py @@ -23,47 +23,33 @@ class Stats: # convert all items to floats for numerical processing self.sequence = [float(item) for item in sequence] - def sum(self): if len(self.sequence) < 1: return None else: return sum(self.sequence) - def count(self): return len(self.sequence) - def min(self): if len(self.sequence) < 1: return None else: return min(self.sequence) - def max(self): if len(self.sequence) < 1: return None else: return max(self.sequence) - def avg(self): if len(self.sequence) < 1: return None else: return sum(self.sequence) / len(self.sequence) - - def median(self): - if len(self.sequence) < 1: - return None - else: - self.sequence.sort() - return self.sequence[len(self.sequence) // 2] - - def stdev(self): if len(self.sequence) < 1: return None @@ -73,7 +59,6 @@ class Stats: stdev = (sdsq / (len(self.sequence) - 1)) ** .5 return stdev - def percentile(self, percentile): if len(self.sequence) < 1: value = None @@ -86,7 +71,6 @@ class Stats: value = self.sequence[element_idx] return value - # Sample script using this class: # ------------------------------------------- # #!/usr/bin/env python |