Skip to content

Commit

Permalink
Deploying to pages from @ 6aa896a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
d33bs committed Dec 15, 2024
1 parent 7a32d61 commit f3abe69
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 1,413,657 deletions.
2 changes: 1 addition & 1 deletion main/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 9d51ad66de10d2456730633cfc944dfc
config: 8fed58cbaecf8c0e51ec6fc8247a29aa
tags: 645f666f9bcd5a90fca523b33c5a78b7
10 changes: 2 additions & 8 deletions main/_modules/src/cosmicqc/analyze.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h1>Source code for src.cosmicqc.analyze</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">operator</span>
<span class="kn">import</span> <span class="nn">pathlib</span>
<span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">reduce</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Union</span>

<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
<span class="kn">import</span> <span class="nn">yaml</span>
Expand Down Expand Up @@ -436,14 +436,12 @@ <h1>Source code for src.cosmicqc.analyze</h1><div class="highlight"><pre>

<div class="viewcode-block" id="label_outliers">
<a class="viewcode-back" href="../../../python-api.html#src.cosmicqc.analyze.label_outliers">[docs]</a>
<span class="k">def</span> <span class="nf">label_outliers</span><span class="p">(</span> <span class="c1"># noqa: PLR0913</span>
<span class="k">def</span> <span class="nf">label_outliers</span><span class="p">(</span>
<span class="n">df</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">CytoDataFrame</span><span class="p">,</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">,</span> <span class="nb">str</span><span class="p">],</span>
<span class="n">feature_thresholds</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">Union</span><span class="p">[</span><span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">float</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="n">feature_thresholds_file</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="n">DEFAULT_QC_THRESHOLD_FILE</span><span class="p">,</span>
<span class="n">include_threshold_scores</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span>
<span class="n">export_path</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="n">report_path</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="o">**</span><span class="n">kwargs</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">Any</span><span class="p">],</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">CytoDataFrame</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Use identify_outliers to label the original dataset for</span>
Expand Down Expand Up @@ -545,10 +543,6 @@ <h1>Source code for src.cosmicqc.analyze</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="n">export_path</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">result</span><span class="o">.</span><span class="n">export</span><span class="p">(</span><span class="n">file_path</span><span class="o">=</span><span class="n">export_path</span><span class="p">)</span>

<span class="c1"># if we have a report path, generate the report and use kwargs</span>
<span class="k">if</span> <span class="n">report_path</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">result</span><span class="o">.</span><span class="n">show_report</span><span class="p">(</span><span class="n">report_path</span><span class="o">=</span><span class="n">report_path</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>

<span class="k">return</span> <span class="n">result</span></div>


Expand Down
11,538 changes: 5 additions & 11,533 deletions main/_sources/examples/cosmicqc_in_a_nutshell.ipynb.txt

Large diffs are not rendered by default.

Loading

0 comments on commit f3abe69

Please sign in to comment.