Code to dereplicate a series of sample