latools/latools.py
def filter_reports(self, analytes, filt_str='all', nbin=5, samples=None,
                       outdir=None, subset='All_Samples'):
        """
        Plot filter reports for all filters that contain ``filt_str``
        in the name.
        """
        if outdir is None:
            outdir = self.report_dir + '/filters/' + filt_str
            if not os.path.isdir(self.report_dir + '/filters'):
                os.mkdir(self.report_dir + '/filters')
        if not os.path.isdir(outdir):
            os.mkdir(outdir)

        if samples is not None:
            subset = self.make_subset(samples)

        samples = self._get_samples(subset)

        with self.pbar.set(total=len(samples), desc='Drawing Plots') as prog:
            for s in samples:
                _ = self.data[s].filter_report(filt=filt_str,
                                            analytes=analytes,
                                            savedir=outdir,
                                            nbin=nbin)
                prog.update()
            # plt.close(fig)
        return
def filter_reports(self, analytes, filt_str='all', nbin=5, samples=None,
                       outdir=None, subset='All_Samples'):
        if outdir is None:
            outdir = self.report_dir + '/filters/' + filt_str
            if not os.path.isdir(self.report_dir + '/filters'):
                os.mkdir(self.report_dir + '/filters')
        if not os.path.isdir(outdir):
            os.mkdir(outdir)

        if samples is not None:
            subset = self.make_subset(samples)

        samples = self._get_samples(subset)

        with self.pbar.set(total=len(samples), desc='Drawing Plots') as prog:
            for s in samples:
                _ = self.data[s].filter_report(filt=filt_str,
                                            analytes=analytes,
                                            savedir=outdir,
                                            nbin=nbin)
                prog.update()
            # plt.close(fig)
        return
def filter_reports ( self , analytes , filt_str = 'all' , nbin = 5 , samples = None , outdir = None , subset = 'All_Samples' ) : if outdir is None : outdir = self . report_dir + '/filters/' + filt_str if not os . path . isdir ( self . report_dir + '/filters' ) : os . mkdir ( self . report_dir + '/filters' ) if not os . path . isdir ( outdir ) : os . mkdir ( outdir ) if samples is not None : subset = self . make_subset ( samples ) samples = self . _get_samples ( subset ) with self . pbar . set ( total = len ( samples ) , desc = 'Drawing Plots' ) as prog : for s in samples : _ = self . data [ s ] . filter_report ( filt = filt_str , analytes = analytes , savedir = outdir , nbin = nbin ) prog . update ( ) # plt.close(fig) return
Plot filter reports for all filters that contain ``filt_str``
        in the name.
Plot filter reports for all filters that contain filt_str in the name .