creates new function with wrapper to calculate meanrankshifts across replicates