Skip to content

Commit

Permalink
Deployed de014be with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jkobject committed Mar 7, 2024
1 parent 9b296e0 commit 65d4f5b
Show file tree
Hide file tree
Showing 17 changed files with 1,685 additions and 84 deletions.
2 changes: 2 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="/scdataloader/datamodule/">datamodule</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/scdataloader/collator/">collator</a>
</li>
</ul>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions collator/collator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Documentation for `Collator`

::: scdataloader.collator.Collator
handler: python

::: scdataloader.collator.AnnDataCollator
handler: python
821 changes: 821 additions & 0 deletions collator/index.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions datamodule/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../collator/">collator</a>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -826,6 +828,7 @@ <h3 id="scdataloader.datamodule.DataModule.setup" class="doc doc-heading">
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../utils/" class="btn btn-neutral float-left" title="utils"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../collator/" class="btn btn-neutral float-right" title="collator">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>

<hr/>
Expand All @@ -851,6 +854,8 @@ <h3 id="scdataloader.datamodule.DataModule.setup" class="doc doc-heading">
<span><a href="../utils/" style="color: #fcfcfc">&laquo; Previous</a></span>


<span><a href="../collator/" style="color: #fcfcfc">Next &raquo;</a></span>

</span>
</div>
<script src="../js/jquery-3.6.0.min.js"></script>
Expand Down
3 changes: 3 additions & 0 deletions dataset/dataset.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Documentation for `Dataset`

::: scdataloader.data.Dataset
handler: python

::: scdataloader.data.SimpleAnnDataset
handler: python
88 changes: 88 additions & 0 deletions dataset/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#scdataloader.data.Dataset">Dataset</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#scdataloader.data.SimpleAnnDataset">SimpleAnnDataset</a>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../preprocess/">preprocess</a>
Expand All @@ -65,6 +67,8 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="../datamodule/">datamodule</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../collator/">collator</a>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -148,6 +152,90 @@ <h2 id="scdataloader.data.Dataset" class="doc doc-heading">



</div>

</div>

</div>

<div class="doc doc-object doc-class">




<h2 id="scdataloader.data.SimpleAnnDataset" class="doc doc-heading">
<code class="highlight language-python"><span class="n">scdataloader</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">SimpleAnnDataset</span></code>

</h2>


<div class="doc doc-contents first">


<p>SimpleAnnDataset is a simple dataloader for an AnnData dataset. this is to interface nicely with the rest of
scDataloader and with your model during inference.</p>
<hr />
<pre><code>adata (anndata.AnnData): anndata object to use
obs_to_output (list[str]): list of observations to output from anndata.obs
layer (str): layer of the anndata to use
</code></pre>

<details class="quote">
<summary>Source code in <code>scdataloader/data.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">321</span>
<span class="normal">322</span>
<span class="normal">323</span>
<span class="normal">324</span>
<span class="normal">325</span>
<span class="normal">326</span>
<span class="normal">327</span>
<span class="normal">328</span>
<span class="normal">329</span>
<span class="normal">330</span>
<span class="normal">331</span>
<span class="normal">332</span>
<span class="normal">333</span>
<span class="normal">334</span>
<span class="normal">335</span>
<span class="normal">336</span>
<span class="normal">337</span>
<span class="normal">338</span>
<span class="normal">339</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">adata</span><span class="p">:</span> <span class="n">AnnData</span><span class="p">,</span>
<span class="n">obs_to_output</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">]]</span> <span class="o">=</span> <span class="p">[],</span>
<span class="n">layer</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> SimpleAnnDataset is a simple dataloader for an AnnData dataset. this is to interface nicely with the rest of</span>
<span class="sd"> scDataloader and with your model during inference.</span>

<span class="sd"> Args:</span>
<span class="sd"> ----</span>
<span class="sd"> adata (anndata.AnnData): anndata object to use</span>
<span class="sd"> obs_to_output (list[str]): list of observations to output from anndata.obs</span>
<span class="sd"> layer (str): layer of the anndata to use</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="bp">self</span><span class="o">.</span><span class="n">adata</span> <span class="o">=</span> <span class="n">adata</span>
<span class="bp">self</span><span class="o">.</span><span class="n">obs_to_output</span> <span class="o">=</span> <span class="n">obs_to_output</span>
<span class="bp">self</span><span class="o">.</span><span class="n">layer</span> <span class="o">=</span> <span class="n">layer</span>
</code></pre></div></td></tr></table></div>
</details>



<div class="doc doc-children">











</div>

</div>
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="datamodule/">datamodule</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="collator/">collator</a>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -177,5 +179,5 @@ <h2 id="development">Development</h2>

<!--
MkDocs version : 1.5.3
Build Date UTC : 2024-03-07 08:24:11.779456+00:00
Build Date UTC : 2024-03-07 09:01:45.267942+00:00
-->
2 changes: 2 additions & 0 deletions notebooks/1_download_and_preprocess/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="../../datamodule/">datamodule</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../collator/">collator</a>
</li>
</ul>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions notebooks/2_create_dataloader/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="../../datamodule/">datamodule</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../collator/">collator</a>
</li>
</ul>
</div>
</div>
Expand Down
Binary file modified objects.inv
Binary file not shown.
Loading

0 comments on commit 65d4f5b

Please sign in to comment.