From fb8dfc86c3193a2f67b0b262bcbfedbf2d1b4edf Mon Sep 17 00:00:00 2001 From: jasenfinch Date: Wed, 20 Dec 2023 17:12:30 +0000 Subject: [PATCH 1/3] circumvent passing the list of graphs directly to tidygraph::bind_graphs in clean() with the breaking change in tidygraph v1.3.0 --- R/components.R | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/R/components.R b/R/components.R index da5f247..a9f7749 100644 --- a/R/components.R +++ b/R/components.R @@ -45,8 +45,15 @@ clean <- function(graph,adduct_rules_table){ } if (length(cleaned_graph) > 0){ - cleaned_graph <- cleaned_graph %>% - bind_graphs() + bound_graphs <- tbl_graph() + for (graph in cleaned_graph) { + bound_graphs <- bind_graphs( + bound_graphs, + graph + ) + } + + cleaned_graph <- bound_graphs } return(cleaned_graph) From f078e08ccafbe2fd2ab6d21886ea3b669f117b02 Mon Sep 17 00:00:00 2001 From: jasenfinch Date: Wed, 20 Dec 2023 17:13:41 +0000 Subject: [PATCH 2/3] bump version to 1.0.2 --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4871cf3..c6802eb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: assignments Title: Molecular Formula Assignment For High Resolution ESI-MS Based Metabolomics Data -Version: 1.0.1 +Version: 1.0.2 Authors@R: person("Jasen", "Finch", email = "jsf9@aber.ac.uk", role = c("aut", "cre")) Description: A molecular formula assignment approach for electrospray ionisation high resolution mass spectrometry based metabolomics data. Depends: R (>= 3.5.0), From f970c3a706725d3459dfdf70a9c67980553cf6f6 Mon Sep 17 00:00:00 2001 From: jasenfinch Date: Wed, 20 Dec 2023 17:15:08 +0000 Subject: [PATCH 3/3] update package NEWS --- NEWS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index d5d5f83..c671e52 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# assignments 1.0.2 + +* add a fix for an error caused by a breaking change in [`tidygraph`](https://tidygraph.data-imaginist.com/index.html) v1.3.0. + # assignments 1.0.1 * The default ppm threshold has been reduced to 4.