The genetics
Molecular biology appears only as the setting of a comic subplot. The boys' project, described in episode guides as an attempt to produce an enzyme by separating two "bases", is a piece of laboratory science used to set up the joke that the family's least studious son solves by accident a problem that defeats the two gifted ones. The episode guides consulted do not describe the experiment in any more detail, and they do not mention the outcome noted by the curator, in which the pharmaceutical company organising the competition steals the boys' idea; this point has not been verified. As far as the available summaries show, the episode does not attempt scientific accuracy, and genetics in the strict sense plays a minor role.
The story
Malcolm and his friend Stevie are working on a science experiment for a national competition, in which they try to produce an enzyme, but they cannot separate two bases that the experiment requires. Their brother Reese, who usually shows no interest in schoolwork, begs to help; when he is left alone with the experiment, he succeeds where they failed, but he cannot remember how he did it, and Malcolm and Stevie try to reconstruct the moment to find the answer. In other storylines, Dewey sells chocolate bars for school using dishonest sales pitches, with Francis's help, and Francis takes home a runt piglet and teaches it to be assertive.