msreport 0.0.25__py3-none-any.whl → 0.0.26__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.
- msreport/__init__.py +1 -1
- msreport/helper/table.py +14 -4
- {msreport-0.0.25.dist-info → msreport-0.0.26.dist-info}/METADATA +1 -1
- {msreport-0.0.25.dist-info → msreport-0.0.26.dist-info}/RECORD +7 -7
- {msreport-0.0.25.dist-info → msreport-0.0.26.dist-info}/WHEEL +0 -0
- {msreport-0.0.25.dist-info → msreport-0.0.26.dist-info}/licenses/LICENSE.txt +0 -0
- {msreport-0.0.25.dist-info → msreport-0.0.26.dist-info}/top_level.txt +0 -0
msreport/__init__.py
CHANGED
msreport/helper/table.py
CHANGED
|
@@ -176,12 +176,22 @@ def find_sample_columns(
|
|
|
176
176
|
columns.
|
|
177
177
|
|
|
178
178
|
Returns:
|
|
179
|
-
A list of
|
|
179
|
+
A list of column names containing the substring and any entry of 'samples'.
|
|
180
|
+
Columns are returned in the order of entries in 'samples'.
|
|
180
181
|
"""
|
|
182
|
+
WHITESPACE_CHARS = " ."
|
|
183
|
+
|
|
181
184
|
matched_columns = []
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
substring_columns = find_columns(table, substring)
|
|
186
|
+
for sample in samples:
|
|
187
|
+
sample_columns = [c for c in substring_columns if sample in c]
|
|
188
|
+
for col in sample_columns:
|
|
189
|
+
column_remainder = (
|
|
190
|
+
col.replace(substring, "").replace(sample, "").strip(WHITESPACE_CHARS)
|
|
191
|
+
)
|
|
192
|
+
if column_remainder == "":
|
|
193
|
+
matched_columns.append(col)
|
|
194
|
+
break
|
|
185
195
|
return matched_columns
|
|
186
196
|
|
|
187
197
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
msreport/__init__.py,sha256=
|
|
1
|
+
msreport/__init__.py,sha256=plg-xX45MtHFaMW2qKkNZMTku2gH1Eu5iY4mmFdYSa8,343
|
|
2
2
|
msreport/analyze.py,sha256=JBLuFLYJjI-8NIIwzq2gEJKJYFmKyuLUwf8NgSzC9_c,25350
|
|
3
3
|
msreport/errors.py,sha256=qJan3lzRX6uwnByg9LfAfGKEKC2tm9SYUBvk3TdH_AM,300
|
|
4
4
|
msreport/export.py,sha256=pyB8D1VjvfJWO6ka6uMnHsbc6SRlmCyhUB2sfBlhYDQ,20095
|
|
@@ -17,14 +17,14 @@ msreport/aggregate/summarize.py,sha256=aI0YP9Kg4ZTVjS6c9gzu3xqvLOTsYJ5ZT3FcUJyg1
|
|
|
17
17
|
msreport/helper/__init__.py,sha256=8B7gdXn5tFeZATBF30TMaWu0ppc7xFa72JLxMYt_qUM,535
|
|
18
18
|
msreport/helper/calc.py,sha256=ReMP1jA7bz-a7J1DdlAVATN9zjSXENqbw652WfjSEkY,4088
|
|
19
19
|
msreport/helper/maxlfq.py,sha256=DE9yX4vjMRSmolffrpC9UkCXmSs-rCN15cnlNzma4zw,14938
|
|
20
|
-
msreport/helper/table.py,sha256=
|
|
20
|
+
msreport/helper/table.py,sha256=N-veDU3vQ2NeOfKcxUop5SfCv2iW038akkSKxU2yjzg,11464
|
|
21
21
|
msreport/helper/temp.py,sha256=jNulgDATf9sKXEFWMXAhjflciOZPAqlxg_7QZS7IkW8,3736
|
|
22
22
|
msreport/rinterface/__init__.py,sha256=Z1I-4buERXTPIZmhdaTKZWfbJv_qVcqnUVqIJZx1Du8,146
|
|
23
23
|
msreport/rinterface/limma.py,sha256=ATtsVyGSnqUGkyodQTgdpIFhEb4dJZ6wvSjrRsCrNRY,5421
|
|
24
24
|
msreport/rinterface/rinstaller.py,sha256=sm6CJD0-XSxdDpUnL9EAI_CAIgo1NucYxPI9gL93zqw,1377
|
|
25
25
|
msreport/rinterface/rscripts/limma.R,sha256=gr_yjMm_YoG45irDhWOo6gkRQSTwj_7uU_p3NBRHPm8,4331
|
|
26
|
-
msreport-0.0.
|
|
27
|
-
msreport-0.0.
|
|
28
|
-
msreport-0.0.
|
|
29
|
-
msreport-0.0.
|
|
30
|
-
msreport-0.0.
|
|
26
|
+
msreport-0.0.26.dist-info/licenses/LICENSE.txt,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
|
|
27
|
+
msreport-0.0.26.dist-info/METADATA,sha256=0OpBlUdIaAqhdzEK9Mkq12rVJpeJHuYflFI4griTxqE,5339
|
|
28
|
+
msreport-0.0.26.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
|
29
|
+
msreport-0.0.26.dist-info/top_level.txt,sha256=Drl8mCckJHFIw-Ovh5AnyjKnqvLJltDOBUr1JAcHAlI,9
|
|
30
|
+
msreport-0.0.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|