scripts to preprocess reads