Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto_GHA_Runner committed Sep 11, 2024
1 parent a7dfb2b commit 581ad12
Show file tree
Hide file tree
Showing 28 changed files with 478 additions and 445 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7f0c92c6
78d52888
17 changes: 10 additions & 7 deletions explanations/FAQ.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,15 @@
<link href="../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
<link href="../site_libs/bootstrap/bootstrap-dark.min.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"location": "sidebar",
"copy-button": false,
"collapse-after": 3,
"panel-placement": "end",
"panel-placement": "start",
"type": "overlay",
"limit": 50,
"keyboard-shortcut": [
"f",
"/",
"s"
"?",
"H"
],
"language": {
"search-no-results-text": "No results",
Expand All @@ -95,7 +94,7 @@
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-text-placeholder": "",
"search-text-placeholder": "Search",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit",
"search-label": "Search"
Expand All @@ -117,6 +116,9 @@
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../explanations/FAQ.html">Explanations</a></li><li class="breadcrumb-item"><a href="../explanations/FAQ.html">Frequently Asked Questions</a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
<i class="bi bi-search"></i>
</button>
</div>
</nav>
</header>
Expand All @@ -127,13 +129,14 @@
<div class="pt-lg-2 mt-2 text-left sidebar-header">
<div class="sidebar-title mb-0 py-0">
<a href="../">JUMP documentation and examples</a>
<div class="sidebar-tools-main">
<div class="sidebar-tools-main tools-wide">
<a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
<a href="" class="quarto-reader-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleReader(); return false;" title="Toggle reader mode">
<div class="quarto-reader-toggle-btn">
<i class="bi"></i>
</div>
</a>
<div id="quarto-search" class="quarto-navigation-tool px-1" title="Search"></div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion explanations/FAQ.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
" of these replicates’ value was in turn the mean of all the sites\n",
" and cells in a given well."
],
"id": "24e86be6-44c5-4ada-8b3c-34a2670d0539"
"id": "17ad2136-1321-43fb-b48a-fdcbc379f541"
}
],
"nbformat": 4,
Expand Down
17 changes: 10 additions & 7 deletions explanations/Resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@
<link href="../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
<link href="../site_libs/bootstrap/bootstrap-dark.min.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"location": "sidebar",
"copy-button": false,
"collapse-after": 3,
"panel-placement": "end",
"panel-placement": "start",
"type": "overlay",
"limit": 50,
"keyboard-shortcut": [
"f",
"/",
"s"
"?",
"H"
],
"language": {
"search-no-results-text": "No results",
Expand All @@ -61,7 +60,7 @@
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-text-placeholder": "",
"search-text-placeholder": "Search",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit",
"search-label": "Search"
Expand All @@ -83,6 +82,9 @@
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../explanations/FAQ.html">Explanations</a></li><li class="breadcrumb-item"><a href="../explanations/Resources.html">Available resources</a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
<i class="bi bi-search"></i>
</button>
</div>
</nav>
</header>
Expand All @@ -93,13 +95,14 @@
<div class="pt-lg-2 mt-2 text-left sidebar-header">
<div class="sidebar-title mb-0 py-0">
<a href="../">JUMP documentation and examples</a>
<div class="sidebar-tools-main">
<div class="sidebar-tools-main tools-wide">
<a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
<a href="" class="quarto-reader-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleReader(); return false;" title="Toggle reader mode">
<div class="quarto-reader-toggle-btn">
<i class="bi"></i>
</div>
</a>
<div id="quarto-search" class="quarto-navigation-tool px-1" title="Search"></div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion explanations/Resources.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
" [website](https://www.springscience.com/jump-cp) for data\n",
" exploration (account needed)."
],
"id": "ee7a92d8-6f2b-46f6-9c25-ac79a3617464"
"id": "d986c00a-eb84-4ab5-a0dd-ad581a7b6da8"
}
],
"nbformat": 4,
Expand Down
17 changes: 10 additions & 7 deletions explanations/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@
<link href="../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
<link href="../site_libs/bootstrap/bootstrap-dark.min.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"location": "sidebar",
"copy-button": false,
"collapse-after": 3,
"panel-placement": "end",
"panel-placement": "start",
"type": "overlay",
"limit": 50,
"keyboard-shortcut": [
"f",
"/",
"s"
"?",
"H"
],
"language": {
"search-no-results-text": "No results",
Expand All @@ -61,7 +60,7 @@
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-text-placeholder": "",
"search-text-placeholder": "Search",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit",
"search-label": "Search"
Expand All @@ -83,6 +82,9 @@
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../explanations/FAQ.html">Explanations</a></li><li class="breadcrumb-item"><a href="../explanations/glossary.html">Glossary and Acronyms</a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
<i class="bi bi-search"></i>
</button>
</div>
</nav>
</header>
Expand All @@ -93,13 +95,14 @@
<div class="pt-lg-2 mt-2 text-left sidebar-header">
<div class="sidebar-title mb-0 py-0">
<a href="../">JUMP documentation and examples</a>
<div class="sidebar-tools-main">
<div class="sidebar-tools-main tools-wide">
<a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
<a href="" class="quarto-reader-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleReader(); return false;" title="Toggle reader mode">
<div class="quarto-reader-toggle-btn">
<i class="bi"></i>
</div>
</a>
<div id="quarto-search" class="quarto-navigation-tool px-1" title="Search"></div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion explanations/glossary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"for compound probes). q-value: Expected False Discovery Rate (FDR): the\n",
"proportion of false positives among all positive results."
],
"id": "3111fe51-9db6-4573-b9f0-530110f2d7a8"
"id": "44baf1c0-9d2c-4cc0-a21e-abbc1c056356"
}
],
"nbformat": 4,
Expand Down
33 changes: 18 additions & 15 deletions howto/1_retrieve_profiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,15 @@
<link href="../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
<link href="../site_libs/bootstrap/bootstrap-dark.min.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"location": "sidebar",
"copy-button": false,
"collapse-after": 3,
"panel-placement": "end",
"panel-placement": "start",
"type": "overlay",
"limit": 50,
"keyboard-shortcut": [
"f",
"/",
"s"
"?",
"H"
],
"language": {
"search-no-results-text": "No results",
Expand All @@ -95,7 +94,7 @@
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-text-placeholder": "",
"search-text-placeholder": "Search",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit",
"search-label": "Search"
Expand All @@ -120,6 +119,9 @@
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../howto/1_retrieve_profiles.html">How-To Guides</a></li><li class="breadcrumb-item"><a href="../howto/1_retrieve_profiles.html">Retrieve JUMP profiles</a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
<i class="bi bi-search"></i>
</button>
</div>
</nav>
</header>
Expand All @@ -130,13 +132,14 @@
<div class="pt-lg-2 mt-2 text-left sidebar-header">
<div class="sidebar-title mb-0 py-0">
<a href="../">JUMP documentation and examples</a>
<div class="sidebar-tools-main">
<div class="sidebar-tools-main tools-wide">
<a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
<a href="" class="quarto-reader-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleReader(); return false;" title="Toggle reader mode">
<div class="quarto-reader-toggle-btn">
<i class="bi"></i>
</div>
</a>
<div id="quarto-search" class="quarto-navigation-tool px-1" title="Search"></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -255,7 +258,7 @@ <h1 class="title">Retrieve JUMP profiles</h1>


<p>This is a tutorial on how to access profiles from the <a href="https://github.com/jump-cellpainting/datasets">JUMP Cell Painting datasets</a>. We will use polars to fetch the data frames lazily, with the help of <code>s3fs</code> and <code>pyarrow</code>. We prefer lazy loading because the data can be too big to be handled in memory.</p>
<div id="83ba34ab" class="cell" title="Imports" data-execution_count="1">
<div id="81474bff" class="cell" title="Imports" data-execution_count="1">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> polars <span class="im">as</span> pl</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
Expand All @@ -268,14 +271,14 @@ <h1 class="title">Retrieve JUMP profiles</h1>
<li><code>cpg0016-jump[compound]</code>: Chemical perturbations.</li>
</ol>
<p>Their explicit location is determined by the transformations that produce the datasets. The aws paths of the dataframes are built from a prefix below:</p>
<div id="f50f79be" class="cell" title="Paths" data-execution_count="2">
<div id="a23d7f3b" class="cell" title="Paths" data-execution_count="2">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>INDEX_FILE <span class="op">=</span> <span class="st">"https://raw.githubusercontent.com/jump-cellpainting/datasets/50cd2ab93749ccbdb0919d3adf9277c14b6343dd/manifests/profile_index.csv"</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
</div>
<p>We use a version-controlled csv to release the latest corrected profiles</p>
<div id="0d1dbf24" class="cell" data-execution_count="3">
<div id="4316f786" class="cell" data-execution_count="3">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>profile_index <span class="op">=</span> pl.read_csv(INDEX_FILE)</span>
Expand Down Expand Up @@ -337,7 +340,7 @@ <h1 class="title">Retrieve JUMP profiles</h1>
</div>
</div>
<p>We do not need the ‘etag’ (used to check file integrity) column nor the ‘interpretable’ (i.e., before major modifications)</p>
<div id="d6433b40" class="cell" data-execution_count="4">
<div id="6b4dfca4" class="cell" data-execution_count="4">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>selected_profiles <span class="op">=</span> profile_index.<span class="bu">filter</span>(</span>
Expand All @@ -351,7 +354,7 @@ <h1 class="title">Retrieve JUMP profiles</h1>
</div>
</div>
<p>We will lazy-load the dataframes and print the number of rows and columns</p>
<div id="b06bc770" class="cell" data-execution_count="5">
<div id="d34fb368" class="cell" data-execution_count="5">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb6"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>info <span class="op">=</span> {k: [] <span class="cf">for</span> k <span class="kw">in</span> (<span class="st">"dataset"</span>, <span class="st">"#rows"</span>, <span class="st">"#cols"</span>, <span class="st">"#Metadata cols"</span>, <span class="st">"Size (MB)"</span>)}</span>
Expand Down Expand Up @@ -424,7 +427,7 @@ <h1 class="title">Retrieve JUMP profiles</h1>
</div>
</div>
<p>Let us now focus on the <code>crispr</code> dataset and use a regex to select the metadata columns. We will then sample rows and display the overview. Note that the collect() method enforces loading some data into memory.</p>
<div id="a999b595" class="cell" data-execution_count="6">
<div id="c811cc8d" class="cell" data-execution_count="6">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb7"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>data <span class="op">=</span> pl.scan_parquet(filepaths[<span class="st">"crispr"</span>])</span>
Expand Down Expand Up @@ -493,7 +496,7 @@ <h1 class="title">Retrieve JUMP profiles</h1>
</div>
</div>
<p>The following line excludes the metadata columns:</p>
<div id="d1027bbf" class="cell" data-execution_count="7">
<div id="15093fdf" class="cell" data-execution_count="7">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb8"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>data_only <span class="op">=</span> data.select(pl.<span class="bu">all</span>().exclude(<span class="st">"^Metadata.*$"</span>).sample(n<span class="op">=</span><span class="dv">5</span>, seed<span class="op">=</span><span class="dv">1</span>)).collect()</span>
Expand Down Expand Up @@ -1059,7 +1062,7 @@ <h1 class="title">Retrieve JUMP profiles</h1>
</div>
</div>
<p>Finally, we can convert this to <code>pandas</code> if we want to perform analyses with that tool. Keep in mind that this loads the entire dataframe into memory.</p>
<div id="37300e12" class="cell" data-execution_count="8">
<div id="20df67a8" class="cell" data-execution_count="8">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>data_only.to_pandas()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
Expand Down
Loading

0 comments on commit 581ad12

Please sign in to comment.