From 22e1c3b33984da853d1403843d9d2ce7a596c335 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Mon, 21 Feb 2011 17:22:14 -0500 Subject: support application of the standard deviation filter --- oplot.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'oplot.py') diff --git a/oplot.py b/oplot.py index fd969de..63589b8 100755 --- a/oplot.py +++ b/oplot.py @@ -29,6 +29,9 @@ options = [ o('-n', '--normalize', action='store_true', dest='normalize', help='use normalize counts'), + o('-d', '--stdev', action='store_true', dest='use_std', + help='use standard devation filter'), + o('-c', '--cut-off', action='store', dest='cutoff', type='int', help='max number of samples to use'), @@ -57,6 +60,7 @@ defaults = { 'extent' : 3, 'cutoff' : None, 'normalize' : False, + 'use_std' : False, # formatting options 'binsize' : 0.25, @@ -170,8 +174,9 @@ class OverheadPlotter(defapp.App): data, max_idx, min_idx, iqr_max, iqr_min = get_data(datafile, scale, - self.options.extent, - self.options.cutoff) + extent=self.options.extent, + cutoff=self.options.cutoff, + stdev=self.options.use_std) samples = data[min_idx:max_idx] discarded = (len(data) - len(samples)) / float(len(data)) * 100 -- cgit v1.2.2