Skip to content

Commit

Permalink
commented mspectra inputs require ms-lima format
Browse files Browse the repository at this point in the history
  • Loading branch information
wverastegui committed Nov 7, 2023
1 parent e6e0d05 commit 2daf1a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions analysis/R_scripts/match_spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ match_spectra <- function(reference_file, simulated_file, output_file, ppm = 5)
write.table(matched_spectra_df, file = paste(output_file,"filterNA",sep = '_'), sep = "\t", quote = FALSE, row.names = FALSE)
}

##############################################
# Simulated spectra must be in MS-LIMA format.
##############################################

# matching for all peaks
reference_file_all_peaks <- file.path('analysis/data/experimental/RECETOX_GC-EI_MS_20201028.msp')
simulated_file_all_peaks <- file.path('analysis/data/filtered/simulated_matchms_filter_1%I_all_peaks.msp')
Expand Down

0 comments on commit 2daf1a0

Please sign in to comment.