MS2Query has it's own scripts for cleaning spectra, however, this can be changed at some point to use matchms pipelines instead.