calculate_intensity.R: first version of the prepare regions from plotByFeatures function

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>