-
Notifications
You must be signed in to change notification settings - Fork 5
/
lecture_lab07.qmd
206 lines (121 loc) · 6.69 KB
/
lecture_lab07.qmd
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
---
title: "Lecture Lab 7"
author: "Leon Eyrich Jessen"
format:
revealjs:
embed-resources: true
theme: moon
slide-number: c/t
width: 1600
height: 900
mainfont: avenir
logo: images/r4bds_logo_small.png
footer: "R for Bio Data Science"
---
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Collaborative Bio Data Science using GitHub via RStudio
- When doing assignments, you discovered that it was challenging to collaborate
- Collaboration is key to success, **also** when coding!
- You could:
- Write your code in a google doc and copy/paste
- Send code snippets in emails
- Use a whatsapp-group to exchange code
- ...?
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Collaborative Bio Data Science using GitHub via RStudio
- When doing assignments, you discovered that it was challenging to collaborate
- Collaboration is key to success, **also** when coding!
- You could:
- Write your code in a google doc and copy/paste
- Send code snippets in emails
- Use a whatsapp-group to exchange code
- Stare at the same screen and come with 17 suggestions
- ...?
- All of which would be a recipe for inevitable disaster!
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Collaborative Bio Data Science using GitHub via RStudio
- Of course there is a better way!
- We can use... git!
- Git is a distributed version control system
- It tracks versions of files
- "Git is a distributed version control system that tracks versions of files. It is often used to control source code by programmers who are developing software collaboratively." (Wiki definition)
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Collaborative Bio Data Science using GitHub via RStudio
- Of course there is a better way!
- We can use... git!
- Git is a distributed version control system
- It tracks versions of files
- "Git is a distributed version control system that tracks versions of analyses. It is often used to control analysis code by bioinformaticians who are developing pipelines collaboratively." (R4BDS definition)
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Collaborative Bio Data Science using GitHub via RStudio
- Bonus info: The brain child of... Linus Torvalds
- Tracking changes in the Linux kernel
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Okay, so... Git versus GitHub
- Think along the lines of `R` versus `RStudio`, engine and interface
:::: {.columns}
::: {.column width="50%"}
![](images/logo_git.png){fig-align="center" width="80%"}
:::
::: {.column width="50%"}
![](images/GitHub_Lockup_Light.png){fig-align="center" width="80%"}
:::
::::
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Okay, so... What does it "do"?
- If you share code in mails, chat groups, shared docs
- You have no way of tracking what happened when to what and how
- You may sit with some results and have no idea how they came about
- This is the absolute opposite of doing reproducible bio data science
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Okay, so... What does it "do"?
- Git and github:
- helps you track the EXACT changes made in your analysis project
- enables multiple collaborators
- are industry standard in largely any company doing (Bio) Data Science
- facilitates teamwork increasing productivity
- Again: Spend time initially to save time in the long run
- Remember the talk from the first lab? Using git is absolute key to doing reproducible research
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Okay, so... What does it "do"?
_...and perhaps nearer to you for now_
![](images/memes_lab07.png){fig-align="center"}
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Okay, so... How does your team "do" it?
![](images/git_collab.gif){fig-align="center" width=80%}
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## Branching, a way of developing in parallel
![](images/git_branching_merging.png){fig-align="center" width=90%}
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## But really, the best thing is to...
<!--# ---------------------------------------------------------------------- -->
<!--# SLIDE ---------------------------------------------------------------- -->
<!--# ---------------------------------------------------------------------- -->
## But really, the best thing is to...
- Try it out for your self
- Break and then exercises
- TODAY FOLLOWING THE EXERCISES POINT-BY-POINT IS SUPERCALIFRAGILISTICEXPIALIDOCIOUS!!!