function to calculate medians for every gene for a batch
calcMediansForBatch(batch, samples, data)
the medians for genes in a batch