Function used as internal function to get ranges in the function.
ranges_function(df_ave, values_df)
df_ave
average per residues
values_df
data frame with values.
ranges per set