function to calculate batch effects for every gene in a batch
calcBatchEffectsForBatch(batch, samples, data, BPPARAM = SerialParam())
the medians p-values for genes in a batch