getBarcodeData function

Get data for barcode and violin plots