Includes processing of seg comparison and retests

Handles a few variations in numbering specific to the trial
dataset.