code: def filter(self):
          
  
          logging.info('Filtering contigs')
          for i in range(self.cpus):
              # Send the threads to the filter method
              threads = Thread(target=self.filterthreads, args=())
              # Set the daemon to true - something to do with thread management
              threads.setDaemon(True)
              # Start the threading
              threads.start()
          with progressbar(self.metadata) as bar:
              for sample in bar:
                  # Set the name of the unfiltered assembly output file
                  if sample.general.bestassemblyfile != 'NA':
                      sample.general.contigsfile = sample.general.assemblyfile
                      self.filterqueue.put(sample)
          self.filterqueue.join()
docs: Filter contigs based on depth