From 881f5b063611b9c4929b8dffe48c338d47675d50 Mon Sep 17 00:00:00 2001 From: hechth Date: Fri, 25 Jul 2025 17:08:51 +0200 Subject: [PATCH 1/5] updated tools and initial version --- tools/recetox_aplcms/macros.xml | 5 +++-- .../recetox_aplcms_align_features.xml | 2 +- .../recetox_aplcms_compute_clusters.xml | 2 +- .../recetox_aplcms_compute_template.xml | 2 +- .../recetox_aplcms_correct_time.xml | 2 +- .../recetox_aplcms_generate_feature_table.xml | 2 +- .../recetox_aplcms_merge_known_table.xml | 2 +- .../recetox_aplcms_recover_weaker_signals.xml | 2 +- .../recetox_aplcms_remove_noise.xml | 8 +++++--- .../test-data/peak_table_galaxy.parquet | Bin 163673 -> 163673 bytes .../test-data/remove_noise_docker.parquet | Bin 364902 -> 364902 bytes .../remove_noise_docker_threshold.parquet | Bin 1537 -> 1537 bytes 12 files changed, 15 insertions(+), 12 deletions(-) diff --git a/tools/recetox_aplcms/macros.xml b/tools/recetox_aplcms/macros.xml index c9c3ad665..071f8e4e4 100644 --- a/tools/recetox_aplcms/macros.xml +++ b/tools/recetox_aplcms/macros.xml @@ -1,9 +1,10 @@ - 0.13.4 + 0.14.0 r-recetox-aplcms - pymzml + pymzml + diff --git a/tools/recetox_aplcms/recetox_aplcms_align_features.xml b/tools/recetox_aplcms/recetox_aplcms_align_features.xml index 422be7789..c041424f2 100644 --- a/tools/recetox_aplcms/recetox_aplcms_align_features.xml +++ b/tools/recetox_aplcms/recetox_aplcms_align_features.xml @@ -1,4 +1,4 @@ - + align peaks across samples macros.xml diff --git a/tools/recetox_aplcms/recetox_aplcms_compute_clusters.xml b/tools/recetox_aplcms/recetox_aplcms_compute_clusters.xml index 214517ed3..cdacd4128 100644 --- a/tools/recetox_aplcms/recetox_aplcms_compute_clusters.xml +++ b/tools/recetox_aplcms/recetox_aplcms_compute_clusters.xml @@ -1,4 +1,4 @@ - + compute clusters of mz and rt across samples and assign cluster IDs to individual features macros.xml diff --git a/tools/recetox_aplcms/recetox_aplcms_compute_template.xml b/tools/recetox_aplcms/recetox_aplcms_compute_template.xml index 39fd57f97..0639b6db1 100644 --- a/tools/recetox_aplcms/recetox_aplcms_compute_template.xml +++ b/tools/recetox_aplcms/recetox_aplcms_compute_template.xml @@ -1,4 +1,4 @@ - + compute retention time correction template feature table macros.xml diff --git a/tools/recetox_aplcms/recetox_aplcms_correct_time.xml b/tools/recetox_aplcms/recetox_aplcms_correct_time.xml index 82ea0ade1..f9e7ec86c 100644 --- a/tools/recetox_aplcms/recetox_aplcms_correct_time.xml +++ b/tools/recetox_aplcms/recetox_aplcms_correct_time.xml @@ -1,4 +1,4 @@ - + correct retention time across samples for peak alignment macros.xml diff --git a/tools/recetox_aplcms/recetox_aplcms_generate_feature_table.xml b/tools/recetox_aplcms/recetox_aplcms_generate_feature_table.xml index 3b904c375..596483092 100644 --- a/tools/recetox_aplcms/recetox_aplcms_generate_feature_table.xml +++ b/tools/recetox_aplcms/recetox_aplcms_generate_feature_table.xml @@ -1,4 +1,4 @@ - + generate feature table from noise-removed HRMS profile data macros.xml diff --git a/tools/recetox_aplcms/recetox_aplcms_merge_known_table.xml b/tools/recetox_aplcms/recetox_aplcms_merge_known_table.xml index 72a2842f1..e3501063e 100644 --- a/tools/recetox_aplcms/recetox_aplcms_merge_known_table.xml +++ b/tools/recetox_aplcms/recetox_aplcms_merge_known_table.xml @@ -1,4 +1,4 @@ - + join knowledge from aligned features and known table. macros.xml diff --git a/tools/recetox_aplcms/recetox_aplcms_recover_weaker_signals.xml b/tools/recetox_aplcms/recetox_aplcms_recover_weaker_signals.xml index 5dc555ecc..2317c161e 100644 --- a/tools/recetox_aplcms/recetox_aplcms_recover_weaker_signals.xml +++ b/tools/recetox_aplcms/recetox_aplcms_recover_weaker_signals.xml @@ -1,4 +1,4 @@ - + recover weaker signals from raw data using an aligned feature table macros.xml diff --git a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml index aa5d6d8a7..5dca47606 100644 --- a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml +++ b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml @@ -1,4 +1,4 @@ - + filter noise and detect peaks in high resolution mass spectrometry (HRMS) profile data macros.xml @@ -10,7 +10,9 @@ - + + bioconductor-rawrr + - diff --git a/tools/recetox_aplcms/test-data/peak_table_galaxy.parquet b/tools/recetox_aplcms/test-data/peak_table_galaxy.parquet index 256483e78afd5ba90f42a1dc2357b88ed75ddca7..1f2defb8be8e6ee99d753a652f4059308d698a49 100644 GIT binary patch delta 24 fcmcclkMrg~&W0AoElgJRtd@EPdWO^O>zSkgg*ynL delta 24 fcmcclkMrg~&W0AoElgJRtQL9(dIr<&>zSkgg)0c3 diff --git a/tools/recetox_aplcms/test-data/remove_noise_docker.parquet b/tools/recetox_aplcms/test-data/remove_noise_docker.parquet index 3430baa21b690820dd24c3d2912445e4ae89801b..24a25aef4d49c85a897c7cd89a71617dfc2148fe 100644 GIT binary patch delta 30 mcmaF1NbK1nv4$4L7N!>F7M3lnUK3d@^$he3r~6N26$b#b{t5X2 delta 30 mcmaF1NbK1nv4$4L7N!>F7M3lnUK3d@^bGV2ru$E16$b#b?g{q* diff --git a/tools/recetox_aplcms/test-data/remove_noise_docker_threshold.parquet b/tools/recetox_aplcms/test-data/remove_noise_docker_threshold.parquet index f22314f15f262420458f5f1e4110047bcbb1799d..f76d51386a7cd33244c6cdaa427cd9ebb3bc37b4 100644 GIT binary patch delta 36 kcmZqVY2?}PlvT!3&p^*m(np4Y0gf1UvNA9PI0hL40FC7aZU6uP delta 36 kcmZqVY2?}PlvTz;&p^*W(np4Y0gf1UvNA9PI0hL40FAK*YybcN From 26dcd075addebaee586d414650dc0be583b19d88 Mon Sep 17 00:00:00 2001 From: hechth Date: Wed, 13 Aug 2025 13:03:49 +0200 Subject: [PATCH 2/5] added dependencies and configfiles to install rawrr - currently waiting for next aplcms release to fix a bug in the package --- .../recetox_aplcms_remove_noise.xml | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml index 5dca47606..10698706e 100644 --- a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml +++ b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml @@ -12,10 +12,17 @@ bioconductor-rawrr + mono @@ -23,7 +30,7 @@ sample_name <- readChar('sample_name.txt', file.info('sample_name.txt')\$size) profile <- remove_noise( - filename = '$input_file', + filename = 'input.${input_file.ext}', min_pres = $min_pres, min_run = $min_run, mz_tol = ${mz_tol}/1e6, @@ -38,6 +45,17 @@ profile <- save_sample_name(profile, sample_name) save_data_as_parquet_file(profile, '$output_file') ]]> + + + + @@ -51,7 +69,7 @@ - + + + + + From 5c3b4d2c6fdb1b3d6a798e69837c9ff916d26cf7 Mon Sep 17 00:00:00 2001 From: hechth Date: Fri, 15 Aug 2025 10:20:41 +0200 Subject: [PATCH 3/5] Fixed raw file reasing in the test and updated to 0.14.1 --- tools/recetox_aplcms/macros.xml | 2 +- tools/recetox_aplcms/recetox_aplcms_remove_noise.xml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/recetox_aplcms/macros.xml b/tools/recetox_aplcms/macros.xml index 071f8e4e4..5a710b470 100644 --- a/tools/recetox_aplcms/macros.xml +++ b/tools/recetox_aplcms/macros.xml @@ -1,5 +1,5 @@ - 0.14.0 + 0.14.1 r-recetox-aplcms diff --git a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml index 10698706e..ba5f4548e 100644 --- a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml +++ b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml @@ -20,10 +20,11 @@ #if $input_file.ext == 'thermo.raw': Rscript -e 'source("${install_rawrr}")' && Rscript -e 'source("${raw_id_getter}")' && + Rscript -e "future::plan(future::multicore, workers = \${GALAXY_SLOTS:-1})" && #else: python '${__tool_directory__}/mzml_id_getter.py' '$input_file'; #end if - Rscript -e 'source("${__tool_directory__}/utils.R")' -e 'source("${run_script}")' + Rscript -e 'source("${__tool_directory__}/utils.R")' -e 'source("${run_script}")' -e 'future::plan(future::sequential)' ]]> - + - + From 8cadee5616017b4f13a0a7d6b14b51602fce6dba Mon Sep 17 00:00:00 2001 From: hechth Date: Fri, 15 Aug 2025 14:13:53 +0200 Subject: [PATCH 4/5] using soft symlink or copying in case of raw file, currently there is no better solution --- tools/recetox_aplcms/macros.xml | 2 +- tools/recetox_aplcms/recetox_aplcms_remove_noise.xml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/recetox_aplcms/macros.xml b/tools/recetox_aplcms/macros.xml index 5a710b470..e510ef3b1 100644 --- a/tools/recetox_aplcms/macros.xml +++ b/tools/recetox_aplcms/macros.xml @@ -3,7 +3,7 @@ r-recetox-aplcms - pymzml + pymzml diff --git a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml index ba5f4548e..ea2dc2e76 100644 --- a/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml +++ b/tools/recetox_aplcms/recetox_aplcms_remove_noise.xml @@ -12,16 +12,17 @@ bioconductor-rawrr - mono + Date: Fri, 17 Oct 2025 09:50:46 +0200 Subject: [PATCH 5/5] trying tests with remote files urls --- .../recetox_aplcms_align_features.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/recetox_aplcms/recetox_aplcms_align_features.xml b/tools/recetox_aplcms/recetox_aplcms_align_features.xml index c041424f2..739cfeacb 100644 --- a/tools/recetox_aplcms/recetox_aplcms_align_features.xml +++ b/tools/recetox_aplcms/recetox_aplcms_align_features.xml @@ -56,7 +56,18 @@ - + + + + + + + + + + + +