preprocessReplicates function

Preprocess 'replicates' argument.