scripts for dictionary learning on westgrid