getBarcodes function

Get barcodes from a study