# HG changeset patch # User recetox # Date 1685006063 0 # Node ID 477b5144a422e1f69e0c16555fd0111bba5c2bde # Parent 73d8537dcbd698e7edb5bfc0e86c93f055b684bd planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 505c3374a3e1e9aa450fcb752f2b8f87558fedbb diff -r 73d8537dcbd6 -r 477b5144a422 recetox_aplcms_generate_feature_table.xml --- a/recetox_aplcms_generate_feature_table.xml Wed May 24 14:48:31 2023 +0000 +++ b/recetox_aplcms_generate_feature_table.xml Thu May 25 09:14:23 2023 +0000 @@ -1,4 +1,4 @@ - + generate feature table from noise-removed HRMS profile data macros.xml @@ -63,7 +63,7 @@ - + diff -r 73d8537dcbd6 -r 477b5144a422 utils.R --- a/utils.R Wed May 24 14:48:31 2023 +0000 +++ b/utils.R Thu May 25 09:14:23 2023 +0000 @@ -41,9 +41,9 @@ save_parquet_collection <- function(feature_tables, sample_names, subdir) { dir.create(subdir) - for (i in seq_len(length(feature_tables))) { - filename <- file.path(subdir, paste0(subdir, "_", sample_names[i], ".parquet")) - feature_table <- as.data.frame(feature_tables[[i]]) + for (i in seq_len(length(table$feature_tables))) { + filename <- file.path(subdir, paste0(sample_names[i], ".parquet")) + feature_table <- as.data.frame(table$feature_tables[[i]]) feature_table <- save_sample_name(feature_table, sample_names[i]) arrow::write_parquet(feature_table, filename) }