Skip to content

Pip85/plotly-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plotly-challenge

Student project - Build a web dashboard showcasing data from the Belly Button Diversity Project.

software/tools used

  • HTML 5
  • Bootstrap 5
  • CSS
  • Javascript
  • Plotly.js
  • D3js

resources

project background

  • In this assignment, you will build an interactive dashboard to explore the Belly Button Biodiversity dataset (http://robdunnlab.com/projects/belly-button-biodiversity/), which catalogs the microbes that colonize human navels.
  • The dataset reveals that a small handful of microbial species (also called operational taxonomic units, or OTUs, in the study) were present in more than 70% of people, while the rest were relatively rare.

Step 1: Plotly

  1. Use the D3 library to read in samples.json.

  2. Create a horizontal bar chart with a dropdown menu to display the top 10 OTUs found in that individual.

    • Use sample_values as the values for the bar chart.

    • Use otu_ids as the labels for the bar chart.

    • Use otu_labels as the hovertext for the chart.

  3. Create a bubble chart that displays each sample.

  • Use otu_ids for the x values.

  • Use sample_values for the y values.

  • Use sample_values for the marker size.

  • Use otu_ids for the marker colors.

  • Use otu_labels for the text values.

  1. Display the sample metadata, i.e., an individual's demographic information.

  2. Display each key-value pair from the metadata JSON object somewhere on the page.

  3. Update all of the plots any time that a new sample is selected.

Belly Button Biodiversity

  • Public Science | Your Wild Life Projects

  • The coolest study of biodiversity on the human body on the planet!

  • The belly button is one of the habitats closest to us, and yet it remains relatively unexplored.

  • In January 2011, we launched Belly Button Biodiversity to investigate the microbes inhabiting our navels and the factors that might influence the microscopic life calling this protected, moist patch of skin home.

  • In addition to inspiring scientific curiosity, Belly Button Biodiversity inspired conversations about the beneficial roles microbes play in our daily lives.

  • People

    • Dan Fergus, Post-doc
    • Sarah Council, Post-doc, NC Museum of Natural Sciences and NC Central University
  • Project Publications

    • Hulcr, J., Latimer, A. M., Henley, J. B., Rountree, N. R.**, Fierer, N., Lucky, A., Lowman, M. D., Dunn RR 2012.
    • A jungle in there: bacteria in belly buttons are highly diverse, but predictable.
    • PLoS ONE 7(11): e47712. doi:10.1371/journal.pone.0047712

acknowledgement

process

  • Data on the project was provided in a JSON file - samples.json.
  • The data includes sample ID numbers, metadata on the person providing the sample, and sample data including levels of different bacteria found.
  • JavaScript, Plotly, D3, and Html were used to build a web dashboard showcasing data from the Belly Button Diversity Project.
  • The web page includes a dropdown of the sample ID’s. Upon selecting one of the ID’s the graphical and demographic data is displayed for that sample.
  • Demographic data is listed for the person giving a sample in a left side panel.
  • A bar chart renders showing the types of bacteria found on the y-axis and the amount of that bacteria found on the x-axis. The bar chart only includes data for the top 10 bacteria found in the sample.
  • A bubble chart also renders showing all the bacteria Id’s found in the sample on the x-axis and the numbers of each bacteria ID on the y-axis.
  • Once another sample is selected in the dropdown, the data updates for that sample.
  • The web page is published through GitHub Pages.

page1 page2

About

Practice exercise from Georgia Tech Data Analytics Boot Camp. Build web dashboard for sample data from Belly Button Biodiversity dataset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors