AMR 2.1.1.9216__py3-none-any.whl → 2.1.1.9221__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- AMR/datasets.py +1 -3
- {amr-2.1.1.9216.dist-info → amr-2.1.1.9221.dist-info}/METADATA +9 -8
- amr-2.1.1.9221.dist-info/RECORD +7 -0
- {amr-2.1.1.9216.dist-info → amr-2.1.1.9221.dist-info}/WHEEL +1 -1
- amr-2.1.1.9216.dist-info/RECORD +0 -7
- {amr-2.1.1.9216.dist-info → amr-2.1.1.9221.dist-info}/top_level.txt +0 -0
AMR/datasets.py
CHANGED
@@ -40,9 +40,7 @@ except metadata.PackageNotFoundError:
|
|
40
40
|
|
41
41
|
# R package version of AMR
|
42
42
|
r_amr_version = robjects.r(f'as.character(packageVersion("AMR", lib.loc = "{r_amr_lib_path}"))')
|
43
|
-
|
44
|
-
print(python_amr_version)
|
45
|
-
print(r_amr_version)
|
43
|
+
r_amr_version = str(r_amr_version[0])
|
46
44
|
|
47
45
|
# Compare R and Python package versions
|
48
46
|
if r_amr_version != python_amr_version:
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: AMR
|
3
|
-
Version: 2.1.1.
|
3
|
+
Version: 2.1.1.9221
|
4
4
|
Summary: A Python wrapper for the AMR R package
|
5
5
|
Home-page: https://github.com/msberends/AMR
|
6
6
|
Author: Matthijs Berends
|
@@ -27,22 +27,23 @@ Dynamic: requires-python
|
|
27
27
|
Dynamic: summary
|
28
28
|
|
29
29
|
|
30
|
-
The `AMR` package for R is a powerful tool for antimicrobial resistance (AMR) analysis. It provides extensive features for handling microbial and antimicrobial data. However, for those who work primarily in Python, we now have a more intuitive option available: the [`AMR` Python
|
30
|
+
The `AMR` package for R is a powerful tool for antimicrobial resistance (AMR) analysis. It provides extensive features for handling microbial and antimicrobial data. However, for those who work primarily in Python, we now have a more intuitive option available: the [`AMR` Python package](https://pypi.org/project/AMR/).
|
31
31
|
|
32
|
-
This Python package is a wrapper
|
32
|
+
This Python package is a wrapper around the `AMR` R package. It uses the `rpy2` package internally. Despite the need to have R installed, Python users can now easily work with AMR data directly through Python code.
|
33
33
|
|
34
34
|
# Prerequisites
|
35
35
|
|
36
|
-
This package was only tested with [
|
36
|
+
This package was only tested with a [virtual environment (venv)](https://docs.python.org/3/library/venv.html). You can set up such an environment by running:
|
37
37
|
|
38
38
|
```python
|
39
|
-
#
|
39
|
+
# linux and macOS:
|
40
40
|
python -m venv /path/to/new/virtual/environment
|
41
|
-
|
41
|
+
|
42
|
+
# Windows:
|
42
43
|
python -m venv C:\path\to\new\virtual\environment
|
43
44
|
```
|
44
45
|
|
45
|
-
Then you can [activate the environment](https://docs.python.org/3/library/venv.html#how-venvs-work), after
|
46
|
+
Then you can [activate the environment](https://docs.python.org/3/library/venv.html#how-venvs-work), after which the venv is ready to work with.
|
46
47
|
|
47
48
|
# Install AMR
|
48
49
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
AMR/__init__.py,sha256=CqpcLv7M6mte09zdHYPzBuHJQeFAqJ4s2uN_rExYfoM,7730
|
2
|
+
AMR/datasets.py,sha256=_9pBp_J2NXDadNBkqI9PUIA-AkLUt5sAcxZX1t8H8-8,2657
|
3
|
+
AMR/functions.py,sha256=91Tl9Jh6sbu-1xUvlst9VyQB5HJOe6ZCNhjtPpnLuik,46722
|
4
|
+
amr-2.1.1.9221.dist-info/METADATA,sha256=3tqpnclwFaHAt5m0pfmHNz7IlWUWJiGvnrjKLIZvfG4,10095
|
5
|
+
amr-2.1.1.9221.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
6
|
+
amr-2.1.1.9221.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
|
7
|
+
amr-2.1.1.9221.dist-info/RECORD,,
|
amr-2.1.1.9216.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
AMR/__init__.py,sha256=CqpcLv7M6mte09zdHYPzBuHJQeFAqJ4s2uN_rExYfoM,7730
|
2
|
-
AMR/datasets.py,sha256=Fc9Ogxehhthw2T7qVc758zWdYkkztDYyWH4RRMwekcI,2667
|
3
|
-
AMR/functions.py,sha256=91Tl9Jh6sbu-1xUvlst9VyQB5HJOe6ZCNhjtPpnLuik,46722
|
4
|
-
amr-2.1.1.9216.dist-info/METADATA,sha256=oAoco8yPQ_mGTSk0d5iyaQYT5056EG76Q7lc9ngjORI,10111
|
5
|
-
amr-2.1.1.9216.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
6
|
-
amr-2.1.1.9216.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
|
7
|
-
amr-2.1.1.9216.dist-info/RECORD,,
|
File without changes
|