From 67cbdbc0f38e4d6ac024cc612ac162c273b11a6c Mon Sep 17 00:00:00 2001 From: hechth Date: Tue, 29 Oct 2024 15:46:44 +0100 Subject: [PATCH 1/2] Re-enable parallelism in feature.align.R Fixes RECETOX/recetox-aplcms#229 --- CHANGELOG.md | 4 ++++ R/feature.align.R | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e7a8f3..886d40b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [dev] - unreleased +### Changed +- re-enabled parallelism in alignment step []() + ## [0.13.3] - 2024-09-16 ### Changed - fixed not working eic splitting code [#226](https://github.com/RECETOX/recetox-aplcms/pull/226) diff --git a/R/feature.align.R b/R/feature.align.R index 5f541a0..b17f3c5 100644 --- a/R/feature.align.R +++ b/R/feature.align.R @@ -215,7 +215,7 @@ create_aligned_feature_table <- function(features_table, # retention time alignment aligned_features <- foreach::foreach( i = seq_along(sel.labels), .combine = "comb", .multicombine = TRUE - ) %do% { + ) %dopar% { rows <- create_features_from_cluster( dplyr::filter(features_table, cluster == sel.labels[i]), mz_tol_relative, From 3131194e9b48f55e0294d1f73f13f5ada58dfe81 Mon Sep 17 00:00:00 2001 From: hechth Date: Tue, 29 Oct 2024 16:08:14 +0100 Subject: [PATCH 2/2] updated changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 886d40b..7fe38b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [dev] - unreleased ### Changed -- re-enabled parallelism in alignment step []() +- re-enabled parallelism in alignment step [#230](https://github.com/RECETOX/recetox-aplcms/pull/230) ## [0.13.3] - 2024-09-16 ### Changed