Closed stainawarijar closed 1 year ago
In adding the clusters and metadata, the problem seems to be that passing the resulting data between the different modules is slow.
It could also be that the code for the spectra curation is slow. When clusters or metadata is added in the data import tab, the resulting data is returned to the next module (spectra curation) and then processed.
This could also explain why changing the ppm values in the spectra curation is slow?
I used the following in "mod_spectra_curation.R" to check:
observe({
req(LaCyTools_summary())
browser()
}, priority = 20)
The function "check_analyte_quality_criteria" appears to be what is slow.
The function "check_analyte_quality_criteria" depends on other functions.
The function "apply_chosen_criteria" is slow.
In the data import tab, adding the clusters and adding the metadata are both very slow, especially for larger summary files.
Try if this can be made faster.