Skip to content

Commit

Permalink
Merge pull request #38 from sbslee/1.13.0-dev
Browse files Browse the repository at this point in the history
1.13.0 dev
  • Loading branch information
sbslee authored Apr 2, 2022
2 parents b4c045d + 0d6964b commit b583ee1
Show file tree
Hide file tree
Showing 11 changed files with 444 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
*********

1.13.0 (2022-04-02)
-------------------

* :issue:`37`: Add new methods :meth:`cross_association_table`, :meth:`cross_association_heatmap`, and :meth:`cross_association_regplot`.

1.12.0 (2022-02-11)
-------------------

Expand Down
45 changes: 45 additions & 0 deletions data/miscellaneous/lipids.csv

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions data/miscellaneous/otu.csv

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
'scipy',
'matplotlib',
'seaborn',
'skbio'
'skbio',
'statsmodels',
]

issues_github_path = 'sbslee/dokdo'
Expand Down
21 changes: 21 additions & 0 deletions docs/dokdo_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ As expected, above gives the same result as using the Visualization file created
General Methods
===============

cross_association_table
-----------------------

.. currentmodule:: dokdo.api.cross_association

.. autofunction:: cross_association_table

get_mf
------

Expand Down Expand Up @@ -479,6 +486,20 @@ clustermap

.. autofunction:: clustermap

cross_association_heatmap
-------------------------

.. currentmodule:: dokdo.api.cross_association

.. autofunction:: cross_association_heatmap

cross_association_regplot
-------------------------

.. currentmodule:: dokdo.api.cross_association

.. autofunction:: cross_association_regplot

regplot
-------

Expand Down
Binary file added docs/images/cross_association_heatmap_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/cross_association_regplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions dokdo/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from .distance_matrix_plot import distance_matrix_plot
from .taxa_abundance import taxa_abundance_bar_plot, taxa_abundance_box_plot
from .ancom_volcano_plot import ancom_volcano_plot
from .cross_association import cross_association_table, cross_association_heatmap, cross_association_regplot

from .addsig import addsig
from .addpairs import addpairs
Expand All @@ -28,5 +29,6 @@
'alpha_rarefaction_plot', 'beta_2d_plot', 'beta_3d_plot',
'beta_scree_plot', 'beta_parallel_plot', 'distance_matrix_plot',
'taxa_abundance_bar_plot', 'taxa_abundance_box_plot',
'ancom_volcano_plot', 'addsig', 'regplot', 'addbiplot',
'ordinate', 'pname', 'get_mf']
'ancom_volcano_plot', 'cross_association_table',
'cross_association_heatmap', 'cross_association_regplot',
'addsig', 'regplot', 'addbiplot', 'ordinate', 'pname', 'get_mf']
4 changes: 2 additions & 2 deletions dokdo/api/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def pname(name, levels=None):
.. code:: python3
import dokdo
dokdo.pname('d__Bacteria;p__Actinobacteriota;c__Actinobacteria;o__Actinomycetales;f__Actinomycetaceae;g__Actinomyces;s__Schaalia_radingae')
# Will print: 's__Schaalia_radingae'
Expand All @@ -139,7 +139,7 @@ def pname(name, levels=None):
return rank
if rank == '__':
continue
if rank.split('__')[1] is '':
if not rank.split('__')[1]:
return ranks[i+1] + ';' + rank
return rank
else:
Expand Down
Loading

0 comments on commit b583ee1

Please sign in to comment.