Characterizing viral samples using machine learning for Raman and absorption spectroscopy