Skip to content

Commit

Permalink
fix: update internal script to new MassBank database scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed Dec 5, 2023
1 parent a9538e0 commit ad73cdf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: CompoundDb
Type: Package
Title: Creating and Using (Chemical) Compound Annotation Databases
Version: 1.7.0
Version: 1.7.1
Authors@R: c(person(given = "Jan", family = "Stanstrup",
email = "[email protected]",
role = c("aut"),
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# CompoundDb version 1.7

## Changes in version 1.7.1

- Adapt script to create CompDb from MassBank to new MassBank database format.

# CompoundDb version 1.3

## Changes in version 1.3.3
Expand Down
2 changes: 1 addition & 1 deletion inst/scripts/massbank_to_compdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ massbank_to_compdb <- function(con, path = ".") {
version <- dbGetQuery(con, "select * from LAST_UPDATE")
metad <- make_metadata(source = "MassBank",
source_version = sub("\n", "", version$VERSION[1]),
source_date = format(version$TIME,
source_date = format(version$LAST_UPDATE,
format = "%Y-%m-%d"),
url = "https://massbank.eu/MassBank/")
message("Creating database ... ", appendLF = FALSE)
Expand Down

0 comments on commit ad73cdf

Please sign in to comment.