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), 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. 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)