-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.qmd
More file actions
329 lines (230 loc) · 8.64 KB
/
index.qmd
File metadata and controls
329 lines (230 loc) · 8.64 KB
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
---
title: "Publishing Code"
subtitle: "Using GitHub releases and Zenodo DOIs<br>to create citable code snapshots"
author:
- name: Stephen Formel
orcid: 0000-0001-7418-1244
affiliations:
- name: "<img src='assets/the_data_patch_logo.png' style='height:60px; vertical-align:middle; margin-left:5px;'>"
date: "2026-01-29"
format:
revealjs:
title-slide-attributes:
data-presentation-context: "Ocean Data Stewardship | Rutgers Operational Oceanography Program | Session #3"
---
## Examples
{width=100 style="vertical-align: middle;"} _Instrument: [Low-Cost Water Sampler](https://doi.org/10.5281/zenodo.10257622)_ {width=150 style="vertical-align: middle;"}
{width=100 style="vertical-align: middle;"} _Pipeline: [eDNA analysis](https://doi.org/10.5281/zenodo.8144154)_ {width=200 style="vertical-align: middle;"}
{width=100 style="vertical-align: middle;"} _Analysis: [Biodiversity Indicators](https://doi.org/10.5281/zenodo.15113966)_ {width=120 style="vertical-align: middle;"}
{width=100 style="vertical-align: middle;"} _Documentation: [Workshop](https://doi.org/10.5281/zenodo.7401979)_ {width=150 style="vertical-align: middle;"}
## Why publish code?
::: columns
<br>
::: column
### Better World
{width=130 .float-left}
{width=300}
:::
::: column
### Better Future
{width=80 .float-left}
<div class="small-text">
_make life easier!_
<br>
_reduce self-loathing!_
</div>
:::
:::
<br>
::: columns
::: column
### Enable Science
{width=80 .float-left}
<div class="small-text">
_drive reuse!_
<br>
_and extension!_
</div>
:::
::: column
### Get Credit
{width=80 .float-left}
<div class="small-text">
_credit is the currency of science!_
<br>
_mo' money, less problems!_
</div>
:::
:::
::: notes
Timing: 2 min
Set expectations. This is about concepts first, mechanics second.
Emphasize that this mirrors data publishing practices participants may already know.
1. Increase FAIR-ness
2. Make life easier for future you
3. Enable reuse and extension
4. Get credit for software as a research output
:::
---
## The long view: a haiku.
::: columns
::: column
<br>
<div style="text-align: center;">
_science lives when tools_
_fade. Links rot but snapshots save_
_your work from the void_
</div>
:::
::: column
<div style="border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.15); display: inline-block; text-align: center; padding-top: 14px; margin-bottom: -20px;">
<iframe width="800" height="280"
src="https://www.youtube.com/embed/CZzQhiNQXxU?autoplay=1&mute=1&start=25"
allow="autoplay; encrypted-media"
allowfullscreen>
</iframe>
<div style="font-size: 0.4em; margin-top: -35px;">
<span style="display: block;">Whale Fall Actively Devoured by Scavengers at Davidson Seamount, Nautilus Live (2019)</span>
<span style="display: block; font-size: 0.8em;"><a href="https://www.youtube.com/watch?v=CZzQhiNQXxU">https://www.youtube.com/watch?v=CZzQhiNQXxU</a></span>
</div>
</div>
:::
:::
::: notes
Timing: 1 min
Science outlives tools and platforms.
Papers persist. Links rot.
Without snapshots, methods cannot be verified.
:::
---
## <img src="https://cdn.simpleicons.org/github/white" width="225" style="vertical-align: middle;"/> GitHub is not an archive
- _Excellent for collaboration_
- _No preservation guarantee_
- _Not designed for citation_
- _owned by private corporation (Microsoft)_
::: notes
Timing: 1 min
Be explicit that this is not anti-GitHub.
GitHub does its job very well. It just does not do this job.
:::
---
## What is a code archive?
{width=200 .float-left}
<br>
_Persistent and referenced via PID_
_Findable and citable_
_Immutable once published_
_Backed by long-term infrastructure_
::: notes
Timing: 1 min
:::
---
## <img src="https://about.zenodo.org/static/img/logos/zenodo-gradient-round.svg" width="400" style="vertical-align: middle;"/> (for code)
_Generalist research repository_
_Free and widely used_
_Issues DOIs via DataCite_
_Integrates with GitHub releases_
_operated by CERN_
::: notes
Timing: 1 min
Do not go deep here. Zenodo is familiar enough.
We are focusing on the GitHub integration.
CERN == European Organization for Nuclear Research, an intergovernmental organization funded by 23 member states
:::
---
## <img src="https://cdn.simpleicons.org/github/white" width="225" style="vertical-align: bottom;"/> + <img src="https://about.zenodo.org/static/img/logos/zenodo-gradient-round.svg" width="400" style="vertical-align: middle;"/> model
<br>
_GitHub: active development | where code lives_
_Zenodo: frozen snapshots | where code is cited_
::: notes
Timing: 1 min
:::
---
## Where will you use this?
{width=100 style="vertical-align: middle;"} _Instrument development_
{width=100 style="vertical-align: middle;"} _Pipeline development_
{width=100 style="vertical-align: middle;"} _Analysis iteration_
{width=100 style="vertical-align: middle;"} _Code-based documentation_
::: notes
Timing: 2 min
Ask students to come up with examples
:::
---
## Versioning and DOIs
_Each GitHub release → new Zenodo version_
_Each version gets its own {width=60 style="vertical-align: middle;"}_
_One parent 'concept' {width=60 style="vertical-align: middle;"} always points to the latest version_
::: notes
Timing: 2 min
This mirrors the Zenodo versioning explanation from the dataset clinic.
:::
---
## Let's Practice
## Pre-work:
_did you make a_ <img src="https://cdn.simpleicons.org/github/white" width="100" style="vertical-align: middle;"/> _account?_
_If not, do it <a href="https://docs.github.com/en/get-started/start-your-journey/creating-an-account-on-github">here</a>_
::: notes
Timing: 3 min
Set clear expectations: this is a hands-on exercise.
Encourage participants to ask questions if stuck at any step.
Put a thumbs up in shared notes for each step when you're ready to move on
:::
---
## Step 1: Fork the Repository
1. Go to the example repo on GitHub (https://github.com/the-data-patch/do-watcha-wanna)
2. Click **Fork** (top right)
3. You now have your own copy under your account
::: notes
Timing: 2 min
Ask who are familiar with GitHub workflows?
Explain that forking allows them to experiment without affecting the original repo.
:::
---
## Step 2: Make a Change
* Edit the `rutgers.txt` file
* Commit your changes with a meaningful message
::: notes
Timing: 3 min
Encourage small, safe changes to build confidence.
:::
---
## Step 3: Publish to Zenodo Sandbox
1. Log in to Zenodo sandbox
2. Activate the repository you forked
3. Create a GitHub release (tag your commit)
4. Zenodo generates a DOI for the release
::: notes
Timing: 5 min
Live demo, walk through it together.
Release title is concatenated with github repo for Zenodo title
Release notes become Zenodo description
:::
---
## Step 4: Make Additional Changes
* Update code or documentation
* Create a new release on GitHub
* Observe new DOI generated by Zenodo
::: notes
Timing: 3 min
Highlight that each release gets a unique DOI but all point back to the concept DOI.
This one they do on their own.
:::
---
## Step 5: Explore Examples
Look at successful uses of this mechanism:
{width=100 style="vertical-align: middle;"} _Instrument: [Low-Cost IoT Water Sampler](https://doi.org/10.5281/zenodo.10257622)_
{width=100 style="vertical-align: middle;"} _Pipeline: [Tourmaline for eDNA analysis](https://doi.org/10.5281/zenodo.8144154)_
{width=100 style="vertical-align: middle;"} _Analysis: [Using H3 Grids for Biodiversity Indicators](https://doi.org/10.5281/zenodo.15113966)_
{width=100 style="vertical-align: middle;"} _Documentation: [Marine Data Mobilization Workshop](https://doi.org/10.5281/zenodo.7401979)_
::: notes
Timing: 3 min
Point out how each release has its own DOI, while the concept DOI points to all versions.
:::
---
## Step 6: Reflection
* Could you explain this to a collaborator?
::: notes
Timing: 5 min
Encourage participants to share experiences and ask clarifying questions. You will be asked to suggest and/or participate in mechanisms like this as a professional.
:::
---