AMR 2.1.1.9215__py3-none-any.whl → 2.1.1.9217__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 CHANGED
@@ -39,7 +39,10 @@ except metadata.PackageNotFoundError:
39
39
  python_amr_version = ''
40
40
 
41
41
  # R package version of AMR
42
- r_amr_version = robjects.r(f'as.character(packageVersion("AMR", lib.loc = "{r_lib_path}"))')[0]
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
46
 
44
47
  # Compare R and Python package versions
45
48
  if r_amr_version != python_amr_version:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: AMR
3
- Version: 2.1.1.9215
3
+ Version: 2.1.1.9217
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,11 +27,25 @@ 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 Package Index](https://pypi.org/project/AMR/).
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 round 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.
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
- # Install
34
+ # Prerequisites
35
+
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
+
38
+ ```python
39
+ # linux and macOS:
40
+ python -m venv /path/to/new/virtual/environment
41
+
42
+ # Windows:
43
+ python -m venv C:\path\to\new\virtual\environment
44
+ ```
45
+
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.
47
+
48
+ # Install AMR
35
49
 
36
50
  1. Since the Python package is available on the official [Python Package Index](https://pypi.org/project/AMR/), you can just run:
37
51
 
@@ -0,0 +1,7 @@
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.9217.dist-info/METADATA,sha256=64FVyOEFl6EKExaSln9mBpLYxv7h6uniz0IbYcophPg,10095
5
+ amr-2.1.1.9217.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
6
+ amr-2.1.1.9217.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
7
+ amr-2.1.1.9217.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (76.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- AMR/__init__.py,sha256=CqpcLv7M6mte09zdHYPzBuHJQeFAqJ4s2uN_rExYfoM,7730
2
- AMR/datasets.py,sha256=KCofsafX_KV40DRUsKXefedJ1hErDnoGhFRXZcW-tSY,2618
3
- AMR/functions.py,sha256=91Tl9Jh6sbu-1xUvlst9VyQB5HJOe6ZCNhjtPpnLuik,46722
4
- amr-2.1.1.9215.dist-info/METADATA,sha256=3bhg93ipTx_0X1RsrA-jb9VfCoB1lZ7tAxEqQeay46E,9630
5
- amr-2.1.1.9215.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
6
- amr-2.1.1.9215.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
7
- amr-2.1.1.9215.dist-info/RECORD,,