180 lines
6.2 KiB
HTML
180 lines
6.2 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<title>Version Control</title>
|
||
<meta name="description" content="DataLad's Version Control Features">
|
||
<meta name="author" content="The DataLad Team">
|
||
|
||
<meta charset="utf-8">
|
||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
|
||
<!-- Original reveal JS stylesheets-->
|
||
<link rel="stylesheet" href="../reveal.js/dist/reset.css">
|
||
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
|
||
<link rel="stylesheet" href="../reveal.js/dist/theme/beige.css">
|
||
<!-- custom styles, e.g., imgcredit -->
|
||
<link rel="stylesheet" href="../custom/css/main.css" id="theme">
|
||
<script src="../custom/js/printpdf.js"></script>
|
||
</head>
|
||
<body>
|
||
|
||
<div class="reveal">
|
||
<div class="slides">
|
||
|
||
<section>
|
||
<section>
|
||
<h1>Version Control<br><small>Let's make history!</small></h1>
|
||
</section>
|
||
|
||
|
||
<section>
|
||
<img src="../img/xkcd/3064.png" height="800px"><imgcredit>xkcd comic<a href="https://xkcd.com/3064/" target="_blank">
|
||
3064</a> </imgcredit>
|
||
</section>
|
||
|
||
<section data-transition="None">
|
||
<dl style="font-size:40px">
|
||
<dt>The building blocks of a scientific result are rarely static</dt>
|
||
<table><tr><td style="vertical-align:middle">
|
||
Analysis code, manuscripts, ... evolve.<br>
|
||
<small>(Rewrite, fix bugs, add functions,
|
||
refactor, extend, ...)</small>
|
||
</td> </tr></table>
|
||
|
||
<dt>Version control helps you to... </dt>
|
||
<table><tr><td>
|
||
<img src="../img/turing-way-figures/projecthistory-withouttext.svg" width="600">
|
||
<imgcredit><a href="https://the-turing-way.netlify.app/reproducible-research/vcs/vcs-data.html" target="_blank">
|
||
CC-BY Scriberia & The Turing Way</a></imgcredit>
|
||
</td><td>
|
||
<ul style="vertical-align:bottom">
|
||
<li>keep things organized</li>
|
||
<li>keep track of changes</li>
|
||
<li>revert changes or go <br>
|
||
back to previous states</li>
|
||
<li>collect and share digital provenance</li>
|
||
</ul>
|
||
</td></tr></table>
|
||
</dl>
|
||
</section>
|
||
|
||
<section data-transition="None">
|
||
<dl style="font-size:40px">
|
||
<dt>The building blocks of a scientific result are rarely static</dt>
|
||
<table><tr><td style="vertical-align:middle">
|
||
<strong>Data</strong> changes, too! <br>
|
||
<small>(errors are fixed, data is extended, naming standards change, <br>
|
||
an analysis requires only a subset of your data...)
|
||
</small>
|
||
</tr>
|
||
</table>
|
||
</dl>
|
||
<br><br>
|
||
Sadly, Git doesn't handle large files well.
|
||
<div class="r-stack">
|
||
<img class="fragment fade-out" src="../img/concepts/gitsnapshot.png">
|
||
<img src="../img/concepts/gitsnapshot2.png">
|
||
</div>
|
||
</section>
|
||
|
||
<section data-transition="None">
|
||
<h2>DataLad Datasets</h2>
|
||
A DataLad dataset is a joined Git + git-annex repository
|
||
<img src="../img/concepts/datalad_sandwhich.svg">
|
||
<img src="../img/comics/comic_box4.svg">
|
||
</section>
|
||
<!--
|
||
<section>
|
||
<pre><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">
|
||
datalad create -c yoda penguin-beaks
|
||
cd penguin-beaks</code></pre>
|
||
<ul>
|
||
<li>Create a new dataset "<code>penguin-beaks</code>".
|
||
It will become a home to a penguin-related data science project.
|
||
Use the command option <code>-c yoda</code>. </li>
|
||
<li>Explore the dataset:</li>
|
||
<ul>
|
||
<li>What purpose does the structure serve?</li>
|
||
<li>Can you find special configurations?</li></li>
|
||
</ul>
|
||
<li>Modify <code>README.md</code> by adding a description of the datasets' purpose.
|
||
Save this modification.</li>
|
||
</ul>
|
||
<pre><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">
|
||
datalad status</code></pre>
|
||
<pre><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">
|
||
datalad save -m "Add Dataset description"</code></pre>
|
||
</section>
|
||
-->
|
||
<section>
|
||
<h2>Local version control</h2>
|
||
|
||
<p>Procedurally, version control is easy with DataLad!</p>
|
||
<img src="../img/concepts/local_wf.svg" height="500"> <!-- .element: class="fragment" --><br>
|
||
<b>Advice:</b>
|
||
<ul>
|
||
<li>Save <i>meaningful</i> units of change</li>
|
||
<li>Attach helpful commit messages</li>
|
||
</ul>
|
||
</section>
|
||
</section>
|
||
<!--
|
||
<section>
|
||
<h2>Test your knowledge further</h2>
|
||
|
||
<a href="https://handbook.datalad.org/r.html?challenge-datasets" target="_blank">handbook.datalad.org/r.html?challenge-datasets</a>
|
||
</section>
|
||
-->
|
||
|
||
</div> <!-- /.slides -->
|
||
</div> <!-- /.reveal -->
|
||
|
||
<script src="../reveal.js/dist/reveal.js"></script>
|
||
<script src="../reveal.js/plugin/notes/notes.js"></script>
|
||
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
|
||
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
|
||
<script src="../custom/js/copy-code.js"></script>
|
||
<script>
|
||
// Full list of configuration options available at:
|
||
// https://github.com/hakimel/reveal.js#configuration
|
||
Reveal.initialize({
|
||
// The "normal" size of the presentation, aspect ratio will be preserved
|
||
// when the presentation is scaled to fit different resolutions. Can be
|
||
// specified using percentage units.
|
||
width: 1280,
|
||
height: 960,
|
||
|
||
// Factor of the display size that should remain empty around the content
|
||
margin: 0.1,
|
||
|
||
// Bounds for smallest/largest possible scale to apply to content
|
||
minScale: 0.2,
|
||
maxScale: 1.0,
|
||
|
||
controls: true,
|
||
progress: true,
|
||
history: true,
|
||
center: true,
|
||
|
||
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
||
|
||
// Optional reveal.js plugins
|
||
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
|
||
|
||
});
|
||
</script>
|
||
|
||
<!-- A footer with a "1" and "home" button to get back to the first slide and the index page -->
|
||
<div id="hidden" style="display:none;">
|
||
<div id="header">
|
||
<div id="footer-left"><a href="#0">1️⃣</a></div>
|
||
<div id="footer-right"><a href="../workshops/2025-DKZ.2R.html">🏠</a></div>
|
||
<!-- <div id="footer-right"><a href="../index.html">🏠</a></div>-->
|
||
</div>
|
||
</div>
|
||
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
|
||
<script src="../custom/js/headerandfooter.js"></script>
|
||
|
||
</body>
|
||
</html>
|