Script to parse sampling data