__author__ = "A. Murat Eren" __copyright__ = "Copyright 2015, The anvio Project" __credits__ = [] __license__ = "GPL 3.0" __version__ = anvio.__version__ __maintainer__ = "A. Murat Eren" __email__ = "*****@*****.**" __status__ = "Development" # Mock progress object that will not report anything, for general clarity. progress = Progress() progress.verbose = False run = Run() run.verbose = False def rev_comp(seq): return seq.translate(complements)[::-1] class Multiprocessing: def __init__(self, target_function, num_thread = None): self.cpu_count = multiprocessing.cpu_count() self.num_thread = num_thread or (self.cpu_count - (int(round(self.cpu_count / 10.0)) or 1)) self.target_function = target_function self.processes = [] self.manager = multiprocessing.Manager() def get_data_chunks(self, data_array, spiral = False):
__author__ = "A. Murat Eren" __copyright__ = "Copyright 2015, The anvio Project" __credits__ = [] __license__ = "GPL 3.0" __version__ = anvio.__version__ __maintainer__ = "A. Murat Eren" __email__ = "*****@*****.**" __status__ = "Development" # Mock progress object that will not report anything, for general clarity. progress = Progress() progress.verbose = False run = Run() run.verbose = False def rev_comp(seq): return seq.translate(complements)[::-1] class Multiprocessing: def __init__(self, target_function, num_thread=None): self.cpu_count = multiprocessing.cpu_count() self.num_thread = num_thread or (self.cpu_count - (int(round(self.cpu_count / 10.0)) or 1)) self.target_function = target_function self.processes = [] self.manager = multiprocessing.Manager() def get_data_chunks(self, data_array, spiral=False):