count: false <!-- colours: oxford blue #0A214F White #FFFFFF Portland Orange #F46036 Titatium Yellow #F0E100 Persian Green #1B998B --> *this slide intentionally left blank* --- count: false background-image: url(images/1948_medStudentOrgLab.jpg) background-position: center background-size: cover .inverse-title[ ## The Numbers, What Do They Mean‽ </br>Incorporating Data-Science Into Undergraduate Laboratories ### **David Hall**, Hui Peng, and Jessica D'eon #### Dept. of Chemistry Univeristy of Toronto.</br> ] ??? - Image from UofT Med School Lab, 1948. From Uoft Archives --- ## Undergraduate laboratories are supposed to give students a deeper understanding of the scientific process by reflecting scientific research .pull-left[ <img src="images/1963_undergradChemLab.jpg" width="7925" height="500px" style="display: block; margin: auto;" /> ] -- .pull-right[ <img src="images/1971_envStudies_3.jpg" width="800px" style="display: block; margin: auto;" /> ] .bottomright[ UofT Photo </br> Archives ] ??? - Could take Orgo chem from previous lab and would survive in Anal. Chem. Lab --- ## Whether we like it or not, we are living in the age of data;</br> chemistry is no exception. .pull-left[ <img src="images/2015-undergradLab.jpeg" width="1520" height="400px" style="display: block; margin: auto;" /> ] .bottomleft[ Dept. of Chem. </br> UofT ] -- .pull-right[ <img src="images/burgetEtAl-Nature-2020.gif" width="900px" style="display: block; margin: auto;" /> ] .bottomright[ Burger et al. </br><i> Nature </i> (2020) ] ??? - Org chem wouldn't survive with this robot... --- ## The fundamentals are as important as ever... <img src="images/chemLab.png" width="900px" style="display: block; margin: auto;" /> --- ## ... we just need to introduce similar fundamentals for data analysis <img src="images/wickhamDataSci.png" width="900px" style="display: block; margin: auto;" /> .bottomright[ Wickham &</br> Grolemund (2016) ] --- class: center, middle count: false background-image: url(images/1958_UofTaerospace.png) background-position: center background-size: cover .inverse[ # Excel into Intro Chem ] .bottomright[ UofT Photo Archives ] ??? - **REMEMBER** intro chem is mostly life-science kids (i.e. not chemists!) --- ## Titrations <img src="images/titration.png" width="800px" style="display: block; margin: auto;" /> ??? - Already included Excel in intro chem, i.e. Titrations --- ## Calorimetry <img src="images/CHM135_cal2.png" width="800px" style="display: block; margin: auto;" /> ??? - And Calorimetry - Problem is inconsistency implementation and introduction - No comprehensive lab showcasing excel --- ## Developed new lab using existing real-world data and automated intermediate work with R <img src="images/lab1Scheme.png" width="800px" style="display: block; margin: auto;" /> --- ## 7-Day subset analysis explicitly introduces fundamental Excel operations to students <img src="images/lab1Work.gif" width="1200px" style="display: block; margin: auto;" /> --- ### Air Quality App expands scope of lab while minimizing additional rote Excel operations <img src="images/visible-app.png" width="1200px" style="display: block; margin: auto;" /> ??? - > 3600 students have done this lab - Student's appreciate data science - "It's actually useful outside of this course, unlike titrations." - Survey Respondant --- class: center, middle ### “I thought Lab 1[Air Quality Lab] was really effective. **I honestly feel like the excel and data analysis skills I developed were more useful to me as a science student than doing the actual wet lab work**, like titrations. Obviously that stuff is important too, but it can be learned easily and isn't applicable in many other classes beyond chem. **Using excel, reading trendlines, and working through methodical steps to solve an end problem are applicable skills I can use in any class.**” – CHM135, Apr. 2021 ??? - Another good quote: "The Excel component of Lab1 also helped me with an assignment of MAT135! Thanks a million" – Nov. 2021. --- class: center, middle count: false background-image: url(images/1968_UofTPCLab.jpg) background-position: center background-size: cover .inverse[ # R for Upper Years ] .inverse-bottomright[ UofT Photo Archives ] ??? - Switching to implementation of Data-Science for upper years - Inspired by the worldload of CHM410 labs - CHM410 is mix of 4th years and 1st year Grads --- class: center, middle background-image: url(images/fieldtripmap.png) background-position: center background-size: contain ??? - Students pool samples together and get a lot of data - Numerous call curves leads to rote excel work - Excel workflow doesn't scale as pool of analytes increases - Excel hides errors (see numbers not operations...) - Limited statistical test and visualizations --- ## In response to demands from students and needs from courses we wrote *R4EnvChem*, a course agnostic data analysis textbook <img src="images/r4envchem_splash.png" width="1000px" style="display: block; margin: auto;" /> ??? - Central, course-agnostic textbook - Information can be used by any prof/TA/student - Common workflows and functions means transferability between courses - Scores of options at fingertips once established in R - This presentation made with R... --- ## Accessible interactive widgets expand student's independent data analysis .pull-left[ ```r # Import & Tidy data atr <- read_csv("data/atr.csv") %>% pivot_longer(cols = 2:4, names_to = "plastic", values_to = "intensity") # Create plot p <- ggplot(data = atr, aes(x = wavenumber, y = intensity, colour = plastic)) + geom_point() # interactive plot ggplotly(p) ``` ] .pull-right[
] ??? - This snippet replaces a lot of commercial software... - Students can spend more time thinking about their data then handling it... --- ## A little bit of R can expand data visualizations .pull-left[ <img src="images/airplot.png" width="600px" /> ] -- .pull-right[ <img src="images/airmap.png" width="600px" /> ] .bottomright[ Chapter 18 </br> <i> R4EnvChem</i> ] ??? - Air stream sensors collect conitnuous data every minute - Left plot approximates excel analysis - Right plot is R and displays dimensionailty of data --- class: center, middle ### "I think **R coding helped streamline** a lot of the data analysis parts and it was really helpful" - CHM410, Fall 2021</br> </br>"...I'm wondering if the chemistry department might **consider having students take an R programming course** so that they don't have to learn R on the fly?" - CHM410, Fall 2021</br> </br>"My first pull request! **WooHoo!**" - J. D'eon</br> </br>"**...it was that easy**...why didn't I learn this sooner" - Anonymous 5th year PhD Colleague --- ## Conclusion, Future Directions, and Acknowledgements .pull-left[ **Conclusions** - Student's appreciate Data Science - Scores of accessible tools and ressources for research and teaching - It's *free* **Future Work** - Refine introduction of R into upper year courses - Interatively build upon Excel skills across intro chem course. ] .pull-right[ *R4EnvChem* authors: - [Steven Kutarna](https://sites.chem.utoronto.ca/penglab/content/people) - [Kristen Yeh](https://www.abbattgroup.ca/members/) - [Hui Peng](https://sites.chem.utoronto.ca/penglab/content/people) - [Jessica' Deon](https://www.chemistry.utoronto.ca/people/directories/all-faculty/jessica-deon) *R4EnvChem* contributors: - [Jeremy Gauthier](https://sites.chem.utoronto.ca/chemistry/staff/MABURY/people.html) - [Stephanie Schneider](https://www.abbattgroup.ca/members/) - [Andrew Folkerson](https://sites.chem.utoronto.ca/chemistry/staff/MABURY/people.html) - [Mark Panas](https://sites.chem.utoronto.ca/murphygroup/content/mark-panas) *CHM135: Excel* contributors: - [Andrew Folkerson](https://sites.chem.utoronto.ca/chemistry/staff/MABURY/people.html) - [David Liu (Comp Sci)](https://www.cs.toronto.edu/~david/) - [Jessica D'eon](https://www.chemistry.utoronto.ca/people/directories/all-faculty/jessica-deon) *CHM135: Excel* feedback: - [Kris Quinlan](https://www.chemistry.utoronto.ca/people/directories/all-faculty/kristine-quinlan) - [Andy Dicks](https://www.chemistry.utoronto.ca/people/directories/all-faculty/andrew-p-dicks) - [Scott Browning](https://www.chemistry.utoronto.ca/people/directories/all-faculty/scott-browning) ] --- ## Questions? .pull-left[ All code and projects discussed in this talk (including this presentation) are available on GitHub: [**github.com/UofTChem-Teaching**](https://github.com/UofTChem-Teaching) *R4EnvChem* webbook: [uoftchem-teaching.github.io/R4EnvChem/](https://uoftchem-teaching.github.io/R4EnvChem/) ] .pull-right[ <img src="images/uoftrepo.png" width="400px" /> ] --- ## SI: Student Feedback from lab 1 <img src="images/lab1-survey.png" width="800px" />