Catalysis of the reaction: D-ribose 1-phosphate = D-ribose 5-phosphate. Also converts 2-deoxy-alpha-D-ribose 1-phosphate into 2-deoxy-D-ribose 5-phosphate.
alpha-D-glucose-1,6-bisphosphate:deoxy-D-ribose-1-phosphate phosphotransferase activity