Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Jul 29, 2023
1 parent 9bdd1e4 commit 1145699
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/annotate_spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ annotate_spectra <- function(input = params$files$spectral$raw,
query_precursors <- spectra@backend@spectraData$precursorMz
query_spectra <- spectra@backend@peaksData
query_rts <- spectra@backend@spectraData$rtime
if (is.null(query_rts)) {
query_rts <- rep(NA_real_, length(spectra))
}

if (approx == FALSE) {
log_debug("Reducing library size...")
Expand Down Expand Up @@ -182,6 +185,9 @@ annotate_spectra <- function(input = params$files$spectral$raw,
lib_smiles <- spectral_library@backend@spectraData$smiles
lib_smiles2D <- spectral_library@backend@spectraData$smiles_2D
lib_rts <- spectral_library@backend@spectraData$rtime
if (is.null(lib_rts)) {
lib_rts <- rep(NA_real_, length(spectral_library))
}
lib_name <- spectral_library@backend@spectraData$name
lib_mf <- spectral_library@backend@spectraData$formula
lib_mass <- spectral_library@backend@spectraData$exactmass
Expand Down

0 comments on commit 1145699

Please sign in to comment.