Code for performing MWASs