Skip to content

Commit e11cad4

Browse files
authored
Merge pull request #48 from aberHRML/devel
v1.0.2
2 parents 2e386a4 + f970c3a commit e11cad4

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: assignments
22
Title: Molecular Formula Assignment For High Resolution ESI-MS Based Metabolomics Data
3-
Version: 1.0.1
3+
Version: 1.0.2
44
Authors@R: person("Jasen", "Finch", email = "jsf9@aber.ac.uk", role = c("aut", "cre"))
55
Description: A molecular formula assignment approach for electrospray ionisation high resolution mass spectrometry based metabolomics data.
66
Depends: R (>= 3.5.0),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# assignments 1.0.2
2+
3+
* add a fix for an error caused by a breaking change in [`tidygraph`](https://tidygraph.data-imaginist.com/index.html) v1.3.0.
4+
15
# assignments 1.0.1
26

37
* The default ppm threshold has been reduced to 4.

R/components.R

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,15 @@ clean <- function(graph,adduct_rules_table){
4545
}
4646

4747
if (length(cleaned_graph) > 0){
48-
cleaned_graph <- cleaned_graph %>%
49-
bind_graphs()
48+
bound_graphs <- tbl_graph()
49+
for (graph in cleaned_graph) {
50+
bound_graphs <- bind_graphs(
51+
bound_graphs,
52+
graph
53+
)
54+
}
55+
56+
cleaned_graph <- bound_graphs
5057
}
5158

5259
return(cleaned_graph)

0 commit comments

Comments
 (0)