Skip to content

Commit

Permalink
v0.1.4
Browse files Browse the repository at this point in the history
- Bump version
- Add changelog
- Fix tests for new AnnData dtype behaviour
  • Loading branch information
gtca committed Jun 7, 2023
1 parent 0484ace commit ae15b50
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ Release notes

*

v0.1.4
------

This release comes with improvements and fixes:

* :func:`muon.pp.intersect_obs` now works for modalities that have no ``.X``

* :func:`muon.pl.embedding` now saves the colour palette in ``.uns``

* :func:`muon.atac.pl.fragment_histogram` and :func:`muon.pl.histogram` now have save/show arguments

* :func:`muon.atac.tl.count_fragments_features` now has a ``stranded`` argument

* :func:`muon.atac.tl.nucleosome_signal` now works on more ``pysam`` setups

* support for numpy 1.24 and newer scanpy versions


v0.1.3
------

Expand Down
2 changes: 1 addition & 1 deletion muon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from . import atac
from . import prot

__version__ = "0.1.3"
__version__ = "0.1.4"
6 changes: 3 additions & 3 deletions tests/test_atac_preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TestTFIDF(unittest.TestCase):
def setUp(self):
np.random.seed(2020)
x = np.abs(np.random.normal(size=(4, 5)))
self.adata = AnnData(x)
self.adata = AnnData(x, dtype=x.dtype)

def test_tfidf(self):
adata = self.adata.copy()
Expand Down Expand Up @@ -49,11 +49,11 @@ class TestTFIDFSparse(unittest.TestCase):
def setUp(self):
np.random.seed(2020)
x = rand(100, 10, density=0.2, format="csr")
self.adata = AnnData(x)
self.adata = AnnData(x, dtype=x.dtype)

def test_tfidf(self):
ac.pp.tfidf(self.adata, log_tf=True, log_idf=True)
self.assertEqual(str("%.3f" % self.adata.X[10, 9]), "18.748")
self.assertEqual(str("%.3f" % self.adata.X[10, 9]), "18.749")
self.assertEqual(str("%.3f" % self.adata.X[50, 5]), "0.000")


Expand Down

0 comments on commit ae15b50

Please sign in to comment.