ssi-analysis-result-parsers 0.0.15__py3-none-any.whl → 0.0.17__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.
- ssi_analysis_result_parsers/Spyogenes_parser.py +6 -5
- ssi_analysis_result_parsers/__init__.py +1 -1
- {ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/METADATA +1 -1
- {ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/RECORD +8 -8
- {ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/WHEEL +0 -0
- {ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/entry_points.txt +0 -0
- {ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/licenses/LICENSE +0 -0
- {ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/top_level.txt +0 -0
@@ -87,6 +87,7 @@ def extract_emm_type(emm_blast_tsv: Path):
|
|
87
87
|
round((blast_df["sstart"] - blast_df["qstart"] + 1) / 100),
|
88
88
|
round((blast_df["send"] - blast_df["qstart"] + 1) / 100),
|
89
89
|
)
|
90
|
+
blast_df = blast_df.query("bitscore > 200")
|
90
91
|
blast_df_unique = (
|
91
92
|
blast_df.sort_values(by=["bitscore"], ascending=False)
|
92
93
|
.groupby("extended_sstart")
|
@@ -131,7 +132,7 @@ def extract_emm_type(emm_blast_tsv: Path):
|
|
131
132
|
)
|
132
133
|
|
133
134
|
emm_typing_results["ENN_type"] = (
|
134
|
-
"
|
135
|
+
"EMM" + blast_df_unique.iloc[1]["qseqid"][3:]
|
135
136
|
)
|
136
137
|
if (
|
137
138
|
blast_df_unique.iloc[1]["length"] < blast_df_unique.iloc[1]["qlen"]
|
@@ -148,7 +149,7 @@ def extract_emm_type(emm_blast_tsv: Path):
|
|
148
149
|
or emm_maintype in mrp_types_in_emm_plus_mrp_operons
|
149
150
|
):
|
150
151
|
emm_typing_results["MRP_type"] = (
|
151
|
-
"
|
152
|
+
"EMM" + emm_typing_results["EMM_type"][3:]
|
152
153
|
)
|
153
154
|
emm_typing_results["EMM_type"] = (
|
154
155
|
"EMM" + emm_typing_results["ENN_type"][3:]
|
@@ -158,7 +159,7 @@ def extract_emm_type(emm_blast_tsv: Path):
|
|
158
159
|
|
159
160
|
elif blast_df_unique.shape[0] == 3:
|
160
161
|
emm_typing_results["MRP_type"] = (
|
161
|
-
"
|
162
|
+
"EMM" + blast_df_unique.iloc[0]["qseqid"][3:]
|
162
163
|
)
|
163
164
|
if (
|
164
165
|
blast_df_unique.iloc[0]["length"] < blast_df_unique.iloc[0]["qlen"]
|
@@ -182,7 +183,7 @@ def extract_emm_type(emm_blast_tsv: Path):
|
|
182
183
|
)
|
183
184
|
|
184
185
|
emm_typing_results["ENN_type"] = (
|
185
|
-
"
|
186
|
+
"EMM" + blast_df_unique.iloc[2]["qseqid"][3:]
|
186
187
|
)
|
187
188
|
if (
|
188
189
|
blast_df_unique.iloc[2]["length"] < blast_df_unique.iloc[2]["qlen"]
|
@@ -275,7 +276,7 @@ def Spyogenes_parser(
|
|
275
276
|
) -> None:
|
276
277
|
""" """
|
277
278
|
results = SpyogenesResults.from_tool_paths(
|
278
|
-
|
279
|
+
emm_blast_tsv=emm_blast_tsv, sample_name=sample_name
|
279
280
|
)
|
280
281
|
results.write_tsv(output_file=output_file)
|
281
282
|
|
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.0.
|
1
|
+
__version__ = "0.0.16"
|
{ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/RECORD
RENAMED
@@ -2,8 +2,8 @@ ssi_analysis_result_parsers/Ecoli_parser.py,sha256=IQDbTPxvaQBf3el92_76QQ3prA2HG
|
|
2
2
|
ssi_analysis_result_parsers/Hinfluenzae_parser.py,sha256=ch2pI1NEZPteewOXfeN8w4HW9Rhpr5ngdUIPwPqoA4Y,11876
|
3
3
|
ssi_analysis_result_parsers/Legionella_parser.py,sha256=Yp14u8xqItrIb-uVk786K6jlIi-HNfn0wnQMo_R_X1c,6950
|
4
4
|
ssi_analysis_result_parsers/Nmeningitidis_parser.py,sha256=Jl1ubU2T6XbwffpglMBsvp3tOb5DAG72MbDnN6RB0qc,7310
|
5
|
-
ssi_analysis_result_parsers/Spyogenes_parser.py,sha256=
|
6
|
-
ssi_analysis_result_parsers/__init__.py,sha256=
|
5
|
+
ssi_analysis_result_parsers/Spyogenes_parser.py,sha256=mVxfAxEIzWsO11rJjUftIaxTh5oD4U046rd11E_5uCQ,12766
|
6
|
+
ssi_analysis_result_parsers/__init__.py,sha256=8ss7zPyQ3YfaQJw9IIGX35NOL7ASZ7-LErAxKnQDN7c,23
|
7
7
|
ssi_analysis_result_parsers/_modidx.py,sha256=odzq7igGyMkQ34NKL08Rr6qT7attmv2HhQPP6bwi51M,27684
|
8
8
|
ssi_analysis_result_parsers/blast_parser.py,sha256=pIzMGk5-VyTy8uzFncTiIsy80wQxl9NbNiGI_K7XMaM,8658
|
9
9
|
ssi_analysis_result_parsers/core.py,sha256=8CzFMDrGJ24D9aoIebLsG8tx-OxvYJod1cxBITqNfaY,12258
|
@@ -11,7 +11,7 @@ ssi_analysis_result_parsers/hello_world.py,sha256=jpN94sqYuNHqUbUZMCJ35qGY5iLPB_
|
|
11
11
|
ssi_analysis_result_parsers/some_string.py,sha256=JwmAXKbX_JgY8UGh4FAu5-7ZjezcAEhq4Q2B73pWp2M,923
|
12
12
|
ssi_analysis_result_parsers/config/config.default.env,sha256=Zt6bfPbVV3rYCksoebX1ruAdFgeD9wqAnKDtswhtJJM,1390
|
13
13
|
ssi_analysis_result_parsers/config/config.default.yaml,sha256=3qgUrUtQpxrzYv7WQaHsvz9dQB0RALKNU0idxv7oRqM,460
|
14
|
-
ssi_analysis_result_parsers-0.0.
|
14
|
+
ssi_analysis_result_parsers-0.0.17.dist-info/licenses/LICENSE,sha256=p6aTb6QIfqyZ2Uux2VjV4F2zthdUSHZOjB4mfwGc7fo,1094
|
15
15
|
test_input/.DS_Store,sha256=sdTEvl9DTKPHNPYYjMqDepX7q7ZETlonk21tGEuWLao,6148
|
16
16
|
test_input/empty_file.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
test_input/Ecoli/ERR14229029.res,sha256=AmVZwbiUTjOQLe7SmSKWt9-URdcrsLSxt9hHUh-nFUY,129
|
@@ -54,8 +54,8 @@ test_output/output_with_sample_name.tsv,sha256=NQG7WaxczuWCCsX2a9MUxCCYpbuAirz9g
|
|
54
54
|
test_output/test.tsv,sha256=6DGzarXMkUP03Z58vZimc-gu1K2k84zxZLWWF2HROCg,277
|
55
55
|
test_output/test_batch_output.tsv,sha256=6DGzarXMkUP03Z58vZimc-gu1K2k84zxZLWWF2HROCg,277
|
56
56
|
test_output/Ecoli/KMA_cases_parser.tsv,sha256=Wf3JkSppRN5AK2zRJmFQlwVfCMyJfgyyBpTjb1sK6Uw,586
|
57
|
-
ssi_analysis_result_parsers-0.0.
|
58
|
-
ssi_analysis_result_parsers-0.0.
|
59
|
-
ssi_analysis_result_parsers-0.0.
|
60
|
-
ssi_analysis_result_parsers-0.0.
|
61
|
-
ssi_analysis_result_parsers-0.0.
|
57
|
+
ssi_analysis_result_parsers-0.0.17.dist-info/METADATA,sha256=NQ3QR_55gMH8kUTr1NjeF5y9sRdTUQJKQ7BD6mpgHss,2766
|
58
|
+
ssi_analysis_result_parsers-0.0.17.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
59
|
+
ssi_analysis_result_parsers-0.0.17.dist-info/entry_points.txt,sha256=D-ZVsNLN5L6Hew4E1gyNc3sFsiBdswPPQsUpH3NAHnU,1109
|
60
|
+
ssi_analysis_result_parsers-0.0.17.dist-info/top_level.txt,sha256=kVBbBavSQeQsoZCMoiur-3tQ_UT5CeO0L3PwjSdM2yQ,96
|
61
|
+
ssi_analysis_result_parsers-0.0.17.dist-info/RECORD,,
|
{ssi_analysis_result_parsers-0.0.15.dist-info → ssi_analysis_result_parsers-0.0.17.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|