Fly on the Wall

Making fly science approachable for everyone

Tag: day-in-the-life

Fly Life: Fruit flies in the science classroom

Do you remember sitting in the science classroom in grade school, looking at pictures of pea plants to learn about inheritance? What if you could have tested Gregor Mendel’s theories of inheritance yourself (without watching plants grow)?

Well, you can! As it turns out, fruit flies are a great teaching resource for the science classroom. They are cheap, easy to maintain and store, and are well-understood, since they’ve been studied by researchers for over a century. These characteristics allow teachers to set up hands-on experiments for their students, and quickly adapt to students’ curiosity-driven questions.

Fruit flies can be used for teaching a variety of scientific concepts, from genetics to behavior, and the related experiments can be engaging, fun, and easy to understand. I want to talk about some of my favorite examples (some of which have gone from science fair projects to published peer-reviewed articles!).

Inheritance and Evolution

Punnet square for red- and white-eyed fliesAn example of a punnet square for mating a white-eyed and red-eyed fly. The white eye is caused by a sex-linked recessive genetic mutation. Male offspring have white eyes because they only have one copy of the gene (the mutation) from the white-eyed “mother”, while female offspring have a backup normal “red” copy inherited from the “father”.

Do you remember doing the punnet squares for Mendel’s pea plants? Punnet squares are diagrams used to predict what traits offspring will inherit from two different parents, and is the most common way to teach inheritance in the classroom. Fruit flies, with their short lifespan and quick generation time (offspring are available in only two weeks!), are perfect for a hands-on version of this experiment. Flies with different traits (such as red eyes and white eyes, or curly wings and straight wings) can be mated. While waiting for the next generation, students can predict what percentage of the offspring will have each trait. Two weeks later, they can sort the flies to test their predictions.

UNC’s The Wonderful Fruit Fly website is great for seeing how punnet square experiments can be performed with fruit flies.

Red- vs white-eyed fliesThe fly on the top has a mutation that causes white eyes. The fly on the bottom has normal red eyes. source

Another great example for an experiment was described in an article published in the journal Evolution. Because multiple generations of fruit flies can be studied in a matter of months, students can actually see evolution “in action”. In the published example, students added a single red-eyed fly to a large population of white-eyed flies. Flies with white eyes have poor eyesight and are less healthy than flies with red eyes. Over the course of the experiment, students watched as the healthier red-eye gene spread through the population, simulating the way a random advantageous mutation in nature can spread via natural selection.

This is only a couple of the dozens of interesting genetic experiments that can be performed in class. For more examples, the Tree of Life web project site is a great resource. 

Behavior and Health

Dyed food experimentFlies that eat dyed food have colored abdomens. Image modified from Isono and Morita, 2010.

Although fruit flies are most commonly associated with genetics experiments, they can also be used for behavioral experiments. One of my favorite examples is testing flies for food preference, in which students can give a group of flies a choice between two or more food sources, and count the number of flies that land on each. To make it even more interesting, the food can be dyed different colors. Once ingested, the dye is visible through the flies’ abdomens, allowing students to count how many flies have chosen each food based on color. Wouldn’t it be cool to see blue and purple flies under a microscope?!

Food preference experiments from middle school science fairs have actually made the news a couple of times over the past two years. In 2013, student Ria Chhabra developed an experiment to test whether organic food really is better than conventional food. She raised flies on each type, and found that flies raised with organic foods lived longer and healthier lives. The results were published in the peer-reviewed scientific journal PLoS One.

A similar story was released in 2014, when student Simon Kaschock-Marenda wondered whether fruit flies would like artificial sweeteners as much as normal sugar. He raised flies on sugar and several different sweeteners, including Truvia. His results, also published in PLoS One, showed that erythritol, the main ingredient of Truvia, was actually toxic to fruit flies.

These two heartwarming stories demonstrate how fruit flies can be used in the classroom to inspire students to pursue curiosity-driven science.

Want to start using flies in your classroom? There are many resources available online for experiment ideas, as well as “How-to” guides for setting up and maintaining a fly lab. One of the most comprehensive is the “How-to Fly Manual” from the researchers at the University of Manchester’s Fly Facility.  Another great resource is the “Drosophila Melanogaster in the classroom” blog, which details how to set up a classroom using fruit flies.  


Many thanks to my friend Brittney for her help with resources and ideas for this post, gathered from her own volunteer experiences teaching fruit fly science to eager young minds.

I would also like to thank Dr. Andreas Prokop at the University of Manchester for some of the resources and inspiration for this post.  He and other fly researchers at the University of Manchester maintain an impressive array of lay information about fruit fly research and resources on their website (not just about how flies can be used in the classroom, but also how flies can be used to conduct high-quality research in disadvantaged regions and countries, where resources and funds may be limited).


Fly Life: Watching fruit flies sleep

Did you know that fruit flies sleep? There are actually a lot of similarities between sleep in fruit flies and sleep in humans and other mammals. For example…

Caffeinated flyImage modified from Colwell, 2007
  • Like us, fruit flies get most of their sleep at night, and they also have an afternoon slump (although unlike us, they actually give in to their sleep desires instead of running for coffee).
  • Their sleep is affected by the same drugs: caffeine, cocaine, and modafinil (an alertness drug) keep them awake, while antihistamines (allergy medication) make them drowsy just like us.
  • They sleep more at higher temperatures (think of lazy summer days)
  • If they get a bad night’s sleep, they’ll try to sleep more the next day to make up for it. In fact, sleep deprivation even affects their memory performance (have you ever noticed that your memory isn’t so great after a bad night’s sleep?)

And the comparisons don’t stop there. Over the years, fruit flies have proven to be a great animal model for studying sleep, and researchers have used them to improve our understanding of why sleep is important. In fact, earlier this year a group of researchers found that young flies need sleep for normal brain development.

But, how do fly researchers actually study sleep in these tiny flies?

DAM system

The most common method is called the Drosophila Activity Monitoring (DAM) system. Flies are loaded into individual tubes (Figures A-C) and placed in a DAM machine (Figure D). An infrared beam (marked as a red line in Figure D) crosses each fly tube, and the machine notes when the beam is blocked by the fly. If the beam isn’t broken for five or more minutes (meaning the fly hasn’t moved), it’s counted as sleep. Using this method, researchers can analyze how long a fly sleeps, how many times it goes to sleep and wakes back up (called sleep bouts) and the duration of each sleep bout.

divider line

DAM system in incubatorClick here for a larger version of the picture

To conduct the sleep experiment, the machines are hooked up to a computer and placed in an incubator, which controls the humidity, temperature, and lights. The light cycle is usually set to lights-on for 12 hours (day) and then lights-off for 12 hours (night), and experiments often run for several days or even weeks. In this picture, a newer version of DAM machines is shown (one is circled in red).

divider line

Sleepless dataSleepless mutants sleep much less than normal (control) flies. Image modified from Koh et al, 2008

This system allows researchers to study the sleep habits of dozens of flies at once, and it’s relatively quick and easy (compared to studying sleep in mammals). So what’s an example of a real sleep experiment? In 2008, the Seghal lab used this system to find sleep-related genes. They ran a genetic screen in which they exposed a population of flies to toxic chemicals that caused random mutations in their DNA. Then, they tested the flies to see if any had sleep abnormalities. They found that flies with a mutation in one gene (which they aptly named sleepless) slept about 80% less! Isn’t it crazy that a single gene can affect such a complex behavior so dramatically?

Sleepless dataA common way to display fly sleep habits over the day and night period for one day. The amount of sleep within 30 minute intervals (y axis) is plotted for the time of day (x axis). Note that Sleepless mutants (open circles) sleep much less than control flies (filled circles). The bar at the bottom indicates time: white = day, black = night. Image modified from Koh et al, 2008

divider line
In another experiment that same year, the Guo lab was interested in finding out how sleep affects memory. They tested the sleeping habits of a fly mutant called amnesiac, which can’t form long-term memories. They found that amnesiac mutants had very fragmented sleep (meaning that they woke up a lot during the night). The fact that the same gene is involved in both sleep and memory provides a link that researchers can use for future studies about how these behaviors are connected.

Tracker setupA schematic of the Tracker setup. Image modified from Gilestro, 2012

Although studies have shown that the DAM system is relatively accurate for measuring fly sleep, more sophisticated methods have recently been developed for tracking fly movement. These systems (sometimes called the “Tracker” program) rely on cameras and sensitive tracking software to measure movement at a much higher resolution. As use of the Tracker program becomes more widespread, I have no doubt that we will gain yet more insights into how and why we sleep.



  • Potdar S. (2013). Lessons From Sleeping Flies: Insights from Drosophila melanogaster on the Neuronal Circuitry and Importance of Sleep , Journal of Neurogenetics, 27 (1-2) 23-42. DOI:
  • Koh K., M. N. Wu, Z. Yue, C. J. Smith & A. Sehgal (2008). Identification of SLEEPLESS, a Sleep-Promoting Factor, Science, 321 (5887) 372-376. DOI:
  • Liu W., Beika Lu & Aike Guo (2008). amnesiac regulates sleep onset and maintenance in Drosophila melanogaster, Biochemical and Biophysical Research Communications, 372 (4) 798-803. DOI:
  • Donelson N., Kim E.Z., Slawson J.B., Vecsey C.G., Huber R. & Griffith L.C. (2012). High-resolution positional tracking for long-term analysis of Drosophila sleep and locomotion using the “tracker” program., PloS one, PMID:
  • Gilestro G.F. (2012). Video tracking and analysis of sleep in Drosophila melanogaster, Nature Protocols, 7 (5) 995-1007. DOI:

Fly Life: A day-in-the-life of a fly scientist

… and all you ever wanted to know about fruit flies!

Have you ever wondered how fruit fly scientists perform experiments with these tiny insects every day? Since I work with fruit flies, I want to provide a glimpse of the day-to-day life of a fly researcher (imagine you’re a “fly on the wall” in our lab!). My project is to figure out how neurons in the memory system communicate with each other to store long-term memories. I dissect fruit fly brains and use fluorescence imaging to watch what neurons are doing in real-time, and I collaborate with other graduate students and postdocs in the lab who perform behavioral experiments. But what are the day-to-day activities that every fly scientist has to take care of?
divider line

Incubator filled with fliesOur stocks of flies are kept in incubators at a stable temperature and light cycle.

My day usually doesn’t start until 10am when the lights in our flies’ incubators turn on. Most of our flies are kept in these refrigerator-sized incubators at a tightly-controlled temperature of 25°C (77°F), which is a fruit fly’s favorite temperature. They’re also kept on a strict light cycle—12 hours of light starting at 10am followed by 12 hours of darkness, which is important for reducing variation in behavioral experiments.
divider line

Rack of fly vialsFly lines are kept in vials, which are stored on racks for easy stacking.

There are thousands of different fly lines, but I only have about 200 of them. Each fly line is kept in a small vial with food at the bottom (the yellow stuff, which is a thick gel of yeast, sugar, and cornmeal) and a cotton plug at the top to keep them from escaping. Each fly line has to be “flipped” to a new vial every couple of weeks after the hundreds/thousands of flies have finished making a mess of their current home.

Close-up of fly vialA fly vial in use.

If you look closely, you can see pupal cases stuck to the walls of the vials. An adult fly can live for about a month at its optimal temperature, during which time a female can lay hundreds of eggs. The eggs hatch into larvae after approximately 24 hours, which spend about 6 days chewing through food and gaining strength. When the time is right, the larvae climb the sides of the vials and turn into pupae. After 4 motionless days, a new

Fruit fly developmentFruit flies go through four life stages: egg, larva, pupa, and adult. source

fly emerges from its pupal case. In total, it takes about 10 days after an egg is laid before a fly emerges. We can tell when a fly is about to come out because the pupa gets darker as the fly develops inside it. Within hours after emerging, an adult female fly is ready to mate and lay eggs.

divider line

Knocking out flies in a vialKnocking out flies with CO2 in the vial prevents them from escaping
Flies on a CO2 padFlies are dumped onto a CO2 pad to keep them unconscious while they are being sorted.

Now I need to get flies out of some of those vials so I can use them for my experiments. Carbon dioxide (CO2) knocks flies unconscious, so we slide a syringe needle in through the cotton top of the vial and pump in some CO2 to knock them out. Then we can dump the flies out onto CO2 pads, which have a porous styrofoam top and CO2 flow underneath to keep the flies unconscious.
divider line

Wild-type vs mutant fly eye colorsWild flies (bottom) have bright red eyes, but lab flies (top) usually have white eyes until a gene with an eye color feature is added. source

For our experiments, we need to make sure our flies have the right genes or mutations. In my case, I need flies with a fluorescent marker in memory-specific regions of the brain so I can see them under a microscope. This usually means I need to collect flies with two added genes in their DNA: a “marker” gene and a “location” gene. I will need to sort through the flies to make sure they have both genes. Luckily, when a scientist makes a fly line with a new gene, they attach some DNA code for a physical feature to the gene. Usually, the feature is a change in the flies’ eye color. Although wild flies have bright red eyes, our lab flies are bred to have a mutation in the eye color gene so that they have white eyes.

Flies with orange eyesLab flies with an extra gene inserted into their DNA usually have orange eyes. The shade of orange varies, but darker colors can often mean more than one new gene is present. Photo by Weiwu Xie, source

Because our flies have no eye color, adding a gene with an eye-color feature makes these flies stand out among their white-eyed brethren. This way, we can sort through the flies and pick out the ones with colored eyes, most commonly orange. Flies with two genes have darker orange eyes because the color adds up, which is great for me.

divider line

Flies on a CO2 padWe use a fine-tipped paintbrush to carefully sort through the flies without harming them.

I sort through the flies under a microscope using a paintbrush, and then brush the flies I need for my experiments into smaller vials to separate them.

divider line

fly morgue“Fly morgues” are used to dispose of flies. They also conveniently double as fly traps.

There are, of course, tons of flies I don’t need. We can’t possibly save all the unnecessary flies, so they get dumped into a “fly morgue”. These are bottles filled with a mixture of water, ethanol, apple cider vinegar, and a drop of dish detergent. The funnel keeps them from escaping after we dump them in, and the detergent breaks the surface tension of the water so the flies can’t just skim across the surface. It’s a quick and painless death for our noble subjects, and at least they die swimming in their beloved vinegar. These also make great traps in the home to take care of fruit fly infestations. If you don’t have any vinegar, a splash of wine should do it.

divider line

Dissection microscopeA dissection microscope. A dish with wells for dissecting is shown underneath.

Now it’s time to prepare the flies for experiments. For some people in our lab, this means loading the live flies into machines that track their activity for sleep or memory studies. For others, such as myself, it means dissecting out the brains from individual flies (or in some studies, the larvae instead), and performing experiments on the brains instead of live animals. As you can imagine, it takes a pretty long time to learn how to dissect out the tiny brain from these insects. We use a microscope to see what we’re doing, and very carefully remove the shell of the fly head using fine-tipped tweezers.

Close-up of fly head during dissectionA close-up “action shot” of a fly head being dissected. The head is being held with a pair of fine-tipped tweezers.

If you’re interested in seeing a dissection in action, check out this video from Jove, the Journal of Visualized Experiments.

divider line

Rendered depiction of adult fly brainA graphical representation of an adult fruit fly brain. Modified from Chiang et al, 2011

The final brain is too small to see by eye (though the most experienced among us can point out the tiny white dot in a drop of water). Fun fact: did you know that fruit flies don’t have blood like we do? They have an open circulatory system filled with “hemolymph”, which is a clear liquid filled

Picture of dissected fly brain in a wellClick on the picture for a bigger version. The brain (circled in red) is floating in a solution. Can you spot it?

with nutrients for cells. We dissect brains in a solution that’s designed to mimic this hemolymph and keep the brain alive as though it was still inside the fly.

divider line

Fluorescence microscope

Close-up of the imaging set-up for dissected fly brains. Fresh hemolymph-like solution is being perfused in from the right to replace the old solution being vacuumed out on the left. A 60x magnification objective is shining a tiny beam of fluorescent light into the dish.

Image of mushroom bodies in dissected brain

A structure in the fly brain called the “mushroom bodies” is fluorescing under a microscope. Photo by Jenett et al / CC-BY-2.0

Once I’ve dissected my brain, I pin it down in a dish for imaging. The brain-in-a-dish is placed under a microscope with a fluorescent light so that the fluorescent marker in the brain glows. During the experiments, I make sure that fresh hemolymph-like solution is flowing over the brain and being vacuumed out on the other side to keep the brain healthy, and sometimes I use this system to add in drugs which can affect activity in the neurons. This allows me to manipulate specific neurons and study how it affects communication between them.

divider line

In future “Fly Life” articles, I will go into detail about how specific experiments are performed, such as my imaging technique or the behavioral experiments used by my labmates. Until then…

Got any questions or want more details? Feel free to ask in the comments section!

© 2023 Fly on the Wall

Theme by Anders NorenUp ↑

Protected by Akismet
Blog with WordPress

Welcome Guest | Login (Brandeis Members Only)