Edit argument checking of summarizePeptides to throw more informative
errors.