AMR 2.1.1.9123__py3-none-any.whl → 2.1.1.9126__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/__init__.py CHANGED
@@ -2,6 +2,8 @@ from .datasets import example_isolates
2
2
  from .datasets import microorganisms
3
3
  from .datasets import antibiotics
4
4
  from .datasets import clinical_breakpoints
5
+ from .functions import ab_class
6
+ from .functions import ab_selector
5
7
  from .functions import ab_from_text
6
8
  from .functions import ab_name
7
9
  from .functions import ab_cid
@@ -24,8 +26,9 @@ from .functions import clear_custom_microorganisms
24
26
  from .functions import age
25
27
  from .functions import age_groups
26
28
  from .functions import antibiogram
27
- from .functions import ab_class
28
- from .functions import ab_selector
29
+ from .functions import wisca
30
+ from .functions import amr_class
31
+ from .functions import amr_selector
29
32
  from .functions import aminoglycosides
30
33
  from .functions import aminopenicillins
31
34
  from .functions import antifungals
@@ -199,5 +202,6 @@ from .functions import resistance_predict
199
202
  from .functions import sir_predict
200
203
  from .functions import ggplot_sir_predict
201
204
  from .functions import skewness
205
+ from .functions import top_n_microorganisms
202
206
  from .functions import reset_AMR_locale
203
207
  from .functions import translate_AMR
AMR/datasets.py CHANGED
@@ -3,6 +3,7 @@ GREEN = '\033[32m'
3
3
  RESET = '\033[0m'
4
4
 
5
5
  import os
6
+ import sys
6
7
  from rpy2 import robjects
7
8
  from rpy2.robjects import pandas2ri
8
9
  from rpy2.robjects.packages import importr, isinstalled
@@ -10,7 +11,7 @@ import pandas as pd
10
11
  import importlib.metadata as metadata
11
12
 
12
13
  # Get the path to the virtual environment
13
- venv_path = os.getenv('VIRTUAL_ENV') # Path to the active virtual environment
14
+ venv_path = sys.prefix
14
15
 
15
16
  # Define R library path within the venv
16
17
  r_lib_path = os.path.join(venv_path, "R_libs")
@@ -19,10 +20,12 @@ os.makedirs(r_lib_path, exist_ok=True)
19
20
  # Set the R library path in .libPaths
20
21
  base = importr('base')
21
22
  base._libPaths(r_lib_path)
23
+ r_amr_lib_path = base._libPaths()[0]
22
24
 
23
25
  # Check if the AMR package is installed in R
24
- if not isinstalled('AMR'):
26
+ if not isinstalled('AMR', lib_loc = r_amr_lib_path):
25
27
  utils = importr('utils')
28
+ print(f"{BLUE}AMR:{RESET} Installing AMR package to {BLUE}{r_amr_lib_path}/{RESET}...", flush=True)
26
29
  utils.install_packages('AMR', repos='https://msberends.r-universe.dev', quiet=True)
27
30
 
28
31
  # Python package version of AMR
@@ -37,7 +40,7 @@ r_amr_version = robjects.r(f'as.character(packageVersion("AMR", lib.loc = "{r_li
37
40
  # Compare R and Python package versions
38
41
  if r_amr_version != python_amr_version:
39
42
  try:
40
- print(f"{BLUE}AMR:{RESET} Updating package version{RESET}", flush=True)
43
+ print(f"{BLUE}AMR:{RESET} Updating AMR package in {BLUE}{r_amr_lib_path}/{RESET}...", flush=True)
41
44
  utils = importr('utils')
42
45
  utils.install_packages('AMR', repos='https://msberends.r-universe.dev', quiet=True)
43
46
  except Exception as e:
AMR/functions.py CHANGED
@@ -36,9 +36,15 @@ def convert_to_python(r_output):
36
36
 
37
37
  # Fall-back
38
38
  return r_output
39
- def ab_from_text(*args, **kwargs):
39
+ def ab_class(*args, **kwargs):
40
40
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
41
- return convert_to_python(amr_r.ab_from_text(*args, **kwargs))
41
+ return convert_to_python(amr_r.ab_class(*args, **kwargs))
42
+ def ab_selector(*args, **kwargs):
43
+ """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
44
+ return convert_to_python(amr_r.ab_selector(*args, **kwargs))
45
+ def ab_from_text(text, *args, **kwargs):
46
+ """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
47
+ return convert_to_python(amr_r.ab_from_text(text, *args, **kwargs))
42
48
  def ab_name(x, *args, **kwargs):
43
49
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
44
50
  return convert_to_python(amr_r.ab_name(x, *args, **kwargs))
@@ -99,15 +105,18 @@ def age(x, *args, **kwargs):
99
105
  def age_groups(x, *args, **kwargs):
100
106
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
101
107
  return convert_to_python(amr_r.age_groups(x, *args, **kwargs))
102
- def antibiogram(*args, **kwargs):
108
+ def antibiogram(x, *args, **kwargs):
103
109
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
104
- return convert_to_python(amr_r.antibiogram(*args, **kwargs))
105
- def ab_class(ab_class, *args, **kwargs):
110
+ return convert_to_python(amr_r.antibiogram(x, *args, **kwargs))
111
+ def wisca(x, *args, **kwargs):
106
112
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
107
- return convert_to_python(amr_r.ab_class(ab_class, *args, **kwargs))
108
- def ab_selector(filter, *args, **kwargs):
113
+ return convert_to_python(amr_r.wisca(x, *args, **kwargs))
114
+ def amr_class(amr_class, *args, **kwargs):
109
115
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
110
- return convert_to_python(amr_r.ab_selector(filter, *args, **kwargs))
116
+ return convert_to_python(amr_r.amr_class(amr_class, *args, **kwargs))
117
+ def amr_selector(filter, *args, **kwargs):
118
+ """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
119
+ return convert_to_python(amr_r.amr_selector(filter, *args, **kwargs))
111
120
  def aminoglycosides(only_sir_columns = False, *args, **kwargs):
112
121
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
113
122
  return convert_to_python(amr_r.aminoglycosides(only_sir_columns = False, *args, **kwargs))
@@ -201,9 +210,9 @@ def administrable_per_os(only_sir_columns = False, *args, **kwargs):
201
210
  def administrable_iv(only_sir_columns = False, *args, **kwargs):
202
211
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
203
212
  return convert_to_python(amr_r.administrable_iv(only_sir_columns = False, *args, **kwargs))
204
- def not_intrinsic_resistant(*args, **kwargs):
213
+ def not_intrinsic_resistant(only_sir_columns = False, *args, **kwargs):
205
214
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
206
- return convert_to_python(amr_r.not_intrinsic_resistant(*args, **kwargs))
215
+ return convert_to_python(amr_r.not_intrinsic_resistant(only_sir_columns = False, *args, **kwargs))
207
216
  def as_ab(x, *args, **kwargs):
208
217
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
209
218
  return convert_to_python(amr_r.as_ab(x, *args, **kwargs))
@@ -231,9 +240,9 @@ def is_mic(x):
231
240
  def rescale_mic(x, *args, **kwargs):
232
241
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
233
242
  return convert_to_python(amr_r.rescale_mic(x, *args, **kwargs))
234
- def as_mo(*args, **kwargs):
243
+ def as_mo(x, *args, **kwargs):
235
244
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
236
- return convert_to_python(amr_r.as_mo(*args, **kwargs))
245
+ return convert_to_python(amr_r.as_mo(x, *args, **kwargs))
237
246
  def is_mo(x):
238
247
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
239
248
  return convert_to_python(amr_r.is_mo(x))
@@ -264,9 +273,9 @@ def is_sir_eligible(x, *args, **kwargs):
264
273
  def sir_interpretation_history(clean):
265
274
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
266
275
  return convert_to_python(amr_r.sir_interpretation_history(clean))
267
- def atc_online_property(*args, **kwargs):
276
+ def atc_online_property(atc_code, *args, **kwargs):
268
277
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
269
- return convert_to_python(amr_r.atc_online_property(*args, **kwargs))
278
+ return convert_to_python(amr_r.atc_online_property(atc_code, *args, **kwargs))
270
279
  def atc_online_groups(atc_code, *args, **kwargs):
271
280
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
272
281
  return convert_to_python(amr_r.atc_online_groups(atc_code, *args, **kwargs))
@@ -276,9 +285,9 @@ def atc_online_ddd(atc_code, *args, **kwargs):
276
285
  def atc_online_ddd_units(atc_code, *args, **kwargs):
277
286
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
278
287
  return convert_to_python(amr_r.atc_online_ddd_units(atc_code, *args, **kwargs))
279
- def av_from_text(*args, **kwargs):
288
+ def av_from_text(text, *args, **kwargs):
280
289
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
281
- return convert_to_python(amr_r.av_from_text(*args, **kwargs))
290
+ return convert_to_python(amr_r.av_from_text(text, *args, **kwargs))
282
291
  def av_name(x, *args, **kwargs):
283
292
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
284
293
  return convert_to_python(amr_r.av_name(x, *args, **kwargs))
@@ -348,45 +357,45 @@ def count_all(*args, **kwargs):
348
357
  def n_sir(*args, **kwargs):
349
358
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
350
359
  return convert_to_python(amr_r.n_sir(*args, **kwargs))
351
- def count_df(*args, **kwargs):
360
+ def count_df(data, *args, **kwargs):
352
361
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
353
- return convert_to_python(amr_r.count_df(*args, **kwargs))
362
+ return convert_to_python(amr_r.count_df(data, *args, **kwargs))
354
363
  def custom_eucast_rules(*args, **kwargs):
355
364
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
356
365
  return convert_to_python(amr_r.custom_eucast_rules(*args, **kwargs))
357
- def eucast_rules(*args, **kwargs):
366
+ def eucast_rules(x, *args, **kwargs):
358
367
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
359
- return convert_to_python(amr_r.eucast_rules(*args, **kwargs))
368
+ return convert_to_python(amr_r.eucast_rules(x, *args, **kwargs))
360
369
  def eucast_dosage(ab, *args, **kwargs):
361
370
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
362
371
  return convert_to_python(amr_r.eucast_dosage(ab, *args, **kwargs))
363
- def export_ncbi_biosample(*args, **kwargs):
372
+ def export_ncbi_biosample(x, *args, **kwargs):
364
373
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
365
- return convert_to_python(amr_r.export_ncbi_biosample(*args, **kwargs))
366
- def first_isolate(*args, **kwargs):
374
+ return convert_to_python(amr_r.export_ncbi_biosample(x, *args, **kwargs))
375
+ def first_isolate(x = None, *args, **kwargs):
367
376
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
368
- return convert_to_python(amr_r.first_isolate(*args, **kwargs))
369
- def filter_first_isolate(*args, **kwargs):
377
+ return convert_to_python(amr_r.first_isolate(x = None, *args, **kwargs))
378
+ def filter_first_isolate(x = None, *args, **kwargs):
370
379
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
371
- return convert_to_python(amr_r.filter_first_isolate(*args, **kwargs))
380
+ return convert_to_python(amr_r.filter_first_isolate(x = None, *args, **kwargs))
372
381
  def g_test(x, *args, **kwargs):
373
382
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
374
383
  return convert_to_python(amr_r.g_test(x, *args, **kwargs))
375
384
  def is_new_episode(x, *args, **kwargs):
376
385
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
377
386
  return convert_to_python(amr_r.is_new_episode(x, *args, **kwargs))
378
- def ggplot_pca(*args, **kwargs):
387
+ def ggplot_pca(x, *args, **kwargs):
379
388
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
380
- return convert_to_python(amr_r.ggplot_pca(*args, **kwargs))
381
- def ggplot_sir(*args, **kwargs):
389
+ return convert_to_python(amr_r.ggplot_pca(x, *args, **kwargs))
390
+ def ggplot_sir(data, *args, **kwargs):
382
391
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
383
- return convert_to_python(amr_r.ggplot_sir(*args, **kwargs))
384
- def geom_sir(*args, **kwargs):
392
+ return convert_to_python(amr_r.ggplot_sir(data, *args, **kwargs))
393
+ def geom_sir(position = None, *args, **kwargs):
385
394
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
386
- return convert_to_python(amr_r.geom_sir(*args, **kwargs))
387
- def guess_ab_col(*args, **kwargs):
395
+ return convert_to_python(amr_r.geom_sir(position = None, *args, **kwargs))
396
+ def guess_ab_col(x = None, *args, **kwargs):
388
397
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
389
- return convert_to_python(amr_r.guess_ab_col(*args, **kwargs))
398
+ return convert_to_python(amr_r.guess_ab_col(x = None, *args, **kwargs))
390
399
  def italicise_taxonomy(string, *args, **kwargs):
391
400
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
392
401
  return convert_to_python(amr_r.italicise_taxonomy(string, *args, **kwargs))
@@ -411,24 +420,24 @@ def semi_join_microorganisms(x, *args, **kwargs):
411
420
  def anti_join_microorganisms(x, *args, **kwargs):
412
421
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
413
422
  return convert_to_python(amr_r.anti_join_microorganisms(x, *args, **kwargs))
414
- def key_antimicrobials(*args, **kwargs):
423
+ def key_antimicrobials(x = None, *args, **kwargs):
415
424
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
416
- return convert_to_python(amr_r.key_antimicrobials(*args, **kwargs))
425
+ return convert_to_python(amr_r.key_antimicrobials(x = None, *args, **kwargs))
417
426
  def all_antimicrobials(x = None, *args, **kwargs):
418
427
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
419
428
  return convert_to_python(amr_r.all_antimicrobials(x = None, *args, **kwargs))
420
- def antimicrobials_equal(*args, **kwargs):
429
+ def antimicrobials_equal(y, *args, **kwargs):
421
430
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
422
- return convert_to_python(amr_r.antimicrobials_equal(*args, **kwargs))
431
+ return convert_to_python(amr_r.antimicrobials_equal(y, *args, **kwargs))
423
432
  def kurtosis(x, *args, **kwargs):
424
433
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
425
434
  return convert_to_python(amr_r.kurtosis(x, *args, **kwargs))
426
435
  def like(x, *args, **kwargs):
427
436
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
428
437
  return convert_to_python(amr_r.like(x, *args, **kwargs))
429
- def mdro(*args, **kwargs):
438
+ def mdro(x = None, *args, **kwargs):
430
439
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
431
- return convert_to_python(amr_r.mdro(*args, **kwargs))
440
+ return convert_to_python(amr_r.mdro(x = None, *args, **kwargs))
432
441
  def custom_mdro_guideline(*args, **kwargs):
433
442
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
434
443
  return convert_to_python(amr_r.custom_mdro_guideline(*args, **kwargs))
@@ -444,9 +453,9 @@ def mdr_tb(x = None, *args, **kwargs):
444
453
  def mdr_cmi2012(x = None, *args, **kwargs):
445
454
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
446
455
  return convert_to_python(amr_r.mdr_cmi2012(x = None, *args, **kwargs))
447
- def eucast_exceptional_phenotypes(*args, **kwargs):
456
+ def eucast_exceptional_phenotypes(x = None, *args, **kwargs):
448
457
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
449
- return convert_to_python(amr_r.eucast_exceptional_phenotypes(*args, **kwargs))
458
+ return convert_to_python(amr_r.eucast_exceptional_phenotypes(x = None, *args, **kwargs))
450
459
  def mean_amr_distance(x, *args, **kwargs):
451
460
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
452
461
  return convert_to_python(amr_r.mean_amr_distance(x, *args, **kwargs))
@@ -456,126 +465,126 @@ def amr_distance_from_row(amr_distance, *args, **kwargs):
456
465
  def mo_matching_score(x, *args, **kwargs):
457
466
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
458
467
  return convert_to_python(amr_r.mo_matching_score(x, *args, **kwargs))
459
- def mo_name(*args, **kwargs):
468
+ def mo_name(x, *args, **kwargs):
460
469
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
461
- return convert_to_python(amr_r.mo_name(*args, **kwargs))
462
- def mo_fullname(*args, **kwargs):
470
+ return convert_to_python(amr_r.mo_name(x, *args, **kwargs))
471
+ def mo_fullname(x, *args, **kwargs):
463
472
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
464
- return convert_to_python(amr_r.mo_fullname(*args, **kwargs))
465
- def mo_shortname(*args, **kwargs):
473
+ return convert_to_python(amr_r.mo_fullname(x, *args, **kwargs))
474
+ def mo_shortname(x, *args, **kwargs):
466
475
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
467
- return convert_to_python(amr_r.mo_shortname(*args, **kwargs))
468
- def mo_subspecies(*args, **kwargs):
476
+ return convert_to_python(amr_r.mo_shortname(x, *args, **kwargs))
477
+ def mo_subspecies(x, *args, **kwargs):
469
478
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
470
- return convert_to_python(amr_r.mo_subspecies(*args, **kwargs))
471
- def mo_species(*args, **kwargs):
479
+ return convert_to_python(amr_r.mo_subspecies(x, *args, **kwargs))
480
+ def mo_species(x, *args, **kwargs):
472
481
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
473
- return convert_to_python(amr_r.mo_species(*args, **kwargs))
474
- def mo_genus(*args, **kwargs):
482
+ return convert_to_python(amr_r.mo_species(x, *args, **kwargs))
483
+ def mo_genus(x, *args, **kwargs):
475
484
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
476
- return convert_to_python(amr_r.mo_genus(*args, **kwargs))
477
- def mo_family(*args, **kwargs):
485
+ return convert_to_python(amr_r.mo_genus(x, *args, **kwargs))
486
+ def mo_family(x, *args, **kwargs):
478
487
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
479
- return convert_to_python(amr_r.mo_family(*args, **kwargs))
480
- def mo_order(*args, **kwargs):
488
+ return convert_to_python(amr_r.mo_family(x, *args, **kwargs))
489
+ def mo_order(x, *args, **kwargs):
481
490
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
482
- return convert_to_python(amr_r.mo_order(*args, **kwargs))
483
- def mo_class(*args, **kwargs):
491
+ return convert_to_python(amr_r.mo_order(x, *args, **kwargs))
492
+ def mo_class(x, *args, **kwargs):
484
493
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
485
- return convert_to_python(amr_r.mo_class(*args, **kwargs))
486
- def mo_phylum(*args, **kwargs):
494
+ return convert_to_python(amr_r.mo_class(x, *args, **kwargs))
495
+ def mo_phylum(x, *args, **kwargs):
487
496
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
488
- return convert_to_python(amr_r.mo_phylum(*args, **kwargs))
489
- def mo_kingdom(*args, **kwargs):
497
+ return convert_to_python(amr_r.mo_phylum(x, *args, **kwargs))
498
+ def mo_kingdom(x, *args, **kwargs):
490
499
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
491
- return convert_to_python(amr_r.mo_kingdom(*args, **kwargs))
492
- def mo_domain(*args, **kwargs):
500
+ return convert_to_python(amr_r.mo_kingdom(x, *args, **kwargs))
501
+ def mo_domain(x, *args, **kwargs):
493
502
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
494
- return convert_to_python(amr_r.mo_domain(*args, **kwargs))
495
- def mo_type(*args, **kwargs):
503
+ return convert_to_python(amr_r.mo_domain(x, *args, **kwargs))
504
+ def mo_type(x, *args, **kwargs):
496
505
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
497
- return convert_to_python(amr_r.mo_type(*args, **kwargs))
498
- def mo_status(*args, **kwargs):
506
+ return convert_to_python(amr_r.mo_type(x, *args, **kwargs))
507
+ def mo_status(x, *args, **kwargs):
499
508
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
500
- return convert_to_python(amr_r.mo_status(*args, **kwargs))
501
- def mo_pathogenicity(*args, **kwargs):
509
+ return convert_to_python(amr_r.mo_status(x, *args, **kwargs))
510
+ def mo_pathogenicity(x, *args, **kwargs):
502
511
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
503
- return convert_to_python(amr_r.mo_pathogenicity(*args, **kwargs))
504
- def mo_gramstain(*args, **kwargs):
512
+ return convert_to_python(amr_r.mo_pathogenicity(x, *args, **kwargs))
513
+ def mo_gramstain(x, *args, **kwargs):
505
514
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
506
- return convert_to_python(amr_r.mo_gramstain(*args, **kwargs))
507
- def mo_is_gram_negative(*args, **kwargs):
515
+ return convert_to_python(amr_r.mo_gramstain(x, *args, **kwargs))
516
+ def mo_is_gram_negative(x, *args, **kwargs):
508
517
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
509
- return convert_to_python(amr_r.mo_is_gram_negative(*args, **kwargs))
510
- def mo_is_gram_positive(*args, **kwargs):
518
+ return convert_to_python(amr_r.mo_is_gram_negative(x, *args, **kwargs))
519
+ def mo_is_gram_positive(x, *args, **kwargs):
511
520
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
512
- return convert_to_python(amr_r.mo_is_gram_positive(*args, **kwargs))
513
- def mo_is_yeast(*args, **kwargs):
521
+ return convert_to_python(amr_r.mo_is_gram_positive(x, *args, **kwargs))
522
+ def mo_is_yeast(x, *args, **kwargs):
514
523
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
515
- return convert_to_python(amr_r.mo_is_yeast(*args, **kwargs))
516
- def mo_is_intrinsic_resistant(*args, **kwargs):
524
+ return convert_to_python(amr_r.mo_is_yeast(x, *args, **kwargs))
525
+ def mo_is_intrinsic_resistant(x, *args, **kwargs):
517
526
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
518
- return convert_to_python(amr_r.mo_is_intrinsic_resistant(*args, **kwargs))
519
- def mo_oxygen_tolerance(*args, **kwargs):
527
+ return convert_to_python(amr_r.mo_is_intrinsic_resistant(x, *args, **kwargs))
528
+ def mo_oxygen_tolerance(x, *args, **kwargs):
520
529
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
521
- return convert_to_python(amr_r.mo_oxygen_tolerance(*args, **kwargs))
522
- def mo_is_anaerobic(*args, **kwargs):
530
+ return convert_to_python(amr_r.mo_oxygen_tolerance(x, *args, **kwargs))
531
+ def mo_is_anaerobic(x, *args, **kwargs):
523
532
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
524
- return convert_to_python(amr_r.mo_is_anaerobic(*args, **kwargs))
525
- def mo_snomed(*args, **kwargs):
533
+ return convert_to_python(amr_r.mo_is_anaerobic(x, *args, **kwargs))
534
+ def mo_snomed(x, *args, **kwargs):
526
535
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
527
- return convert_to_python(amr_r.mo_snomed(*args, **kwargs))
528
- def mo_ref(*args, **kwargs):
536
+ return convert_to_python(amr_r.mo_snomed(x, *args, **kwargs))
537
+ def mo_ref(x, *args, **kwargs):
529
538
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
530
- return convert_to_python(amr_r.mo_ref(*args, **kwargs))
531
- def mo_authors(*args, **kwargs):
539
+ return convert_to_python(amr_r.mo_ref(x, *args, **kwargs))
540
+ def mo_authors(x, *args, **kwargs):
532
541
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
533
- return convert_to_python(amr_r.mo_authors(*args, **kwargs))
534
- def mo_year(*args, **kwargs):
542
+ return convert_to_python(amr_r.mo_authors(x, *args, **kwargs))
543
+ def mo_year(x, *args, **kwargs):
535
544
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
536
- return convert_to_python(amr_r.mo_year(*args, **kwargs))
537
- def mo_lpsn(*args, **kwargs):
545
+ return convert_to_python(amr_r.mo_year(x, *args, **kwargs))
546
+ def mo_lpsn(x, *args, **kwargs):
538
547
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
539
- return convert_to_python(amr_r.mo_lpsn(*args, **kwargs))
540
- def mo_mycobank(*args, **kwargs):
548
+ return convert_to_python(amr_r.mo_lpsn(x, *args, **kwargs))
549
+ def mo_mycobank(x, *args, **kwargs):
541
550
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
542
- return convert_to_python(amr_r.mo_mycobank(*args, **kwargs))
543
- def mo_gbif(*args, **kwargs):
551
+ return convert_to_python(amr_r.mo_mycobank(x, *args, **kwargs))
552
+ def mo_gbif(x, *args, **kwargs):
544
553
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
545
- return convert_to_python(amr_r.mo_gbif(*args, **kwargs))
546
- def mo_rank(*args, **kwargs):
554
+ return convert_to_python(amr_r.mo_gbif(x, *args, **kwargs))
555
+ def mo_rank(x, *args, **kwargs):
547
556
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
548
- return convert_to_python(amr_r.mo_rank(*args, **kwargs))
549
- def mo_taxonomy(*args, **kwargs):
557
+ return convert_to_python(amr_r.mo_rank(x, *args, **kwargs))
558
+ def mo_taxonomy(x, *args, **kwargs):
550
559
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
551
- return convert_to_python(amr_r.mo_taxonomy(*args, **kwargs))
552
- def mo_synonyms(*args, **kwargs):
560
+ return convert_to_python(amr_r.mo_taxonomy(x, *args, **kwargs))
561
+ def mo_synonyms(x, *args, **kwargs):
553
562
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
554
- return convert_to_python(amr_r.mo_synonyms(*args, **kwargs))
563
+ return convert_to_python(amr_r.mo_synonyms(x, *args, **kwargs))
555
564
  def mo_current(x, *args, **kwargs):
556
565
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
557
566
  return convert_to_python(amr_r.mo_current(x, *args, **kwargs))
558
- def mo_group_members(*args, **kwargs):
567
+ def mo_group_members(x, *args, **kwargs):
559
568
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
560
- return convert_to_python(amr_r.mo_group_members(*args, **kwargs))
561
- def mo_info(*args, **kwargs):
569
+ return convert_to_python(amr_r.mo_group_members(x, *args, **kwargs))
570
+ def mo_info(x, *args, **kwargs):
562
571
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
563
- return convert_to_python(amr_r.mo_info(*args, **kwargs))
564
- def mo_url(*args, **kwargs):
572
+ return convert_to_python(amr_r.mo_info(x, *args, **kwargs))
573
+ def mo_url(x, *args, **kwargs):
565
574
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
566
- return convert_to_python(amr_r.mo_url(*args, **kwargs))
567
- def mo_property(*args, **kwargs):
575
+ return convert_to_python(amr_r.mo_url(x, *args, **kwargs))
576
+ def mo_property(x, *args, **kwargs):
568
577
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
569
- return convert_to_python(amr_r.mo_property(*args, **kwargs))
570
- def pca(*args, **kwargs):
578
+ return convert_to_python(amr_r.mo_property(x, *args, **kwargs))
579
+ def pca(x, *args, **kwargs):
571
580
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
572
- return convert_to_python(amr_r.pca(*args, **kwargs))
581
+ return convert_to_python(amr_r.pca(x, *args, **kwargs))
573
582
  def theme_sir(*args, **kwargs):
574
583
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
575
584
  return convert_to_python(amr_r.theme_sir(*args, **kwargs))
576
- def labels_sir_count(*args, **kwargs):
585
+ def labels_sir_count(position = None, *args, **kwargs):
577
586
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
578
- return convert_to_python(amr_r.labels_sir_count(*args, **kwargs))
587
+ return convert_to_python(amr_r.labels_sir_count(position = None, *args, **kwargs))
579
588
  def resistance(*args, **kwargs):
580
589
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
581
590
  return convert_to_python(amr_r.resistance(*args, **kwargs))
@@ -600,12 +609,12 @@ def proportion_SI(*args, **kwargs):
600
609
  def proportion_S(*args, **kwargs):
601
610
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
602
611
  return convert_to_python(amr_r.proportion_S(*args, **kwargs))
603
- def proportion_df(*args, **kwargs):
612
+ def proportion_df(data, *args, **kwargs):
604
613
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
605
- return convert_to_python(amr_r.proportion_df(*args, **kwargs))
606
- def sir_df(*args, **kwargs):
614
+ return convert_to_python(amr_r.proportion_df(data, *args, **kwargs))
615
+ def sir_df(data, *args, **kwargs):
607
616
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
608
- return convert_to_python(amr_r.sir_df(*args, **kwargs))
617
+ return convert_to_python(amr_r.sir_df(data, *args, **kwargs))
609
618
  def random_mic(size = None, *args, **kwargs):
610
619
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
611
620
  return convert_to_python(amr_r.random_mic(size = None, *args, **kwargs))
@@ -615,18 +624,21 @@ def random_disk(size = None, *args, **kwargs):
615
624
  def random_sir(size = None, *args, **kwargs):
616
625
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
617
626
  return convert_to_python(amr_r.random_sir(size = None, *args, **kwargs))
618
- def resistance_predict(*args, **kwargs):
627
+ def resistance_predict(x, *args, **kwargs):
619
628
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
620
- return convert_to_python(amr_r.resistance_predict(*args, **kwargs))
621
- def sir_predict(*args, **kwargs):
629
+ return convert_to_python(amr_r.resistance_predict(x, *args, **kwargs))
630
+ def sir_predict(x, *args, **kwargs):
622
631
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
623
- return convert_to_python(amr_r.sir_predict(*args, **kwargs))
624
- def ggplot_sir_predict(*args, **kwargs):
632
+ return convert_to_python(amr_r.sir_predict(x, *args, **kwargs))
633
+ def ggplot_sir_predict(x, *args, **kwargs):
625
634
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
626
- return convert_to_python(amr_r.ggplot_sir_predict(*args, **kwargs))
635
+ return convert_to_python(amr_r.ggplot_sir_predict(x, *args, **kwargs))
627
636
  def skewness(x, *args, **kwargs):
628
637
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
629
638
  return convert_to_python(amr_r.skewness(x, *args, **kwargs))
639
+ def top_n_microorganisms(x, *args, **kwargs):
640
+ """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
641
+ return convert_to_python(amr_r.top_n_microorganisms(x, *args, **kwargs))
630
642
  def reset_AMR_locale(*args, **kwargs):
631
643
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
632
644
  return convert_to_python(amr_r.reset_AMR_locale(*args, **kwargs))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: AMR
3
- Version: 2.1.1.9123
3
+ Version: 2.1.1.9126
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
@@ -0,0 +1,7 @@
1
+ AMR/__init__.py,sha256=-3zoWVuhybnYkXePzljDrtcxxaAQscPpCPP75EiqLfQ,7540
2
+ AMR/datasets.py,sha256=DtzZAmuaFK3H4LZIycEfCDS7BIY5iyNxDzfTj2bGsdU,2574
3
+ AMR/functions.py,sha256=JSh-0_mfrAj7ajpazlv2KFyEtRAglj7oQV9Iiaux7eo,45557
4
+ AMR-2.1.1.9126.dist-info/METADATA,sha256=3PIASuWvjNhLvT6r17T7tuTO_10GnMzk_EDNTgIUxUk,9625
5
+ AMR-2.1.1.9126.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6
+ AMR-2.1.1.9126.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
7
+ AMR-2.1.1.9126.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- AMR/__init__.py,sha256=4srBWIndgfqanzEHiGDPuWXkvPNzPKKkEq3FdWXERgw,7398
2
- AMR/datasets.py,sha256=IDeqfVGjzvhMhKZRlS6Pc3xIO4HBlRDvPdQjDQ8qVTc,2426
3
- AMR/functions.py,sha256=7XO-wYlzxsdK9fkKW0mh20tj_-BWinbsZ6tDrEIauEE,44127
4
- AMR-2.1.1.9123.dist-info/METADATA,sha256=cMsISRVm_TuXA_Qv7z1lB7W3Url7CHGSMxG-FNBBK3E,9625
5
- AMR-2.1.1.9123.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6
- AMR-2.1.1.9123.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
7
- AMR-2.1.1.9123.dist-info/RECORD,,