GAPF analysis code