-
Notifications
You must be signed in to change notification settings - Fork 0
/
coman-lab-meeting-slides.Rmd
592 lines (436 loc) · 16.1 KB
/
coman-lab-meeting-slides.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
---
title: "Best practices for modern social science"
subtitle: "Managing teams, projects, and code to facilitate collaboration and open science"
author: "Ari Dyckovsky"
institute: "Princeton University"
date: "Last updated: `r Sys.Date()`"
output:
xaringan::moon_reader:
lib_dir: libs
css: ["xaringan-themer.css", "styles/custom.css"]
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
ratio: "4:3"
seal: false
---
```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)
syl_icons <- icons::icon_set("./assets/icons")
syl_images <- icons::icon_set("./assets/images")
```
```{r xaringan-themer, include=FALSE, warning=FALSE}
library(xaringanthemer)
# Custom theme reference: https://pkg.garrickadenbuie.com/xaringanthemer/reference/style_xaringan.html
style_xaringan(
# fonts
header_font_google = google_font("Nunito", "300", "400", "500", "600", "700", "400i", "500i", "600i", "700i"),
text_font_google = google_font("Nunito", "300", "300i", "400", "400i", "500", "500i", "600"),
code_font_google = google_font("Source Code Pro"),
# global
text_color = "#1E1E24",
link_color = "#39627F",
background_color = "#F6F7F8",
inverse_background_color = "#4C82A9",
inverse_text_color = "#FFF",
inverse_header_color = "#FFF",
# code_inline_background_color = "#ddd",
header_h1_font_size = "1.5em",
header_h2_font_size = "1.25em",
header_h3_font_size = "1.1em",
header_font_weight = "400",
base_font_size = "24px",
# title slide
title_slide_text_color = "#1E1E24",
title_slide_background_image = "assets/images/title-slide-background.svg",
title_slide_background_size = "contain",
title_slide_background_color = "#F6F7F8",
title_slide_background_position = "50% 75%",
colors = c(
primary = "#4C82A9",
orange = "#DA7652",
green = "#65C367"
)
)
```
```{r load-packages, message=FALSE, echo=FALSE}
library(metathis)
library(ggplot2)
library(dplyr)
library(icons)
```
```{r meta, echo=FALSE}
meta() %>%
meta_general(
description = "Slides for a presentation to the Coman Lab on best practices for modern social science",
) %>%
meta_name("github-repo" = "startyourlab/workshop") %>%
meta_social(
title = "Best practices for modern social science",
url = "https://workshops.startyourlab.com/coman-lab-meeting-slides",
image = "https://workshops.startyourlab.com/coman-lab-meeting-slides/assets/images/og-image-large.png",
image_alt = "Start Your Lab Open Graph Image",
og_type = "website",
og_author = "Start Your Lab",
twitter_card_type = "summary_large_image",
twitter_creator = "@startyourlab"
)
```
class: title-slide
<div align="center" style="margin-bottom: 2em;">
<img src="assets/images/logo.svg" alt="Logo" height="60">
</div>
<div align="center" class="header">
<h1 class="title">Best practices for<br/>modern social science</h1>
</div>
<div class="footer">
<div class="authors">
<div class="author">
<p class="name">Ari Dyckovsky</p>
<a class="twitter" href="https://twitter.com/adyckovsky">@adyckovsky</a>
</div>
</div>
</div>
---
class: left
# Today's Agenda
1. What does modern social science look like?
2. Why are we here today?
3. What are best practices and why are they important?
4. How do we get our lab started with best practices for teams?
---
class: center, middle, inverse
# What does modern social science look like?
---
class: left
<div style="position: absolute; top: 20px; right: 20px; text-align: right;">
`r icon_style(syl_icons$unlock, height = "2em")`
</div>
# Open science is increasingly emphasized
- Collaboration between teams and fields
- Reusing others’ materials and reproducing findings
- Public accessibility
- Many powerful drivers
- Journals, funders, individuals, scientific societies
---
class: left
<div style="position: absolute; top: 20px; right: 20px; text-align: right;">
`r icon_style(syl_icons$maze, height = "2em")`
</div>
# Complex problems need computing resources
- Experiments are more powerful, creative, and complex
- Analyses increasingly rely on computationally-intensive approaches
---
class: left
<div style="position: absolute; top: 20px; right: 20px; text-align: right;">
`r icon_style(syl_icons$network, height = "2em")`
</div>
# Global networks are more common
- Academics are increasingly working with people outside their lab, department, university, or even academia itself.
- If people leave academia for the private sector, <i>wherever they go</i>, the best possible practices are used and expected.
- Facilitating better research practices is good for academics, increasingly common in academia, and crucial outside of academia
---
class: center
# Modern social science looks like...
<div style="margin-top: 10%; display: flex; flex-direction: row; height: 70%; justify-content: space-evenly; align-items: center;">
<div style="display: flex; flex: 1; flex-direction: column; justify-content: space-between; align-items: stretch; height: 100%; border: 0.1em solid transparent; border-radius: 0.5em; background-color: transparent; padding: 1em 0;">
<div>
`r icon_style(syl_icons$unlock, height = "3em")`
<p class="icon-label">Open Science</p>
</div>
<div>
`r icon_style(syl_icons$maze, height = "3em")`
<p class="icon-label">Complex Problems</p>
</div>
<div>
`r icon_style(syl_icons$network, height = "3em")`
<p class="icon-label">Global Networks</p>
</div>
</div>
<div style="flex: 0; opacity: 0">
`r icon_style(syl_icons$right_arrow, scale = 2, fill = "#383843")`
</div>
<div style="display: flex; flex: 1; flex-direction: column">
<div style="opacity: 0;">
`r icon_style(syl_icons$group, height = "6em")`
<h3 class="icon-label">Team Science</h3>
</div>
</div>
</div>
---
class: center
# Modern social science looks like...
<div style="margin-top: 10%; display: flex; flex-direction: row; height: 70%; justify-content: space-evenly; align-items: center;">
<div style="display: flex; flex: 1; flex-direction: column; justify-content: space-between; align-items: stretch; height: 100%; border: 0.1em solid #93D595; border-radius: 0.5em; background-color: #EAF7EA; padding: 1em 0;">
<div>
`r icon_style(syl_icons$unlock, height = "3em")`
<p class="icon-label">Open Science</p>
</div>
<div>
`r icon_style(syl_icons$maze, height = "3em")`
<p class="icon-label">Complex Problems</p>
</div>
<div>
`r icon_style(syl_icons$network, height = "3em")`
<p class="icon-label">Global Networks</p>
</div>
</div>
<div style="flex: 0; opacity: 1">
`r icon_style(syl_icons$right_arrow, scale = 2, color = "#93D595")`
</div>
<div style="display: flex; flex: 1; flex-direction: column">
<div style="opacity: 1;">
`r icon_style(syl_icons$group, height = "6em")`
<h3 class="icon-label">Team Science</h3>
</div>
</div>
</div>
---
class: center, middle, inverse
# Why are we here today?
---
class: left
# We can't keep track of different versions
_How often do you store and spend time searching for file versions?_
```{r, echo=FALSE, fig.retina=2, out.width='80%', fig.width=8, fig.height=6, fig.align='center'}
data <- data.frame(
group = c(1, 2, 3, 4, 5),
value = c(0, 3, 2, 2, 3)
)
ggplot(data, aes(x=group, y=value)) +
geom_bar(stat="identity", width=0.7, fill="#4C82A9") +
theme_classic() +
theme(
text = element_text(size=24, family = "Nunito"),
axis.title.x = element_blank(),
axis.title.y = element_blank()
) +
scale_x_discrete(
limits = c("Not at all", "", "Sometimes", "","All the time")
) +
theme_xaringan()
```
---
class: left
# We can't find files confidently
_How organized do you feel your project files are?_
```{r, echo=FALSE, fig.retina=2, out.width='80%', fig.width=8, fig.height=6, fig.align='center'}
data <- data.frame(
group = c(1, 2, 3, 4, 5),
value = c(0, 2, 4, 4, 0)
)
ggplot(data, aes(x=group, y=value)) +
geom_bar(stat="identity", width=0.7, fill="#4C82A9") +
theme_classic() +
theme(
text = element_text(size=24, family = "Nunito"),
axis.title.x = element_blank(),
axis.title.y = element_blank()
) +
scale_x_discrete(
limits = c("Not at all", "", "Neutral", "","Perfectly")
) +
theme_xaringan()
```
---
class: left
# We can't share without extra effort
_Are you able to share analysis files with collaborators with one or two clicks without doing any editing to the file?_
```{r, echo=FALSE, fig.retina=2, out.width='60%', fig.align='center'}
data <- data.frame(
group = c("Yes", "No"),
value = c(5, 5)
)
data <- data %>%
arrange(desc(group)) %>%
mutate(prop = value / sum(data$value) *100) %>%
mutate(ypos = cumsum(prop)- 0.5*prop )
ggplot(data, aes(x="", y=prop, fill=group)) +
geom_bar(stat="identity", width=1, color="white") +
coord_polar("y", start=0) +
geom_text(aes(y = ypos, label = paste0(group, "\n", round(prop), "%")), color = "white", size=8) +
scale_fill_manual(values = c("#DF8768", "#4C82A9")) +
theme_xaringan() +
theme(
legend.position="none",
axis.text = element_blank(),
axis.title = element_blank()
)
```
---
class: left
# Continuing current research practices has costs
1. They are expensive in both time and effort
--
- This is **.orange[hours of your time and others’ time, wasted]**.
--
2. They lead to risk of serious errors
--
- This is **.orange[mistakes in publications and unnecessary confusion]**.
--
3. They make collaboration harder than it needs to be
--
- This is **.orange[lost opportunities and lost innovation]**.
---
class: center, middle
# .primary[**We can do better by using _best practices_**]
---
class: center, middle, inverse
# What are best practices and <br/> why are they important?
---
class: left
# Best practices are...
- methods
- strategies
- techniques
- procedures
- etc.
## ...that are generally agreed upon as the <br/> **most effective** or **most prudent** way to work.
--
<div align="center" style="padding: 1em; margin-top: 2em; border: 0.1em solid #5D8EB1; border-radius: 0.5em; background-color: #E8EFF4;">
<h2>Best practices are vital to successful collaboration with your team, projects, and code.</h2>
</div>
---
class: left
# Who agrees upon these "best" practices?
--
## The private sector
...especially those in .primary[**software and technology**] who carry out their entire professional lives in this setting with tremendous incentives & desire to improve, streamline, and facilitate digital work.
---
class: left
# Who agrees upon these "best" practices?
## Other academics
.pull-left[
.small-font[
Ram, 2013, Git can facilitate greater reproducibility and increased transparency in science, _Source Code for Biology and Medicine_
Wilson et al, 2014, Best practices for scientific computing, _PLoS Biology_
Gorgolewski & Poldrack, 2016, A practical guide for improving transparency and reproducibility in neuroimaging research, _PLoS Biology_
**.green[Lowndes et al, 2017, Our path to better science in less time using open data science tools, _Nature Ecology & Evolution_]**
Wilson et al, 2017, Good enough practices in scientific computing, _PLoS Computational Biology_
Hesse, 2018, Can psychology walk the walk of open science?, _American Psychologist_
]
]
--
.pull-right[
<div style="margin-top: 3em; padding: 1em; background-color: white; border: 0.1em solid #65C367; border-radius: 0.5em;" />
<img src="./assets/images/lowndes-graph-2017.jpg" />
]
---
class: left
# What is the value of adopting best practices?
--
## .primary[Best practices are consistent with **our scientific values**]
--
.pull-left[
- Better science
- More reusability
- More reproducibility
- Fewer errors
- Transparency
- Efficiency
]
--
.pull-right[
- More attractive collaborator
- Fast onboarding of new lab members
- Supports young scholars
- Intentional organization of digital lab materials
]
--
<div align="center" style="padding: 1em; margin-top: 2em; border: 0.1em solid #E29377; border-radius: 0.5em; background-color: #F9EAE4;">
<h2>Future-proofing</h2>
<h3>This is and will be the standard for years to come</h3>
</div>
---
class: center, middle, inverse
# How do we get our lab started <br/> with best practices for teams?
---
class: center, middle
# **.primary[It starts with the best tools for teams]**
---
class: left
<div style="position: absolute; top: 20px; right: 20px; text-align: right;">
`r icon_style(syl_images$slack_logo, height = "2em")`
</div>
# Start **communicating** with Slack
--
- Can be asynchronous, can be synchronous
- Designed for teams with multiple people coordinating unevenly across multiple projects in shifting ways over time
- Can be 1:1 private, shared within a small group, or shared with everyone, all within the same platform
- Stores your communication and makes it easy to find later
- Connects with nearly every other modern tool for teams
--
## **Who else uses Slack?**
### As of 2019, Slack had .primary[**10+ million daily active users**], and 87% of users state that Slack improves their entire work process
---
class: left
<div style="position: absolute; top: 20px; right: 20px; text-align: right;">
`r icon_style(syl_images$google_calendar_logo, height = "2em")`
</div>
# Start **scheduling** with Google Calendar
--
- Designed for teams with multiple projects and various meeting needs
- Both public and private calendar events to schedule weekly lab meetings and one-on-one meetings
- It is more accessible for external collaborators than Outlook
--
## **Who else uses Google Calendar?**
### As of 2018, at least .primary[**500 million people**] use Google Calendar
---
class: left
<div style="position: absolute; top: 20px; right: 20px; text-align: right;">
`r icon_style(syl_images$github_logo, height = "2em")`
</div>
# Start **developing** with GitHub
--
- Provides a shared interface for all digital materials in the cloud
- Relates ideas and conversation directly to code
- Tracks informative, detailed changes line-by-line, file-by-file, folder-by-folder
- Designed explicitly for teams who write code of _any_ kind
- Resolves conflicts between different peoples’ materials
- Facilitates discussion and planning about those digital materials
--
## **Who else uses GitHub?**
### As of 2021, GitHub had .primary[**69+ million accounts**] from across the whole world and 200+ million repositories
---
class: center
# Tools help teams accomplish best practices
<div style="display: flex; flex-direction: column; justify-content: space-evenly; height: 9em; margin-top: 2em; margin-bottom: 2em; padding: 1em; background-color: #E8EFF4; border: 0.1em solid #5D8EB1; border-radius: 0.5em;">
<div style="display: flex; align-items: center; justify-content: space-evenly; width: 100%; margin-top: 1em;">
<div style="display: inherit; flex-direction: column; align-items: center;">
<img src="./assets/images/slack_logo.svg" height="60" />
<h3>Slack</h3>
</div>
<div style="display: inherit; flex-direction: column; align-items: center;">
<img src="./assets/images/google_calendar_logo.svg" height="60" />
<h3>Google Calendar</h3>
</div>
<div style="display: inherit; flex-direction: column; align-items: center;">
<img src="./assets/images/github_logo.svg" height="60" />
<h3>GitHub</h3>
</div>
</div>
</div>
--
## **How do we leverage these tools as <br/> a lab? a department? a field?**
---
class: center, middle
<div align="center">
<img src="assets/images/logo.svg" alt="Logo" height="120">
</div>
# [www.startyourlab.com](https://www.startyourlab.com/)
---
class: left
# Acknowledgments
## Active team
- Dr. Peter Sokol-Hessner, Assistant Professor, University of Denver
## Industry advisors
- Austin Chustz, Full-Stack Software Engineer, [Fellow](https://www.meetfellow.com/)
- Ayush Sood, Engineering Manager, [Facebook for Developers](https://developers.facebook.com/)
- Aaron Rios, Data Scientist, [Even](http://even.com/)
- Ted Kornish, Head of Engineering, [TruthSet](https://www.truthset.io/)
---
class: left
# Thank you!
<div>Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
Slides created via the R package [**xaringan**](https://github.com/yihui/xaringan).