Because summary statistics are not uniformly released, preparation differs per summary statistics.
prepare_MAGMA_sumstats.sh
QC_MAGMA.sh
MAGMA_v.1.08_celltype_analysis_hm3_mhc_restricted.R
MAGMA_v.1.08_celltype_analysis_hm3_mhc_restricted_KI_level2_v33.R
MAGMA_v108_celltype_analysis_SCZ_all_QC.R
To map rsids for SNPs without CHRPOS, 1kg .bim files were used.
Reference data used for MAGMA analyses can be found here.
Also see the original MAGMA Celltyping repository