R scripts and code for the processing,