Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
11 changes: 9 additions & 2 deletions R/components.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down