slides/modules/modular-data-organization.html
2025-06-30 07:10:37 +02:00

174 lines
5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<title>Data organization</title>
<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-no-copy.css">
<!-- Used for printing PDFs (append ?print-pdf to URL in browser)-->
<script src="../custom/js/printpdf.js"></script>
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="../reveal.js/plugin/highlight/monokai.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-markdown data-transition="none"><script type="text/template">
# Modular data organization
</script></section>
<section>
<h2>Easily lost modularity through obfuscation</h2>
Original
<pre><code class="sh" style="max-height:none" data-trim>
/dataset
├── sample1
│ └── a001.dat
├── sample2
│ └── a001.dat
...
</code></pre>
<div class="fragment">
After applied transform (preprocessing, analysis, ...)
<pre><code class="sh" style="max-height:none" data-trim>
/dataset
├── sample1
│ ├── ps34t.dat
│ └── a001.dat
├── sample2
│ ├── ps34t.dat
│ └── a001.dat
...
</code></pre>
Without expert/domain knowledge no distinction between original and derived data possible anymore.
</div>
</section>
<section>
<h2>Preserved modularity</h2>
Original
<pre><code class="sh" style="max-height:none" data-trim>
/raw_dataset
├── sample1
│ └── a001.dat
├── sample2
│ └── a001.dat
...
</code></pre>
<div class="fragment">
After applied transform (preprocessing, analysis, ...)
<pre><code class="sh" style="max-height:none" data-trim>
/derived_dataset
├── sample1
│ └── ps34t.dat
├── sample2
│ └── ps34t.dat
├── ...
└── inputs
└── raw
├── sample1
│ └── a001.dat
├── sample2
│ └── a001.dat
...
</code></pre>
Clearer separation of semantics, through use of pristine version of original dataset within a
<em>new, additional</em> dataset holding the outputs.
</div>
</section>
<section>
<h2>Example modular data structure</h2>
<img style="" height="750px" data-src="../img/concepts/virtual_dirtree.png">
<p style="margin-top:-.5em">Link precisely versioned inputs to version-controlled outputs</p>
<aside class="notes">dataset linkage is pairwise, i.e. cheap</aside>
</section>
<section data-markdown data-transition="none"><script type="text/template">
![](../img/concepts/bids_paper.png)<!-- .element: width="70%" style="margin-top:-40px" -->
![](../img/concepts/bids.png)<!-- .element: height="60%" -->
<note><a href="https://bids.neuroimaging.io">https://bids.neuroimaging.io</a></note>
Note:
- initially just a file naming convention
- established the concept of an evolving standard in the community
- huge success with translation outside neuroimaging
</script></section>
<section data-markdown><script type="text/template">
## When to modularize?
- Target audience is different
- public vs. private
- domain specific vs. domain general
- Pace of evolution is different
- "factual" raw data vs. choices of (pre-)processing
- completed acquisition vs. ongoing study
- Size impacts I/O and logistics
- Git can struggle with 1M+ files
- filesystems (licensing) can struggle with large numbers of inodes
- Legal/Access constraints
- personal vs. anonymized data
<aside class="notes">
Note to self
</aside>
</script>
</section>
</section>
</div>
</div>
<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>
// Full list of configuration options available at:
// https://revealjs.com/config/
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
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
});
</script>
</body>
</html>