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

def Bio::PopGen::FDist::Async::FDistAsync::run_job (   self,
  parameters,
  input_files 
)
Runs FDist asynchronously.

   Gets typical Fdist parameters from a dictionary and
   makes a "normal" call. This is run, normally, inside
   a separate thread.

Definition at line 40 of file Async.py.

                                              :
        """Runs FDist asynchronously.

           Gets typical Fdist parameters from a dictionary and
           makes a "normal" call. This is run, normally, inside
           a separate thread.
        """
        npops = parameters['npops']
        nsamples = parameters['nsamples']
        fst = parameters['fst']
        sample_size = parameters['sample_size']
        mut = parameters.get('mut', 0)
        num_sims = parameters.get('num_sims', 20000)
        data_dir = parameters.get('data_dir', '.')
        is_dominant = parameters.get('is_dominant', False)
        theta = parameters.get('theta', 0.06)
        beta = parameters.get('beta', (0.25, 0.25))
        max_freq = parameters.get('max_freq', 0.99)
        fst = self.run_fdist(npops, nsamples, fst, sample_size,
            mut, num_sims, data_dir,
            is_dominant, theta, beta,
            max_freq)
        output_files = {}
        output_files['out.dat'] = open(data_dir + os.sep + 'out.dat', 'r')
        return fst, output_files


Generated by  Doxygen 1.6.0   Back to index