Extract indexes and barcodes, map samples to barcodes