code: def _get_auto_rank(self, rank):
          
  
          if rank == "auto":
              # if we're an accessor for a ClassificationsDataFrame, use its _rank property
              if self.__class__.__name__ == "OneCodexAccessor":
                  return self._rank
  
              if self._field == "abundance":
                  return "species"
              else:
                  return "genus"
          else:
              return rank
docs: Tries to figure out what rank we should use for analyses