Skip to content

Commit

Permalink
Fix key gathering and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schulze committed Aug 16, 2023
1 parent 6c33d2b commit 29577a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/createMassBank.R
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ gatherData <- function(id)
## Get DTXSID

# Get the api key from the settings
api_key <- filterSettings$ccte_api_key
api_key = getOption("RMassBank")$settings$ccte_api_key

dtxsid <- getDTXSID(key = inchikey_split, api_key = api_key)

Expand Down Expand Up @@ -902,7 +902,7 @@ gatherData <- function(id)
}

link[["INCHIKEY"]] <- inchikey_split
link[["COMPTOX"]] <- comptox
link[["COMPTOX"]] <- dtxsid
if(length(csid)>0) if(any(!is.na(csid))) link[["CHEMSPIDER"]] <- min(as.numeric(as.character(csid[!is.na(csid)])))
mbdata[['CH$LINK']] <- link

Expand Down

0 comments on commit 29577a6

Please sign in to comment.