Skip to content

Commit

Permalink
Merge pull request #48 from aberHRML/devel
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
jasenfinch committed Jan 11, 2024
2 parents 2e386a4 + f970c3a commit e11cad4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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),
Expand Down
4 changes: 4 additions & 0 deletions 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.
Expand Down
11 changes: 9 additions & 2 deletions R/components.R
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

0 comments on commit e11cad4

Please sign in to comment.