Deconvolution related scripts