ssi-analysis-result-parsers 0.0.11__py3-none-any.whl → 0.0.13__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.
@@ -41,12 +41,17 @@ def extract_meningotype(meningotype_tsv: Path):
41
41
  if meningotype_tsv.exists():
42
42
  try:
43
43
  df = pandas.read_csv(meningotype_tsv, sep="\t")
44
- PorA_split = df["PorA"][0].split(",")
44
+ PorA_split = df.iloc[0]["PorA"].split(",")
45
+ VR1 = PorA_split[0]
46
+ try:
47
+ VR2 = PorA_split[1]
48
+ except:
49
+ VR2 = ""
45
50
  return {
46
- "SEROGROUP": df["SEROGROUP"][0],
47
- "VR1": PorA_split[0],
48
- "VR2": PorA_split[1],
49
- "FetA": df["FetA"][0],
51
+ "SEROGROUP": df.iloc[0]["SEROGROUP"],
52
+ "VR1": VR1,
53
+ "VR2": VR2,
54
+ "FetA": df.iloc[0]["FetA"],
50
55
  }
51
56
  except pandas.errors.EmptyDataError:
52
57
  print(
@@ -1 +1 @@
1
- __version__ = "0.0.10"
1
+ __version__ = "0.0.12"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ssi_analysis_result_parsers
3
- Version: 0.0.11
3
+ Version: 0.0.13
4
4
  Summary: TODO
5
5
  Home-page: https://github.com/thej-ssi/ssi_analysis_result_parsers
6
6
  Author: Thor Bech Johannesen
@@ -19,9 +19,9 @@ Requires-Python: >=3.9
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
21
  Requires-Dist: fastcore
22
- Requires-Dist: python_dotenv
23
- Requires-Dist: envyaml
24
22
  Requires-Dist: pandas
23
+ Requires-Dist: envyaml
24
+ Requires-Dist: python_dotenv
25
25
  Requires-Dist: black
26
26
  Provides-Extra: dev
27
27
  Dynamic: author
@@ -1,8 +1,8 @@
1
1
  ssi_analysis_result_parsers/Ecoli_parser.py,sha256=lKNnx27KqxpX3yv1RAP-sBATMGf9yjfSs4-d50mR2cA,22704
2
2
  ssi_analysis_result_parsers/Legionella_parser.py,sha256=Yp14u8xqItrIb-uVk786K6jlIi-HNfn0wnQMo_R_X1c,6950
3
- ssi_analysis_result_parsers/Nmeningitidis_parser.py,sha256=qZFsYMoa13vPXEVRPivMqVkj179a7LAJ7n18oLcDV_k,6906
3
+ ssi_analysis_result_parsers/Nmeningitidis_parser.py,sha256=z57AbXbZ62P_wKNr7ECBIO1sr68LEPWWl0tLtOFMMMU,7031
4
4
  ssi_analysis_result_parsers/Spyogenes_parser.py,sha256=Cjibp7iKGofjSp-igm-jmjBVkQ6-zxYQWVSZT-Vx3Fo,12731
5
- ssi_analysis_result_parsers/__init__.py,sha256=-nNlMKS9nph3FR78_ZG9RGKrbxseeNp2K6nMr0pVGaU,23
5
+ ssi_analysis_result_parsers/__init__.py,sha256=1SFj-qMOaeO0fOKQaFmYhAKiRwwNda5uWKpYtIcken8,23
6
6
  ssi_analysis_result_parsers/_modidx.py,sha256=rrpJq1GcgPx34ag7bGe6VvBl4v-tC-ErTTvYAjHW7uI,22865
7
7
  ssi_analysis_result_parsers/blast_parser.py,sha256=pIzMGk5-VyTy8uzFncTiIsy80wQxl9NbNiGI_K7XMaM,8658
8
8
  ssi_analysis_result_parsers/core.py,sha256=8CzFMDrGJ24D9aoIebLsG8tx-OxvYJod1cxBITqNfaY,12258
@@ -10,7 +10,7 @@ ssi_analysis_result_parsers/hello_world.py,sha256=jpN94sqYuNHqUbUZMCJ35qGY5iLPB_
10
10
  ssi_analysis_result_parsers/some_string.py,sha256=JwmAXKbX_JgY8UGh4FAu5-7ZjezcAEhq4Q2B73pWp2M,923
11
11
  ssi_analysis_result_parsers/config/config.default.env,sha256=Zt6bfPbVV3rYCksoebX1ruAdFgeD9wqAnKDtswhtJJM,1390
12
12
  ssi_analysis_result_parsers/config/config.default.yaml,sha256=3qgUrUtQpxrzYv7WQaHsvz9dQB0RALKNU0idxv7oRqM,460
13
- ssi_analysis_result_parsers-0.0.11.dist-info/licenses/LICENSE,sha256=p6aTb6QIfqyZ2Uux2VjV4F2zthdUSHZOjB4mfwGc7fo,1094
13
+ ssi_analysis_result_parsers-0.0.13.dist-info/licenses/LICENSE,sha256=p6aTb6QIfqyZ2Uux2VjV4F2zthdUSHZOjB4mfwGc7fo,1094
14
14
  test_input/.DS_Store,sha256=sdTEvl9DTKPHNPYYjMqDepX7q7ZETlonk21tGEuWLao,6148
15
15
  test_input/empty_file.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  test_input/Ecoli/ERR14229029.res,sha256=AmVZwbiUTjOQLe7SmSKWt9-URdcrsLSxt9hHUh-nFUY,129
@@ -46,8 +46,8 @@ test_output/output_with_sample_name.tsv,sha256=NQG7WaxczuWCCsX2a9MUxCCYpbuAirz9g
46
46
  test_output/test.tsv,sha256=6DGzarXMkUP03Z58vZimc-gu1K2k84zxZLWWF2HROCg,277
47
47
  test_output/test_batch_output.tsv,sha256=6DGzarXMkUP03Z58vZimc-gu1K2k84zxZLWWF2HROCg,277
48
48
  test_output/Ecoli/KMA_cases_parser.tsv,sha256=Wf3JkSppRN5AK2zRJmFQlwVfCMyJfgyyBpTjb1sK6Uw,586
49
- ssi_analysis_result_parsers-0.0.11.dist-info/METADATA,sha256=n-ciGwjniNsGbVa_xVSeIJGtK5a6k7guU2BSPE1WCQQ,2766
50
- ssi_analysis_result_parsers-0.0.11.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
51
- ssi_analysis_result_parsers-0.0.11.dist-info/entry_points.txt,sha256=OixZpyfeqGO7S_8k1ExmGc32EFBt9RX6C1W3H8vZ1K4,913
52
- ssi_analysis_result_parsers-0.0.11.dist-info/top_level.txt,sha256=dhzhsC8l7PYeBYNT8JzHPz3BriLAw3llVo0jHn175WI,90
53
- ssi_analysis_result_parsers-0.0.11.dist-info/RECORD,,
49
+ ssi_analysis_result_parsers-0.0.13.dist-info/METADATA,sha256=WgVPf67Lwelwff-50gGa3A5E2QI4NDXA-kh0obE_Q7g,2766
50
+ ssi_analysis_result_parsers-0.0.13.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
51
+ ssi_analysis_result_parsers-0.0.13.dist-info/entry_points.txt,sha256=OixZpyfeqGO7S_8k1ExmGc32EFBt9RX6C1W3H8vZ1K4,913
52
+ ssi_analysis_result_parsers-0.0.13.dist-info/top_level.txt,sha256=kVBbBavSQeQsoZCMoiur-3tQ_UT5CeO0L3PwjSdM2yQ,96
53
+ ssi_analysis_result_parsers-0.0.13.dist-info/RECORD,,