trichelab / spiky

2 stars 5 forks source link

Multi-thread scan contig functions #33

Closed lmckinno closed 3 years ago

ttriche commented 3 years ago

If we're going to parallelize this, it is better to use BiocParallel so that users can either run sequentially, in parallel with multiworkers, in parallel with multiprocess, or some other supported backend:

http://lcolladotor.github.io/2016/03/07/biocparallel/

Separately, I had implemented a toy version just using lapply() for vectors of files, which I can PR separately. The idea was for the functions to have a bin/summarize argument that could emit a GRanges or DataFrame suitable for arbitrary model fits, per Samantha's Q.