Since this method is getting worked on, could you please add a docstring and expand the complex data structure that is ``rarefaction_data``? This method has quite a few magic numbers in it and it isn't clear what ``rarefaction_data`` is