Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into latent-repi
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkim0 committed Feb 14, 2024
2 parents 7f4984a + e4a02e6 commit 31cd588
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 35 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# scvi-v2
# mrvi

[![Tests][badge-tests]][link-tests]
[![Documentation][badge-docs]][link-docs]

[badge-tests]: https://img.shields.io/github/workflow/status/justjhong/scvi-v2/Test/main
[link-tests]: https://github.com/YosefLab/scvi-v2/actions/workflows/test.yml
[badge-docs]: https://img.shields.io/readthedocs/scvi-v2
[badge-tests]: https://img.shields.io/github/workflow/status/justjhong/mrvi/Test/main
[link-tests]: https://github.com/YosefLab/mrvi/actions/workflows/test.yml
[badge-docs]: https://img.shields.io/readthedocs/mrvi

V2 of single-cell Variational Inference.

Expand All @@ -20,20 +20,20 @@ Please refer to the [documentation][link-docs]. In particular, the
You need to have Python 3.8 or newer installed on your system. If you don't have
Python installed, we recommend installing [Miniconda](https://docs.conda.io/en/latest/miniconda.html).

There are several alternative options to install scvi-v2:
There are several alternative options to install mrvi:

<!--
1) Install the latest release of `scvi-v2` from `PyPI <https://pypi.org/project/scvi-v2/>`_:
1) Install the latest release of `mrvi` from `PyPI <https://pypi.org/project/mrvi/>`_:
```bash
pip install scvi-v2
pip install mrvi
```
-->

1. Install the latest development version:

```bash
pip install git+https://github.com/justjhong/scvi-v2.git@main
pip install git+https://github.com/justjhong/mrvi.git@main
```

## Release notes
Expand All @@ -50,7 +50,7 @@ If you found a bug, please use the [issue tracker][issue-tracker].
> t.b.a
[scverse-discourse]: https://discourse.scverse.org/
[issue-tracker]: https://github.com/justjhong/scvi-v2/issues
[changelog]: https://scvi-v2.readthedocs.io/latest/changelog.html
[link-docs]: https://scvi-v2.readthedocs.io
[link-api]: https://scvi-v2.readthedocs.io/latest/api.html
[issue-tracker]: https://github.com/justjhong/mrvi/issues
[changelog]: https://mrvi.readthedocs.io/latest/changelog.html
[link-docs]: https://mrvi.readthedocs.io
[link-api]: https://mrvi.readthedocs.io/latest/api.html
12 changes: 6 additions & 6 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Preprocessing

```{eval-rst}
.. module:: scvi_v2.pp
.. currentmodule:: scvi_v2
.. module:: mrvi.pp
.. currentmodule:: mrvi
.. autosummary::
:toctree: generated
Expand All @@ -15,8 +15,8 @@
## Tools

```{eval-rst}
.. module:: scvi_v2.tl
.. currentmodule:: scvi_v2
.. module:: mrvi.tl
.. currentmodule:: mrvi
.. autosummary::
:toctree: generated
Expand All @@ -27,8 +27,8 @@
## Plotting

```{eval-rst}
.. module:: scvi_v2.pl
.. currentmodule:: scvi_v2
.. module:: mrvi.pl
.. currentmodule:: mrvi
.. autosummary::
:toctree: generated
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# -- Project information -----------------------------------------------------

info = metadata("scvi-v2")
info = metadata("mrvi")
project_name = info["Name"]
author = info["Author"]
copyright = f"{datetime.now():%Y}, {author}."
Expand Down
6 changes: 3 additions & 3 deletions docs/developer_docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ In `pyproject.toml` add the following changes, and you are good to go!


[project]
name = "scvi-v2"
name = "mrvi"
-version = "0.3.1dev"
+dynamic = ["version"]

Expand All @@ -168,7 +168,7 @@ In `pyproject.toml` add the following changes, and you are good to go!
+source = "vcs"
+
[tool.coverage.run]
source = ["scvi-v2"]
source = ["mrvi"]
omit = [
```

Expand All @@ -191,7 +191,7 @@ In addition to the packages needed to _use_ this package, you need additional py
the documentation_. It's easy to install them using `pip`:

```bash
pip install "scvi-v2[dev,test,doc]"
pip install "mrvi[dev,test,doc]"
```

### Code-style
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"source": [
"import numpy as np\n",
"from anndata import AnnData\n",
"import scvi_v2"
"import mrvi"
]
},
{
Expand Down Expand Up @@ -51,7 +51,7 @@
}
],
"source": [
"scvi_v2.pp.basic_preproc(adata)"
"mrvi.pp.basic_preproc(adata)"
]
}
],
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["hatchling"]


[project]
name = "scvi-v2"
name = "mrvi"
version = "0.0.1"
description = "Multi-resolution Variational Inference"
readme = "README.md"
Expand All @@ -16,9 +16,9 @@ authors = [
maintainers = [
{name = "Justin Hong", email = "[email protected]"},
]
urls.Documentation = "https://scvi-v2.readthedocs.io/"
urls.Source = "https://github.com/YosefLab/scvi-v2"
urls.Home-page = "https://github.com/YosefLab/scvi-v2"
urls.Documentation = "https://mrvi.readthedocs.io/"
urls.Source = "https://github.com/YosefLab/mrvi"
urls.Home-page = "https://github.com/YosefLab/mrvi"
dependencies = [
"scvi-tools>=1.1.0rc2",
"seaborn>=0.12.1",
Expand Down Expand Up @@ -47,7 +47,7 @@ test = [
]

[tool.coverage.run]
source = ["scvi_v2"]
source = ["mrvi"]
omit = [
"**/test_*.py",
]
Expand Down
2 changes: 1 addition & 1 deletion src/scvi_v2/__init__.py → src/mrvi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"permutation_test",
]

__version__ = version("scvi-v2")
__version__ = version("mrvi")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import mrvi
import pytest
import scvi_v2


def test_package_has_version():
_ = scvi_v2.__version__
_ = mrvi.__version__


@pytest.mark.skip(reason="This decorator should be removed when test passes.")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_components.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import jax
import jax.numpy as jnp
from scvi_v2._components import (
from mrvi._components import (
AttentionBlock,
ConditionalNormalization,
Dense,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from tempfile import TemporaryDirectory

import numpy as np
from mrvi import MrVI
from scvi.data import synthetic_iid
from scvi_v2 import MrVI


def test_mrvi():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from scvi_v2._utils import compute_statistic, permutation_test
from mrvi._utils import compute_statistic, permutation_test
from sklearn.metrics import pairwise_distances


Expand Down

0 comments on commit 31cd588

Please sign in to comment.