How to use the comparem.parallel.Parallel function in comparem

To help you get started, we’ve selected a few comparem examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dparks1134 / CompareM / comparem / prodigal.py View on Github external
def run(self, genome_files):
        """Call genes with Prodigal.

        Parameters
        ----------
        genome_files : list of str
            Nucleotide fasta files to call genes on.
        """

        self.logger.info('  Identifying genes within genomes:')

        parallel = Parallel(self.cpus)
        parallel.run(self._producer, None, genome_files, self._progress)