modified sweep_read.py to not rely on get_percentile_count