Any number of advanced demosaicing algorithms can be used for this step, most these days are mature and very good although some are better than others depending on the subject. Some raw converters like open source RawTherapee and dcraw offer the user the choice of a number of different algorit...