add deps to setup script
function to extract a single spectrum