Glycerol-1-phosphate dehydrogenase [NAD(P)+]; Catalyzes the NAD(P)H-dependent reduction of dihydroxyacetonephosphate (DHAP or glycerone phosphate) to glycerol-1-phosphate (G1P). The G1P thus generated is probably used for the synthesis of phosphoglycerolipids in Gram-positive bacterial species (By similarity) (394 aa)