microbiome / miaSim

microbiome data simulation package
https://microbiome.github.io/miaSim/
Artistic License 2.0
18 stars 10 forks source link

parallel computation in caseStudy2 #71

Closed gaoyu19920914 closed 1 year ago

gaoyu19920914 commented 1 year ago

Add an example of parallel computation in caseStudy2 using foreach. The calculation time decreased from 47.10s to 23.99s using multicores instead of single thread. You can test whether this works on yours.

antagomir commented 1 year ago

Thanks! I converted the case study 2 into supporting the TreeSE format.

The cases 1 & 3 still to be done. Will need some more time for this.

If you could check can you run this (case 2) locally on your own that would be good: rmarkdown::render("caseStudy2-NutrientThreshold.Rmd")

The examples are too slow for automated rendering in Github Actions so we might need to skip vignette builds in GHA and switch to doing this locally. This should be possible but good to first make sure that the vignettes work.