Adoni5 / mappy-rs

Python wrapping multithreaded bindings to minimap2
MIT License
5 stars 0 forks source link

Feature/back off #41

Closed Adoni5 closed 1 year ago

Adoni5 commented 1 year ago

CHANGES:

  1. Adds a back off flag to the map_batch function. If true, rather than error then trying to add more data from the iterable of sequence if the queue containing FASTQ to be mapped is full, it will backoff and try up to six more times, allowing space to be cleared by the mapping threads. This means that an effectively infinite iterator of sequence can be mapped.
  2. The thread pool is created once when we call enable_threading - so we don't have the overhead of spawning threads for each map_batch call.

Also - an overlooked print of the number of threads to stdout has been removed.