[molecular_function] ATP binding <sep> ligase activity <sep> magnesium ion binding <sep> phosphoribosylglycinamide formyltransferase 2 activity <sep> phosphoribosylglycinamide formyltransferase activity