Utils for MS data processing Extracted from part of code used in personal data analysis If you find some func useful, feel free to copy and use