1.4.1.12 (2R,4S)-2,4-diaminopentanoate + H2O + NAD(P)+ = (2R)-2-amino-4-oxopentanoate + NH3 + NAD(P)H + H+ - -