darktable has a "raw denoise" module that does noise reduction before the demosaic step. In practice, it is rarely better than the other modules that work on the demosaiced image.
Most nosenoise reduction options in raw development software work between the demosaic step and the sharpening.