Skip to content

Commit fc6e681

Browse files
committed
renamed nmvae to bavaria
1 parent 8240099 commit fc6e681

19 files changed

Lines changed: 86 additions & 86 deletions

CONTRIBUTING.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ little bit helps, and credit will always be given.
88
Bug reports
99
===========
1010

11-
When `reporting a bug <https://github.com/wkopp/nmvae/issues>`_ please include:
11+
When `reporting a bug <https://github.com/wkopp/bavaria/issues>`_ please include:
1212

1313
* Your operating system name and version.
1414
* Any details about your local setup that might be helpful in troubleshooting.
@@ -17,14 +17,14 @@ When `reporting a bug <https://github.com/wkopp/nmvae/issues>`_ please include:
1717
Documentation improvements
1818
==========================
1919

20-
nmvae could always use more documentation, whether as part of the
21-
official nmvae docs, in docstrings, or even on the web in blog posts,
20+
bavaria could always use more documentation, whether as part of the
21+
official bavaria docs, in docstrings, or even on the web in blog posts,
2222
articles, and such.
2323

2424
Feature requests and feedback
2525
=============================
2626

27-
The best way to send feedback is to file an issue at https://github.com/wkopp/nmvae/issues.
27+
The best way to send feedback is to file an issue at https://github.com/wkopp/bavaria/issues.
2828

2929
If you are proposing a feature:
3030

@@ -35,13 +35,13 @@ If you are proposing a feature:
3535
Development
3636
===========
3737

38-
To set up `nmvae` for local development:
38+
To set up `bavaria` for local development:
3939

40-
1. Fork `nmvae <https://github.com/wkopp/nmvae>`_
40+
1. Fork `bavaria <https://github.com/wkopp/bavaria>`_
4141
(look for the "Fork" button).
4242
2. Clone your fork locally::
4343

44-
git clone git@github.com:YOURGITHUBNAME/nmvae.git
44+
git clone git@github.com:YOURGITHUBNAME/bavaria.git
4545

4646
3. Create a branch for local development::
4747

@@ -74,7 +74,7 @@ For merging, you should:
7474
4. Add yourself to ``AUTHORS.rst``.
7575

7676
.. [1] If you don't have all the necessary python versions available locally you can rely on Travis - it will
77-
`run the tests <https://travis-ci.org/wkopp/nmvae/pull_requests>`_ for each change you add in the pull request.
77+
`run the tests <https://travis-ci.org/wkopp/bavaria/pull_requests>`_ for each change you add in the pull request.
7878
7979
It will be slower though ...
8080

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Installation
1414

1515
::
1616

17-
pip install https://github.com/BIMSBbioinfo/nmvae/archive/v0.0.1.zip
17+
pip install https://github.com/BIMSBbioinfo/bavaria/archive/v0.0.1.zip
1818

1919

2020
Documentation
@@ -26,7 +26,7 @@ The minimally required options are
2626

2727
::
2828

29-
nmvae -data <matrix.mtx>
29+
bavaria -data <matrix.mtx>
3030
-regions <regions.bed>
3131
-barcodes <barcodes.tsv>
3232
-output <outputdir>

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
source_suffix = '.rst'
1919
master_doc = 'index'
20-
project = 'nmvae'
20+
project = 'bavaria'
2121
year = '2020'
2222
author = 'Wolfgang Kopp'
2323
copyright = '{0}, {1}'.format(year, author)
@@ -26,8 +26,8 @@
2626
pygments_style = 'trac'
2727
templates_path = ['.']
2828
extlinks = {
29-
'issue': ('https://github.com/wkopp/nmvae/issues/%s', '#'),
30-
'pr': ('https://github.com/wkopp/nmvae/pull/%s', 'PR #'),
29+
'issue': ('https://github.com/wkopp/bavaria/issues/%s', '#'),
30+
'pr': ('https://github.com/wkopp/bavaria/pull/%s', 'PR #'),
3131
}
3232
# on_rtd is whether we are on readthedocs.org
3333
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Installation
44

55
At the command line::
66

7-
pip install nmvae
7+
pip install bavaria

docs/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Usage
33
=====
44

5-
To use nmvae in a project::
5+
To use bavaria in a project::
66

7-
import nmvae
7+
import bavaria

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ testpaths =
2929
[tool:isort]
3030
force_single_line = True
3131
line_length = 120
32-
known_first_party = nmvae
32+
known_first_party = bavaria
3333
default_section = THIRDPARTY
34-
forced_separate = test_nmvae
34+
forced_separate = test_bavaria
3535
skip = .tox,.eggs,ci/templates,build,dist

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def read(*names, **kwargs):
2424

2525

2626
setup(
27-
name='nmvae',
27+
name='bavaria',
2828
version='0.0.1',
2929
license='LGPL-3.0-or-later',
3030
description='Negative multinomial variational auto-encoder',
@@ -34,7 +34,7 @@ def read(*names, **kwargs):
3434
),
3535
author='Wolfgang Kopp',
3636
author_email='wolfgang.kopp@mdc-berlin.de',
37-
url='https://github.com/wkopp/nmvae',
37+
url='https://github.com/wkopp/bavaria',
3838
packages=find_packages('src'),
3939
package_dir={'': 'src'},
4040
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
@@ -58,9 +58,9 @@ def read(*names, **kwargs):
5858
'Private :: Do Not Upload',
5959
],
6060
project_urls={
61-
'Documentation': 'https://nmvae.readthedocs.io/',
62-
'Changelog': 'https://nmvae.readthedocs.io/en/latest/changelog.html',
63-
'Issue Tracker': 'https://github.com/wkopp/nmvae/issues',
61+
'Documentation': 'https://bavaria.readthedocs.io/',
62+
'Changelog': 'https://bavaria.readthedocs.io/en/latest/changelog.html',
63+
'Issue Tracker': 'https://github.com/wkopp/bavaria/issues',
6464
},
6565
keywords=[
6666
# eg: 'keyword1', 'keyword2', 'keyword3',
@@ -84,7 +84,7 @@ def read(*names, **kwargs):
8484
},
8585
entry_points={
8686
'console_scripts': [
87-
'nmvae = nmvae.cli:main',
87+
'bavaria = bavaria.cli:main',
8888
]
8989
},
9090
)

src/bavaria/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__version__ = '0.0.1'
2+
#from bavaria.utils import VAE
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Entrypoint module, in case you use `python -mnmvae`.
2+
Entrypoint module, in case you use `python -mbavaria`.
33
44
55
Why does this file exist, and why __main__? For more info, read:
@@ -8,7 +8,7 @@
88
- https://docs.python.org/2/using/cmdline.html#cmdoption-m
99
- https://docs.python.org/3/using/cmdline.html#cmdoption-m
1010
"""
11-
from nmvae.cli import main
11+
from bavaria.cli import main
1212

1313
if __name__ == "__main__":
1414
main()

src/nmvae/cli.py renamed to src/bavaria/cli.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
You might be tempted to import things from __main__ later, but that will cause
77
problems: the code will get executed twice:
88
9-
- When you run `python -mnmvae` python will execute
9+
- When you run `python -mbavaria` python will execute
1010
``__main__.py`` as a script. That means there won't be any
11-
``nmvae.__main__`` in ``sys.modules``.
11+
``bavaria.__main__`` in ``sys.modules``.
1212
- When you import __main__ it will get executed again (as a module) because
13-
there's no ``nmvae.__main__`` in ``sys.modules``.
13+
there's no ``bavaria.__main__`` in ``sys.modules``.
1414
1515
Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
1616
"""
@@ -20,22 +20,22 @@
2020
import pandas as pd
2121
import tensorflow as tf
2222
import keras
23-
from nmvae import __version__
24-
from nmvae.ensembles import EnsembleVAE
25-
from nmvae.ensembles import BatchEnsembleVAE
26-
from nmvae.data import load_data
27-
from nmvae.data import load_batch_labels
28-
from nmvae.data import one_hot_encode_batches
29-
from nmvae.utils import resnet_vae_params
30-
from nmvae.utils import resnet_vae_batch_params
31-
from nmvae.utils import get_variable_regions
23+
from bavaria import __version__
24+
from bavaria.ensembles import EnsembleVAE
25+
from bavaria.ensembles import BatchEnsembleVAE
26+
from bavaria.data import load_data
27+
from bavaria.data import load_batch_labels
28+
from bavaria.data import one_hot_encode_batches
29+
from bavaria.utils import resnet_vae_params
30+
from bavaria.utils import resnet_vae_batch_params
31+
from bavaria.utils import get_variable_regions
3232
import scanpy as sc
3333
import logging
3434

3535

3636
def main(args=None):
3737

38-
parser = argparse.ArgumentParser('nmvae',
38+
parser = argparse.ArgumentParser('bavaria',
3939
description=f'Negative multinomial variational auto-encoders - v{__version__}')
4040

4141
parser.add_argument('-data', dest='data', type=str,
@@ -157,7 +157,7 @@ def main(args=None):
157157

158158
adata = metamodel.encode(adata)
159159

160-
sc.pp.neighbors(adata, n_neighbors=15, use_rep="nmvae-ensemble")
160+
sc.pp.neighbors(adata, n_neighbors=15, use_rep="bavaria-ensemble")
161161
sc.tl.louvain(adata, resolution=args.resolution)
162162
sc.tl.umap(adata)
163163

0 commit comments

Comments
 (0)