Behavioral Data Collection and Circular Statistics: Testing Phototaxis in an Isopod

Project Summary

This data expedition focused on the mechanisms animals use to orient using environmental stimuli, the methods that scientists use to test hypotheses about orientation, and the statistical methods used with circular orientation data. Students collected their own data set during the class period, performed hypothesis testing on their data using circular statistics in R, and aggregated their data to formally test the hypothesis that isopods orient with light using an RShiny online application.

This exercise served as a capstone to a series of four class sessions on orientation and navigation, where students read primary scientific literature that used circular statistics in their methods. This data exercise was used to give students the opportunity to collect their own data, discover why linear statistics wouldn’t be sufficient to analyze them, and then implement their own analysis. The goal of this course was to give students a better understanding of circular statistics, with hands-on application in forming and testing a hypothesis.

Themes and Categories

Graduate students: Jesse Granger and Jason Dinh

Sponsoring faculty member: Dr. Stephen Nowicki

Undergraduate course: Biology 268 - Mechanisms of Animal Behavior

Guiding Questions

  • How do animals orient with respect to light?
  • How would you design an experiment to test for different kinds of orientation?
  • How is circular data different than linear data?


Students were assigned homework to install R and RStudio and to learn how to navigate the interface of RMarkdown. Students learned to assign variables, code within code chunks, and use functions so that they would be prepared for the in-person R exercise.

Students also were assigned a brief reading that walked them through the differences between phototaxis and photokinesis. The goal of the reading was to encourage students to start thinking about how to analyze data, and how to design their own experiments. As such, the reading ended with two questions, the first asking them to interpret data in their own words, and the second asking them to brainstorm experimental designs to test for phototaxis.

In-Class Exercises

In class pictureThis expedition allowed students to develop and test hypotheses relating to animal orientation. For homework before class, students were assigned a reading that explores orientation in response to light cues and were sent a learning module that walked them through the basics of coding in R markdown.

To familiarize students with the concept, the lesson began with a brief lecture on animal orientation and linear statistics, centered around their assigned reading. Students then discussed different ways they could test an animal for phototaxis (movement towards or away from a light source).

Then, students began an experiment to test if pillbugs exhibited phototaxis. We discussed the basic life-history and biology of pillbugs, and students broke into groups to form a hypothesis on whether or not pill bugs would have phototaxis. Students hypothesized that pillbugs would exhibit negative phototaxis because they prefer damp, cold habitat.

After developing hypotheses, students began the experiment. In their groups of four, the students performed the following experiment:

  1. Students in groups of four were each given five isopods, an orientation arena, and one lamp.
  2. They placed one isopod in the center of the arena under a clear plastic cup.
  3. They placed the lamp at the northern part of the arena and, for the “light on” experimental animals turned it on, and for the “light off” control animals left it off.
  4. Students then lifted the cups from the isopod and recorded the direction it was moving in when it reached the edge of the orientation arena.
  5. One member of each group then wrote their results on the chalkboard. We aggregated class data to test if pillbugs exhibited phototaxis.

After performing their experiments, the instructors led the group in a discussion of how to analyze their data. At this point, the concept of circular statistics was introduced once the students realized why the data they collected could not be analyzed with traditional linear statistics. We held a brief lecture on circular statistics, and led students through example code on how to plot and analyze the data they had collected in R.  Students returned to their breakout groups to analyze their data while Data Expedition instructors circulated the room to provide additional programming assistance.

In the final 10 minutes of class, the Data Expedition instructors used the full class’s data to demonstrate how to use an Rshiny app that performs circular statistics. While the experimental group was significantly oriented away from the light source, the control group was also significantly oriented. While this had not been anticipated originally, it provided a valuable addition to the course material because it allowed for discussion about experimental design and including control groups.

As an “exit ticket” students were asked to show the plot and statistical tests from their group’s data, as well as interpret the results from the full class’s data in relation to their hypothesis and discuss ways to improve the experiment in the future. All of the groups had predicted the isopods would be negatively phototactic. Many students additionally suggested an improvement to the experimental set up would be closing the windows to prevent stray light from interfering with the experiment.


Related Projects

This data expeditions module used three full course sessions to introduce undergraduate hydrology students with minimal programming background to:

  • Public water data (water quantity and chemistry)

  • Spatial analysis of water data

  • 2 core, spatial datasets produced by the USGS that enable spatial analysis

  • The programming language R

  • R based tools for water data

  • Spatial analysis and maps in R

Exposure to local pathogens is a significant selective pressure on the human genome: the strongest selective forces identified in modern human populations are for mutations that confer increased resistance to malaria infection. Understanding how human genetic variation impacts susceptibility to pathogens can reveal important aspects of disease biology and reveal novel treatment targets. By using genome-wide association of infection-related cellular traits, we can connect human genetic variation to disease susceptibility in a controlled laboratory environment. Identification of the variants, genes, and cellular pathways involved in infectious disease pathogenesis can inform host-directed therapeutics, clinically effective risk stratification, and epidemiological prediction. This data expedition explores the effect of host genetic variation on chemokine response to Chlamydia infection.

How does human habitation relate to patterns in the natural environment? How do species respond to the presence of, and changes in, habitation? In this Data Expedition, students make use of public datasets from the Census and the Global Biodiversity Information Facility to examine relationships between individual species and human settlements. Students develop introductory skills in spatial data manipulation and visualization in R, exposure to powerful datasets and tools, and critical thinking skills in assessing dataset quality and bias.