Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
5 changes: 5 additions & 0 deletions course/04_IntroToTidyverse/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"githubPullRequests.ignoredPullRequestBranches": [
"main"
]
}
24 changes: 24 additions & 0 deletions course/04_IntroToTidyverse/data/MyNewDataset.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"specimen","Date","timepoint","condition","Tcells_count","CD45_count","Tcells_ProportionCD45","TcellsRounded"
"INF0032","2025-08-05",0,"Ctrl",361034,753064,0.479420075850127,0.48
"INF0159","2025-08-07",0,"Ctrl",452551,1190219,0.380224983805501,0.38
"INF0179","2025-07-26",0,"Ctrl",291777,940733,0.310159205640708,0.31
"INF0166","2025-08-28",0,"Ctrl",225650,739495,0.305140670322315,0.31
"INF0180","2025-08-05",0,"Ctrl",284958,1049663,0.271475702201564,0.27
"INF0155","2025-08-07",0,"Ctrl",281626,1065048,0.264425640910081,0.26
"INF0019","2025-08-05",0,"Ctrl",208055,873622,0.238152198548113,0.24
"INF0148","2025-07-29",0,"Ctrl",234335,1013985,0.231103024206472,0.23
"INF0023","2025-08-22",0,"Ctrl",218435,968035,0.225647832981246,0.23
"INF0158","2025-08-07",0,"Ctrl",280913,1249338,0.224849480284759,0.22
"INF0013","2025-08-22",0,"Ctrl",182751,836573,0.218451946213899,0.22
"INF0134","2025-07-29",0,"Ctrl",127866,689676,0.185400100916952,0.19
"INF0052","2025-07-26",0,"Ctrl",164771,915203,0.180037652848603,0.18
"INF0622","2025-08-30",0,"Ctrl",161924,939307,0.17238666378511,0.17
"INF0199","2025-08-28",0,"Ctrl",169736,1112176,0.152616132698422,0.15
"INF0100","2025-07-26",0,"Ctrl",208241,1438047,0.144808201679083,0.14
"INF0614","2025-08-30",0,"Ctrl",224396,1569007,0.143017845044668,0.14
"INF0149","2025-07-31",0,"Ctrl",107900,857845,0.125780298305638,0.13
"INF0030","2025-08-22",0,"Ctrl",85521,732321,0.11678075597996,0.12
"INF0124","2025-07-31",0,"Ctrl",70297,687720,0.102217472227069,0.1
"INF0169","2025-07-31",0,"Ctrl",75540,854594,0.0883928508742163,0.09
"INF0191","2025-07-29",0,"Ctrl",55780,715443,0.0779656800052555,0.08
"INF0207","2025-08-28",0,"Ctrl",39055,905365,0.0431372982167413,0.04
18 changes: 18 additions & 0 deletions course/04_IntroToTidyverse/homeworks/njjacobs/homework_4.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
Author: Natalie Jacobs
Format: HTML
Title: Intro to tidyverse
---
# Week 4 Intro to tidyverse HW

# Problem 1

Taking a dataset (either todays or one of your own), work through the column-operating functions (select(), rename(), and relocate()). Once this is done, filter() by conditions from two separate columns, arrange in an order that makes sense, and export this “tidy” data as a .csv file.

# Problem 2

We used the mutate() function to create new columns, but it can also be used to modify existing ones. Various numeric columns are showing way to many significant digits. As was shown, use round() to round all these proportion columns, but use mutate to overwrite the existing column. Export this as it’s own .csv file.

# Problem 3

We can also use mutate() to combine columns. For our dataset, “bid”, “timepoint”, “Condition” are separate columns that originally were all part of the filename for the individual .fcs file. Try to figure out a way to combine them back together using paste0(), and save the new column as “filename”. Once this is done, pull() the contents of this column, and using try to determine whether there were any duplicates (think innovative ways of using !, length() and unique())