The process by which genes are turned on or off, which is critical for controlling stem cell behavior.