Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::PopGen::SimCoal::Cache::SimCoalCache::getSimulation (   self,
  sim_name,
  ploidy = '1',
  parDir = None 
)
   Makes available a cached simulation.

   @param sim_name simulation name.

   This mainly means untaring a file.

Definition at line 70 of file Cache.py.

                                                                  :
        '''
           Makes available a cached simulation.

           @param sim_name simulation name.

           This mainly means untaring a file.
        '''
        if parDir == None:
            parDir = os.sep.join([self.dataDir, 'SimCoal', 'runs'])
        tar_name = os.sep.join([self.cacheDir, ploidy, sim_name + 
            '.tar.bz2'])
        tf = tarfile.open(tar_name)
        tf.extractall(parDir)
        tf.close()


#if __name__ == '__main__':
#  cache = Cache('/home/work/werk/consolidator/sc_cache',
#      '/home/work/software/simcoal')
#  cache.run_simcoal('.', 'island_snp-50_0.0025_10_0.083_100_60.par', 102)

Generated by  Doxygen 1.6.0   Back to index