Skip to content

Commit 74da7f9

Browse files
committed
1 parent ec2c7b4 commit 74da7f9

36 files changed

+1075
-124
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
skbio.util.DataTable
2+
====================
3+
4+
.. currentmodule:: skbio.util
5+
6+
.. autodata:: DataTable

docs/dev/generated/generated/skbio.util.config.get_config.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@
618618
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.params_aliased.html">skbio.util.params_aliased</a></li>
619619
</ul>
620620
<ul class="nav bd-sidenav">
621+
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.DataTable.html">skbio.util.DataTable</a></li>
622+
</ul>
623+
<ul class="nav bd-sidenav">
621624
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.get_rng.html">skbio.util.get_rng</a></li>
622625
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.cardinal_to_ordinal.html">skbio.util.cardinal_to_ordinal</a></li>
623626
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.find_duplicates.html">skbio.util.find_duplicates</a></li>
@@ -689,7 +692,7 @@
689692
<h1>skbio.util.config.get_config<a class="headerlink" href="#skbio-util-config-get-config" title="Link to this heading">#</a></h1>
690693
<dl class="py function">
691694
<dt class="sig sig-object py" id="skbio.util.config.get_config">
692-
<span class="sig-prename descclassname"><span class="pre">skbio.util.config.</span></span><span class="sig-name descname"><span class="pre">get_config</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">option</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.13)"><span class="pre">str</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.13)"><span class="pre">str</span></a></span></span><a class="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/util/config/_config.py#L32"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skbio.util.config.get_config" title="Link to this definition">#</a></dt>
695+
<span class="sig-prename descclassname"><span class="pre">skbio.util.config.</span></span><span class="sig-name descname"><span class="pre">get_config</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">option</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.13)"><span class="pre">str</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.13)"><span class="pre">str</span></a></span></span><a class="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/util/config/_config.py#L48"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skbio.util.config.get_config" title="Link to this definition">#</a></dt>
693696
<dd><p>Get the current value of an skbio config option.</p>
694697
<dl class="field-list simple">
695698
<dt class="field-odd">Parameters<span class="colon">:</span></dt>

docs/dev/generated/generated/skbio.util.config.set_config.html

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<head>
88
<meta charset="utf-8" />
9-
<meta name="description" content="Set an skbio config option." />
9+
<meta name="description" content="Set a scikit-bio config option." />
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
1111

1212
<title>skbio.util.config.set_config &#8212; scikit-bio 0.6.4-dev documentation</title>
@@ -618,6 +618,9 @@
618618
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.params_aliased.html">skbio.util.params_aliased</a></li>
619619
</ul>
620620
<ul class="nav bd-sidenav">
621+
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.DataTable.html">skbio.util.DataTable</a></li>
622+
</ul>
623+
<ul class="nav bd-sidenav">
621624
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.get_rng.html">skbio.util.get_rng</a></li>
622625
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.cardinal_to_ordinal.html">skbio.util.cardinal_to_ordinal</a></li>
623626
<li class="toctree-l1"><a class="reference internal" href="../skbio.util.find_duplicates.html">skbio.util.find_duplicates</a></li>
@@ -690,17 +693,33 @@ <h1>skbio.util.config.set_config<a class="headerlink" href="#skbio-util-config-s
690693
<dl class="py function">
691694
<dt class="sig sig-object py" id="skbio.util.config.set_config">
692695
<span class="sig-prename descclassname"><span class="pre">skbio.util.config.</span></span><span class="sig-name descname"><span class="pre">set_config</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">option</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.13)"><span class="pre">str</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">value</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.13)"><span class="pre">str</span></a></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/util/config/_config.py#L12"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skbio.util.config.set_config" title="Link to this definition">#</a></dt>
693-
<dd><p>Set an skbio config option.</p>
696+
<dd><p>Set a scikit-bio config option.</p>
697+
<p>This function enables users to set the configuration of scikit-bio functions
698+
globally.</p>
694699
<dl class="field-list simple">
695700
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
696701
<dd class="field-odd"><dl class="simple">
697-
<dt><strong>option</strong><span class="classifier">str</span></dt><dd><p>The configuration option to be modified.</p>
702+
<dt><strong>option</strong><span class="classifier">str</span></dt><dd><p>The configuration option to be modified. Currently there is only one
703+
configurable option, <code class="docutils literal notranslate"><span class="pre">&quot;output&quot;</span></code>.</p>
704+
</dd>
705+
<dt><strong>value</strong><span class="classifier">str</span></dt><dd><p>The value to update the configuration dictionary with. For the
706+
<code class="docutils literal notranslate"><span class="pre">&quot;output&quot;</span></code> option, <code class="docutils literal notranslate"><span class="pre">value</span></code> may be set to <code class="docutils literal notranslate"><span class="pre">&quot;pandas&quot;</span></code>,
707+
<code class="docutils literal notranslate"><span class="pre">&quot;polars&quot;</span></code>, or <code class="docutils literal notranslate"><span class="pre">&quot;numpy&quot;</span></code>. Defaults to <code class="docutils literal notranslate"><span class="pre">&quot;pandas&quot;</span></code>.</p>
698708
</dd>
699-
<dt><strong>value</strong><span class="classifier">str</span></dt><dd><p>The value to update the configuration dictionary with.</p>
709+
</dl>
710+
</dd>
711+
<dt class="field-even">Raises<span class="colon">:</span></dt>
712+
<dd class="field-even"><dl class="simple">
713+
<dt>ValueError</dt><dd><p>If an unkown option is used or if an unsupported value for an option is used.</p>
700714
</dd>
701715
</dl>
702716
</dd>
703717
</dl>
718+
<p class="rubric">Examples</p>
719+
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span><span class="w"> </span><span class="nn">skbio</span><span class="w"> </span><span class="kn">import</span> <span class="n">set_config</span>
720+
<span class="gp">&gt;&gt;&gt; </span><span class="n">set_config</span><span class="p">(</span><span class="s2">&quot;output&quot;</span><span class="p">,</span> <span class="s2">&quot;numpy&quot;</span><span class="p">)</span>
721+
</pre></div>
722+
</div>
704723
</dd></dl>
705724

706725
</section>

docs/dev/generated/skbio.stats.ordination.OrdinationResults.html

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@
688688
<h1>skbio.stats.ordination.OrdinationResults<a class="headerlink" href="#skbio-stats-ordination-ordinationresults" title="Link to this heading">#</a></h1>
689689
<dl class="py class">
690690
<dt class="sig sig-object py" id="skbio.stats.ordination.OrdinationResults">
691-
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">skbio.stats.ordination.</span></span><span class="sig-name descname"><span class="pre">OrdinationResults</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">short_method_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">long_method_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">eigvals</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">samples</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_ids</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">features</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">feature_ids</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">biplot_scores</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_constraints</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">constraint_ids</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proportion_explained</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/stats/ordination/_ordination_results.py#L21"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skbio.stats.ordination.OrdinationResults" title="Link to this definition">#</a></dt>
691+
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">skbio.stats.ordination.</span></span><span class="sig-name descname"><span class="pre">OrdinationResults</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">short_method_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">long_method_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">eigvals</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">samples</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_ids</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">features</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">feature_ids</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">biplot_scores</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_constraints</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">constraint_ids</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">proportion_explained</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/stats/ordination/_ordination_results.py#L22"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skbio.stats.ordination.OrdinationResults" title="Link to this definition">#</a></dt>
692692
<dd><p>Store ordination results, providing serialization and plotting support.</p>
693693
<p>Stores various components of ordination results. Provides methods for
694694
serializing/deserializing results, as well as generation of basic
@@ -701,27 +701,33 @@ <h1>skbio.stats.ordination.OrdinationResults<a class="headerlink" href="#skbio-s
701701
</dd>
702702
<dt><strong>long_method_name</strong><span class="classifier">str</span></dt><dd><p>Ordination method name.</p>
703703
</dd>
704-
<dt><strong>eigvals</strong><span class="classifier">ndarray</span></dt><dd><p>The resulting eigenvalues. The index corresponds to the ordination
705-
axis labels</p>
704+
<dt><strong>eigvals</strong><span class="classifier">table_like</span></dt><dd><p>The resulting eigenvalues. The index corresponds to the ordination
705+
axis labels. See the <a class="reference external" href="../../../docs/dev/generated/skbio.util.config.html#the-datatable-type">DataTable</a> type
706+
documentation for details.</p>
706707
</dd>
707-
<dt><strong>samples</strong><span class="classifier">ndarray</span></dt><dd><p>The position of the samples in the ordination space, row-indexed by the
708-
sample id.</p>
708+
<dt><strong>samples</strong><span class="classifier">table_like</span></dt><dd><p>The position of the samples in the ordination space, row-indexed by the
709+
sample id. See the <a class="reference external" href="../../../docs/dev/generated/skbio.util.config.html#the-datatable-type">DataTable</a> type
710+
documentation for details.</p>
709711
</dd>
710-
<dt><strong>sample_ids</strong><span class="classifier">list of str, or should it be pd.Index?</span></dt><dd><p>The names of the samples. Must be provided if samples is an array.</p>
712+
<dt><strong>features</strong><span class="classifier">table_like</span></dt><dd><p>The position of the features in the ordination space, row-indexed by
713+
the feature id. See the <a class="reference external" href="../../../docs/dev/generated/skbio.util.config.html#the-datatable-type">DataTable</a> type
714+
documentation for details.</p>
711715
</dd>
712-
<dt><strong>features</strong><span class="classifier">ndarray</span></dt><dd><p>The position of the features in the ordination space, row-indexed by
713-
the feature id.</p>
716+
<dt><strong>biplot_scores</strong><span class="classifier">table_like</span></dt><dd><p>Correlation coefficients of the samples with respect to the features.
717+
See the <a class="reference external" href="../../../docs/dev/generated/skbio.util.config.html#the-datatable-type">DataTable</a> type
718+
documentation for details.</p>
714719
</dd>
715-
<dt><strong>feature_ids</strong><span class="classifier">array-like of str</span></dt><dd><p>The names of the features. Must be provided if features is an array.</p>
716-
</dd>
717-
<dt><strong>biplot_scores</strong><span class="classifier">ndarray</span></dt><dd><p>Correlation coefficients of the samples with respect to the features.</p>
718-
</dd>
719-
<dt><strong>sample_constraints</strong><span class="classifier">ndarray</span></dt><dd><p>Site constraints (linear combinations of constraining variables):
720+
<dt><strong>sample_constraints</strong><span class="classifier">table_like</span></dt><dd><p>Site constraints (linear combinations of constraining variables):
720721
coordinates of the sites in the space of the explanatory variables X.
721-
These are the fitted site scores</p>
722+
These are the fitted site scores. See the <a class="reference external" href="../../../docs/dev/generated/skbio.util.config.html#the-datatable-type">DataTable</a> type
723+
documentation for details.</p>
724+
</dd>
725+
<dt><strong>proportion_explained</strong><span class="classifier">table_like</span></dt><dd><p>Proportion explained by each of the dimensions in the ordination space.
726+
The index corresponds to the ordination axis labels. See the
727+
<a class="reference external" href="../../../docs/dev/generated/skbio.util.config.html#the-datatable-type">DataTable</a> type documentation for details.</p>
722728
</dd>
723-
<dt><strong>proportion_explained</strong><span class="classifier">ndarray</span></dt><dd><p>Proportion explained by each of the dimensions in the ordination space.
724-
The index corresponds to the ordination axis labels</p>
729+
<dt><strong>sample_ids, feature_ids, constraint_ids, output_format</strong><span class="classifier">optional</span></dt><dd><p>Standard <code class="docutils literal notranslate"><span class="pre">DataTable</span></code> parameters. See the <a class="reference external" href="../../../docs/dev/generated/skbio.util.config.html#the-datatable-type">DataTable</a> type
730+
documentation for details.</p>
725731
</dd>
726732
</dl>
727733
</dd>
@@ -821,7 +827,7 @@ <h1>skbio.stats.ordination.OrdinationResults<a class="headerlink" href="#skbio-s
821827

822828
<dl class="py method">
823829
<dt class="sig sig-object py" id="skbio.stats.ordination.OrdinationResults.__str__">
824-
<span class="sig-name descname"><span class="pre">__str__</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/stats/ordination/_ordination_results.py#L107"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skbio.stats.ordination.OrdinationResults.__str__" title="Link to this definition">#</a></dt>
830+
<span class="sig-name descname"><span class="pre">__str__</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference external" href="https://github.com/scikit-bio/scikit-bio/blob/main/skbio/stats/ordination/_ordination_results.py#L123"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skbio.stats.ordination.OrdinationResults.__str__" title="Link to this definition">#</a></dt>
825831
<dd><p>Return a string representation of the ordination results.</p>
826832
<p>String representation lists ordination results attributes and indicates
827833
whether or not they are present. If an attribute is present, its

0 commit comments

Comments
 (0)