Mercurial > repos > recetox > recetox_aplcms_align_features
comparison utils.R @ 6:c280a10b274a draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 505c3374a3e1e9aa450fcb752f2b8f87558fedbb
| author | recetox |
|---|---|
| date | Thu, 25 May 2023 09:12:35 +0000 |
| parents | 7bb4564d7b1a |
| children | 4494396d987f |
comparison
equal
deleted
inserted
replaced
| 5:7bb4564d7b1a | 6:c280a10b274a |
|---|---|
| 39 return(features) | 39 return(features) |
| 40 } | 40 } |
| 41 | 41 |
| 42 save_parquet_collection <- function(feature_tables, sample_names, subdir) { | 42 save_parquet_collection <- function(feature_tables, sample_names, subdir) { |
| 43 dir.create(subdir) | 43 dir.create(subdir) |
| 44 for (i in seq_len(length(feature_tables))) { | 44 for (i in seq_len(length(table$feature_tables))) { |
| 45 filename <- file.path(subdir, paste0(subdir, "_", sample_names[i], ".parquet")) | 45 filename <- file.path(subdir, paste0(sample_names[i], ".parquet")) |
| 46 feature_table <- as.data.frame(feature_tables[[i]]) | 46 feature_table <- as.data.frame(table$feature_tables[[i]]) |
| 47 feature_table <- save_sample_name(feature_table, sample_names[i]) | 47 feature_table <- save_sample_name(feature_table, sample_names[i]) |
| 48 arrow::write_parquet(feature_table, filename) | 48 arrow::write_parquet(feature_table, filename) |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
