pycompound 0.1.9__py3-none-any.whl → 0.1.10__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.
- pycompound/plot_spectra.py +6 -6
- pycompound/spec_lib_matching.py +2 -2
- {pycompound-0.1.9.dist-info → pycompound-0.1.10.dist-info}/METADATA +1 -1
- {pycompound-0.1.9.dist-info → pycompound-0.1.10.dist-info}/RECORD +7 -7
- {pycompound-0.1.9.dist-info → pycompound-0.1.10.dist-info}/WHEEL +0 -0
- {pycompound-0.1.9.dist-info → pycompound-0.1.10.dist-info}/licenses/LICENSE +0 -0
- {pycompound-0.1.9.dist-info → pycompound-0.1.10.dist-info}/top_level.txt +0 -0
pycompound/plot_spectra.py
CHANGED
|
@@ -14,7 +14,7 @@ def generate_plots_on_HRMS_data(query_data=None, reference_data=None, spectrum_I
|
|
|
14
14
|
else:
|
|
15
15
|
extension = query_data.rsplit('.',1)
|
|
16
16
|
extension = extension[(len(extension)-1)]
|
|
17
|
-
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF':
|
|
17
|
+
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF' or extension == 'msp' or extension == 'MSP' or extension == 'json' or extension == 'JSON':
|
|
18
18
|
output_path_tmp = query_data[:-3] + 'txt'
|
|
19
19
|
build_library_from_raw_data(input_path=query_data, output_path=output_path_tmp, is_reference=True)
|
|
20
20
|
df_query = pd.read_csv(output_path_tmp, sep='\t')
|
|
@@ -29,7 +29,7 @@ def generate_plots_on_HRMS_data(query_data=None, reference_data=None, spectrum_I
|
|
|
29
29
|
else:
|
|
30
30
|
extension = reference_data.rsplit('.',1)
|
|
31
31
|
extension = extension[(len(extension)-1)]
|
|
32
|
-
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF':
|
|
32
|
+
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF' or extension == 'msp' or extension == 'MSP' or extension == 'json' or extension == 'JSON':
|
|
33
33
|
output_path_tmp = reference_data[:-3] + 'txt'
|
|
34
34
|
build_library_from_raw_data(input_path=reference_data, output_path=output_path_tmp, is_reference=True)
|
|
35
35
|
df_reference = pd.read_csv(output_path_tmp, sep='\t')
|
|
@@ -298,7 +298,7 @@ def generate_plots_on_NRMS_data(query_data=None, reference_data=None, spectrum_I
|
|
|
298
298
|
else:
|
|
299
299
|
extension = query_data.rsplit('.',1)
|
|
300
300
|
extension = extension[(len(extension)-1)]
|
|
301
|
-
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF':
|
|
301
|
+
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF' or extension == 'msp' or extension == 'MSP' or extension == 'json' or extension == 'JSON':
|
|
302
302
|
output_path_tmp = query_data[:-3] + 'txt'
|
|
303
303
|
build_library_from_raw_data(input_path=query_data, output_path=output_path_tmp, is_reference=False)
|
|
304
304
|
df_query = pd.read_csv(output_path_tmp, sep='\t')
|
|
@@ -312,7 +312,7 @@ def generate_plots_on_NRMS_data(query_data=None, reference_data=None, spectrum_I
|
|
|
312
312
|
else:
|
|
313
313
|
extension = reference_data.rsplit('.',1)
|
|
314
314
|
extension = extension[(len(extension)-1)]
|
|
315
|
-
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF':
|
|
315
|
+
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF' or extension == 'msp' or extension == 'MSP' or extension == 'json' or extension == 'JSON':
|
|
316
316
|
output_path_tmp = reference_data[:-3] + 'txt'
|
|
317
317
|
build_library_from_raw_data(input_path=reference_data, output_path=output_path_tmp, is_reference=True)
|
|
318
318
|
df_reference = pd.read_csv(output_path_tmp, sep='\t')
|
|
@@ -395,8 +395,8 @@ def generate_plots_on_NRMS_data(query_data=None, reference_data=None, spectrum_I
|
|
|
395
395
|
print(f'Warning: plots will be saved to the PDF ./spectrum1_{spectrum_ID1}_spectrum2_{spectrum_ID2}_plot.pdf in the current working directory.')
|
|
396
396
|
output_path = f'{Path.cwd()}/spectrum1_{spectrum_ID1}_spectrum2_{spectrum_ID2}.pdf'
|
|
397
397
|
|
|
398
|
-
min_mz = np.min([np.min(df_query['mz_ratio'].tolist()), np.min(df_reference['mz_ratio'].tolist())])
|
|
399
|
-
max_mz = np.max([np.max(df_query['mz_ratio'].tolist()), np.max(df_reference['mz_ratio'].tolist())])
|
|
398
|
+
min_mz = int(np.min([np.min(df_query['mz_ratio'].tolist()), np.min(df_reference['mz_ratio'].tolist())]))
|
|
399
|
+
max_mz = int(np.max([np.max(df_query['mz_ratio'].tolist()), np.max(df_reference['mz_ratio'].tolist())]))
|
|
400
400
|
mzs = np.linspace(min_mz,max_mz,(max_mz-min_mz+1))
|
|
401
401
|
|
|
402
402
|
unique_query_ids = df_query['id'].unique().tolist()
|
pycompound/spec_lib_matching.py
CHANGED
|
@@ -65,7 +65,7 @@ def tune_params_DE(query_data=None, reference_data=None, chromatography_platform
|
|
|
65
65
|
extension = extension[(len(extension)-1)]
|
|
66
66
|
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF' or extension == 'msp' or extension == 'MSP' or extension == 'json' or extension == 'JSON':
|
|
67
67
|
output_path_tmp = query_data[:-3] + 'txt'
|
|
68
|
-
build_library_from_raw_data(input_path=query_data, output_path=output_path_tmp, is_reference=
|
|
68
|
+
build_library_from_raw_data(input_path=query_data, output_path=output_path_tmp, is_reference=True)
|
|
69
69
|
df_query = pd.read_csv(output_path_tmp, sep='\t')
|
|
70
70
|
if extension == 'txt' or extension == 'TXT':
|
|
71
71
|
df_query = pd.read_csv(query_data, sep='\t')
|
|
@@ -805,7 +805,7 @@ def run_spec_lib_matching_on_NRMS_data(query_data=None, reference_data=None, lik
|
|
|
805
805
|
else:
|
|
806
806
|
extension = query_data.rsplit('.',1)
|
|
807
807
|
extension = extension[(len(extension)-1)]
|
|
808
|
-
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF':
|
|
808
|
+
if extension == 'mgf' or extension == 'MGF' or extension == 'mzML' or extension == 'mzml' or extension == 'MZML' or extension == 'cdf' or extension == 'CDF' or extension == 'msp' or extension == 'MSP' or extension == 'json' or extension == 'JSON':
|
|
809
809
|
output_path_tmp = query_data[:-3] + 'txt'
|
|
810
810
|
build_library_from_raw_data(input_path=query_data, output_path=output_path_tmp, is_reference=False)
|
|
811
811
|
df_query = pd.read_csv(output_path_tmp, sep='\t')
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
pycompound/build_library.py,sha256=4S8hT8FSrS_13daCdsva5UCEU-1qy9pD7kaaG-vaxvE,6815
|
|
2
|
-
pycompound/plot_spectra.py,sha256=
|
|
2
|
+
pycompound/plot_spectra.py,sha256=XW_UHgmPCdjsTD5oiNrszuW5GHyfBslcpXM9_bYg66I,32521
|
|
3
3
|
pycompound/plot_spectra_CLI.py,sha256=ObaLad5Z5DmfQB-j0HSCg1mLORbYj2BM3hb5Yd0ZdDI,8395
|
|
4
4
|
pycompound/processing.py,sha256=NsLI994MRlDq7M13LE-1RkfAfgVjHLrLLPbu2SvArKg,10684
|
|
5
5
|
pycompound/similarity_measures.py,sha256=NbeVIy9DE_KWlDMXXylekjKuYVrtzbeEXbTutKFxmfU,10460
|
|
6
|
-
pycompound/spec_lib_matching.py,sha256=
|
|
6
|
+
pycompound/spec_lib_matching.py,sha256=y-4sWt7fphzFKXeURWgosLj8cNIBrcfUOaiCToELvgQ,54646
|
|
7
7
|
pycompound/spec_lib_matching_CLI.py,sha256=L1D1j3MDdIe7th5n47z4uyvR5tL_8lN_22kbc-J7CF8,12053
|
|
8
8
|
pycompound/tuning_CLI_DE.py,sha256=VRxoPLvuvE1gTRMC_lrOOK8TjINinMV_f4q69uDK2oE,9916
|
|
9
9
|
pycompound/tuning_CLI_grid.py,sha256=lavROwKfJSi7xLaUX0zEaphlq7sJ-1FVY3hY3tWwoV4,9735
|
|
10
|
-
pycompound-0.1.
|
|
11
|
-
pycompound-0.1.
|
|
12
|
-
pycompound-0.1.
|
|
13
|
-
pycompound-0.1.
|
|
14
|
-
pycompound-0.1.
|
|
10
|
+
pycompound-0.1.10.dist-info/licenses/LICENSE,sha256=fPFFlkSGg60VQWyWqTSv8yoJnpLzppzdihVWY5NKom8,1064
|
|
11
|
+
pycompound-0.1.10.dist-info/METADATA,sha256=v1A52MHLSpf1Ty2sMxx-FwdPY7pFIxFvYFWNb86Od4s,1747
|
|
12
|
+
pycompound-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
pycompound-0.1.10.dist-info/top_level.txt,sha256=x7XjCCdlf335pIEf2TkiFHDrpbSaogk0zg1gPzKe-ic,11
|
|
14
|
+
pycompound-0.1.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|