pipelines/genome_search_utils.py
def run(self):
        """
        Merge all tbl files in updir
        """

        upid = os.path.basename(self.updir)
        results_dir = os.path.join(self.updir, "search_output")
        res_files = [x for x in os.listdir(results_dir) if x.endswith('.tbl')]

        up_tbl = open(os.path.join(self.updir, self.upid +'.tbl'), 'w')

        for res_file in res_files:
            fp_in = open(os.path.join(results_dir, res_file), 'r')
            for line in fp_in:
                up_tbl.write(line)

            fp_in.close()

        up_tbl.close()

        Merge all tbl files in updir
        
Merge all tbl files in updir
Merge all tbl files in updir
def run(self):
        upid = os.path.basename(self.updir)
        results_dir = os.path.join(self.updir, "search_output")
        res_files = [x for x in os.listdir(results_dir) if x.endswith('.tbl')]
        up_tbl = open(os.path.join(self.updir, self.upid +'.tbl'), 'w')
        for res_file in res_files:
            fp_in = open(os.path.join(results_dir, res_file), 'r')
            for line in fp_in:
                up_tbl.write(line)
            fp_in.close()
        up_tbl.close()
def run ( self ) : upid = os . path . basename ( self . updir ) results_dir = os . path . join ( self . updir , "search_output" ) res_files = [ x for x in os . listdir ( results_dir ) if x . endswith ( '.tbl' ) ] up_tbl = open ( os . path . join ( self . updir , self . upid + '.tbl' ) , 'w' ) for res_file in res_files : fp_in = open ( os . path . join ( results_dir , res_file ) , 'r' ) for line in fp_in : up_tbl . write ( line ) fp_in . close ( ) up_tbl . close ( )
Merge all tbl files in updir
Merge all tbl files in updir
"""
        Merge all tbl files in updir
        """
self