Various R/shell scripts