IsoCor 2.2.2__tar.gz → 2.2.3__tar.gz
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.
- {IsoCor-2.2.2 → isocor-2.2.3}/IsoCor.egg-info/PKG-INFO +5 -3
- {IsoCor-2.2.2 → isocor-2.2.3}/PKG-INFO +5 -3
- {IsoCor-2.2.2 → isocor-2.2.3}/README.md +2 -1
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/__init__.py +1 -1
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/mscorrectors.py +4 -3
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_correction_process_HighRes.py +7 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_correction_process_LowRes.py +6 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/ui/isocorcli.py +5 -5
- {IsoCor-2.2.2 → isocor-2.2.3}/IsoCor.egg-info/SOURCES.txt +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/IsoCor.egg-info/dependency_links.txt +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/IsoCor.egg-info/entry_points.txt +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/IsoCor.egg-info/requires.txt +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/IsoCor.egg-info/top_level.txt +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/LICENSE.md +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/MANIFEST.in +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/__main__.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/base.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/data/Data_example.tsv +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/data/Derivatives.dat +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/data/Isotopes.dat +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/data/Metabolites.dat +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/__init__.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/conftest.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_all_cases.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_correction_matrix_HighRes_resolved.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_correction_matrix_HighRes_unresolved.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_correction_matrix_LowRes.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_factory.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_isotopic_cluster_HighRes.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_isotopic_cluster_LowRes.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_m_min_constant.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/tests/test_m_min_orbitrap.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/ui/__init__.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/ui/isocordb.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/isocor/ui/isocorgui.py +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/pyproject.toml +0 -0
- {IsoCor-2.2.2 → isocor-2.2.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: IsoCor
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: IsoCor: Isotope Correction for mass spectrometry labeling experiments
|
|
5
5
|
Home-page: https://github.com/MetaSys-LISBP/IsoCor/
|
|
6
6
|
Author: Pierre Millard, Baudoin Délépine, Matthieu Guionnet
|
|
@@ -23,13 +23,15 @@ Requires-Dist: scipy>=0.12.1
|
|
|
23
23
|
Provides-Extra: testing
|
|
24
24
|
Requires-Dist: pytest>=7.1.2; extra == "testing"
|
|
25
25
|
Requires-Dist: tox>=3.25.0; extra == "testing"
|
|
26
|
+
Dynamic: license-file
|
|
26
27
|
|
|
27
28
|
# IsoCor - **Iso**tope **Cor**rection for mass spectrometry labeling experiments
|
|
28
29
|
|
|
29
30
|
[](https://badge.fury.io/py/IsoCor)
|
|
30
31
|
[](https://pypi.python.org/pypi/isocor/)
|
|
31
|
-
[](https://travis-ci.com/MetaSys-LISBP/IsoCor)
|
|
32
32
|
[](http://isocor.readthedocs.io/?badge=latest)
|
|
33
|
+
[](http://bioconda.github.io/recipes/isocor/README.html)
|
|
34
|
+
|
|
33
35
|
|
|
34
36
|
[](https://isocor.readthedocs.io/en/latest/)
|
|
35
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: IsoCor
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: IsoCor: Isotope Correction for mass spectrometry labeling experiments
|
|
5
5
|
Home-page: https://github.com/MetaSys-LISBP/IsoCor/
|
|
6
6
|
Author: Pierre Millard, Baudoin Délépine, Matthieu Guionnet
|
|
@@ -23,13 +23,15 @@ Requires-Dist: scipy>=0.12.1
|
|
|
23
23
|
Provides-Extra: testing
|
|
24
24
|
Requires-Dist: pytest>=7.1.2; extra == "testing"
|
|
25
25
|
Requires-Dist: tox>=3.25.0; extra == "testing"
|
|
26
|
+
Dynamic: license-file
|
|
26
27
|
|
|
27
28
|
# IsoCor - **Iso**tope **Cor**rection for mass spectrometry labeling experiments
|
|
28
29
|
|
|
29
30
|
[](https://badge.fury.io/py/IsoCor)
|
|
30
31
|
[](https://pypi.python.org/pypi/isocor/)
|
|
31
|
-
[](https://travis-ci.com/MetaSys-LISBP/IsoCor)
|
|
32
32
|
[](http://isocor.readthedocs.io/?badge=latest)
|
|
33
|
+
[](http://bioconda.github.io/recipes/isocor/README.html)
|
|
34
|
+
|
|
33
35
|
|
|
34
36
|
[](https://isocor.readthedocs.io/en/latest/)
|
|
35
37
|
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/py/IsoCor)
|
|
4
4
|
[](https://pypi.python.org/pypi/isocor/)
|
|
5
|
-
[](https://travis-ci.com/MetaSys-LISBP/IsoCor)
|
|
6
5
|
[](http://isocor.readthedocs.io/?badge=latest)
|
|
6
|
+
[](http://bioconda.github.io/recipes/isocor/README.html)
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
[](https://isocor.readthedocs.io/en/latest/)
|
|
9
10
|
|
|
@@ -5,7 +5,7 @@ for conveniance.
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
# Version number MUST be maintained here (x.y.z format)
|
|
8
|
-
__version__ = '2.2.
|
|
8
|
+
__version__ = '2.2.3'
|
|
9
9
|
|
|
10
10
|
from isocor.mscorrectors import MetaboliteCorrectorFactory
|
|
11
11
|
from isocor.mscorrectors import LowResMetaboliteCorrector, HighResMetaboliteCorrector
|
|
@@ -240,13 +240,13 @@ class LowResMetaboliteCorrector(LabelledChemical, InterfaceMSCorrector):
|
|
|
240
240
|
enrichment = math.fsum(
|
|
241
241
|
p*i for i, p in enumerate(isotopologue_fraction))/self.formula[self._tracer_el]
|
|
242
242
|
else:
|
|
243
|
-
isotopologue_fraction = [np.
|
|
244
|
-
enrichment = np.
|
|
243
|
+
isotopologue_fraction = [np.nan for p in corrected_area]
|
|
244
|
+
enrichment = np.nan
|
|
245
245
|
sum_m = math.fsum(measurement)
|
|
246
246
|
if sum_m != 0:
|
|
247
247
|
residuum = [v/sum_m for v in resi]
|
|
248
248
|
else:
|
|
249
|
-
residuum = [np.
|
|
249
|
+
residuum = [np.nan for v in resi]
|
|
250
250
|
return corrected_area, isotopologue_fraction, residuum, enrichment
|
|
251
251
|
|
|
252
252
|
def get_mass_distribution_vector(self):
|
|
@@ -671,3 +671,4 @@ class HighResMetaboliteCorrector(LowResMetaboliteCorrector):
|
|
|
671
671
|
else:
|
|
672
672
|
correction_matrix = self._correctionmatrix_combination()
|
|
673
673
|
return correction_matrix
|
|
674
|
+
|
|
@@ -14,6 +14,13 @@ import isocor as hrcor
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
@pytest.mark.parametrize("data", [{"formula": "C2H2",
|
|
17
|
+
"resolution_at_400": 1e3,
|
|
18
|
+
"tracer": "13C",
|
|
19
|
+
"v_expected": "[np.nan, np.nan, np.nan]",
|
|
20
|
+
"v_measured": "[0, 0, 0]",
|
|
21
|
+
"correct_NA_tracer": False,
|
|
22
|
+
"tracer_purity": [0.0, 1.0]},
|
|
23
|
+
{"formula": "C2H2",
|
|
17
24
|
"resolution_at_400": 1e3,
|
|
18
25
|
"tracer": "13C",
|
|
19
26
|
"v_expected": "[1., 0., 0.]",
|
|
@@ -13,6 +13,12 @@ import isocor as hrcor
|
|
|
13
13
|
# Tests the entire correction process at low resolution
|
|
14
14
|
# (here pXY represents natural abundance of isotope X of element Y)
|
|
15
15
|
@pytest.mark.parametrize("data", [{"formula": "C2H2",
|
|
16
|
+
"tracer": "13C",
|
|
17
|
+
"v_expected": "[np.nan, np.nan, np.nan]",
|
|
18
|
+
"v_measured": "[0, 0, 0]",
|
|
19
|
+
"correct_NA_tracer": False,
|
|
20
|
+
"tracer_purity": [0.0, 1.0]},
|
|
21
|
+
{"formula": "C2H2",
|
|
16
22
|
"tracer": "13C",
|
|
17
23
|
"v_expected": "[1., 0., 0.]",
|
|
18
24
|
"v_measured": "[p1H * p1H, p1H * p2H * 2, p2H * p2H]",
|
|
@@ -2,6 +2,7 @@ import argparse
|
|
|
2
2
|
import isocor as hr
|
|
3
3
|
import isocor.ui.isocordb
|
|
4
4
|
import pandas as pd
|
|
5
|
+
import numpy as np
|
|
5
6
|
import io
|
|
6
7
|
import logging
|
|
7
8
|
from pathlib import Path
|
|
@@ -148,7 +149,6 @@ def process(args):
|
|
|
148
149
|
dictMetabolites[label] = None
|
|
149
150
|
errors['labels'] = errors['labels'] + [label]
|
|
150
151
|
logger.error("cannot construct {}: {}".format(label, err))
|
|
151
|
-
sys.exit(2)
|
|
152
152
|
|
|
153
153
|
logger.info('------------------------------------------------')
|
|
154
154
|
logger.info('Correcting raw MS data...')
|
|
@@ -170,15 +170,15 @@ def process(args):
|
|
|
170
170
|
logger.info("{} - {}: processed".format(serie[0], label))
|
|
171
171
|
except Exception as err:
|
|
172
172
|
isotopic_inchi = ['']*len(serie[1])
|
|
173
|
-
valuesCorrected = ([
|
|
174
|
-
* len(serie[1]), [
|
|
173
|
+
valuesCorrected = ([np.nan]*len(serie[1]), [np.nan]
|
|
174
|
+
* len(serie[1]), [np.nan]*len(serie[1]), np.nan)
|
|
175
175
|
logger.error("{} - {}: {}".format(serie[0], label, err))
|
|
176
176
|
errors['measurements'] = errors['measurements'] + \
|
|
177
177
|
["{} - {}".format(serie[0], label)]
|
|
178
178
|
else:
|
|
179
179
|
isotopic_inchi = ['']*len(serie[1])
|
|
180
|
-
valuesCorrected = ([
|
|
181
|
-
* len(serie[1]), [
|
|
180
|
+
valuesCorrected = ([np.nan]*len(serie[1]), [np.nan]
|
|
181
|
+
* len(serie[1]), [np.nan]*len(serie[1]), np.nan)
|
|
182
182
|
errors['measurements'] = errors['measurements'] + \
|
|
183
183
|
["{} - {}".format(serie[0], label)]
|
|
184
184
|
logger.error(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|