Begin by crossing one to five-day-old female virgin flies with one to seven-day-old adult male flies to produce progeny with the desired genotype. To do so, place the flies in a fly cage with a meal cap. Use 10 to 15 female virgins with five to 10 males to get optimal yield.
Incubate the fly cage containing flies at 25 degrees Celsius. Change the meal cap daily to prevent overcrowding of larvae which reduces the quality of the dissected brains. If the meal cap has more than 30 larvae, split it into half and replace one portion with a fresh meal cap cut in half.
Incubate the meal caps with larvae at 25 degrees Celsius until the larvae reached the desired age.