msIO 1.0.3__tar.gz → 1.0.4__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.
Files changed (83) hide show
  1. {msio-1.0.3 → msio-1.0.4}/PKG-INFO +2 -2
  2. {msio-1.0.3 → msio-1.0.4}/README.md +1 -1
  3. {msio-1.0.3 → msio-1.0.4}/msIO/_version.py +1 -1
  4. {msio-1.0.3 → msio-1.0.4}/msIO/environmental/sample.py +5 -0
  5. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/db.py +5 -2
  6. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/util_library.py +0 -1
  7. {msio-1.0.3 → msio-1.0.4}/msIO.egg-info/PKG-INFO +2 -2
  8. {msio-1.0.3 → msio-1.0.4}/LICENSE +0 -0
  9. {msio-1.0.3 → msio-1.0.4}/msIO/__init__.py +0 -0
  10. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/__init__.py +0 -0
  11. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/_many_to_many.py +0 -0
  12. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/_many_to_many_bidirectional.py +0 -0
  13. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/_many_to_one.py +0 -0
  14. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/_many_to_one_bidirectional.py +0 -0
  15. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/_one_to_many.py +0 -0
  16. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/_one_to_many_bidirectional.py +0 -0
  17. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/_one_to_one.py +0 -0
  18. {msio-1.0.3 → msio-1.0.4}/msIO/_templates/relationship_patterns.py +0 -0
  19. {msio-1.0.3 → msio-1.0.4}/msIO/annotations/__init__.py +0 -0
  20. {msio-1.0.3 → msio-1.0.4}/msIO/annotations/main.py +0 -0
  21. {msio-1.0.3 → msio-1.0.4}/msIO/core.py +0 -0
  22. {msio-1.0.3 → msio-1.0.4}/msIO/environmental/__init__.py +0 -0
  23. {msio-1.0.3 → msio-1.0.4}/msIO/environmental/location.py +0 -0
  24. {msio-1.0.3 → msio-1.0.4}/msIO/export_manager/__init__.py +0 -0
  25. {msio-1.0.3 → msio-1.0.4}/msIO/export_manager/main.py +0 -0
  26. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/__init__.py +0 -0
  27. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/_read_mzio_graphml_as_xml.py +0 -0
  28. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/base.py +0 -0
  29. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/combined.py +0 -0
  30. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/gnps.py +0 -0
  31. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/metaboscape.py +0 -0
  32. {msio-1.0.3 → msio-1.0.4}/msIO/feature_managers/sirius.py +0 -0
  33. {msio-1.0.3 → msio-1.0.4}/msIO/features/__init__.py +0 -0
  34. {msio-1.0.3 → msio-1.0.4}/msIO/features/base.py +0 -0
  35. {msio-1.0.3 → msio-1.0.4}/msIO/features/combined.py +0 -0
  36. {msio-1.0.3 → msio-1.0.4}/msIO/features/gnps.py +0 -0
  37. {msio-1.0.3 → msio-1.0.4}/msIO/features/metaboscape.py +0 -0
  38. {msio-1.0.3 → msio-1.0.4}/msIO/features/mgf.py +0 -0
  39. {msio-1.0.3 → msio-1.0.4}/msIO/features/sirius.py +0 -0
  40. {msio-1.0.3 → msio-1.0.4}/msIO/features/util.py +0 -0
  41. {msio-1.0.3 → msio-1.0.4}/msIO/general.py +0 -0
  42. {msio-1.0.3 → msio-1.0.4}/msIO/gui/__init__.py +0 -0
  43. {msio-1.0.3 → msio-1.0.4}/msIO/gui/_gui_log.py +0 -0
  44. {msio-1.0.3 → msio-1.0.4}/msIO/gui/about +0 -0
  45. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/__init__.py +0 -0
  46. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/annotations.py +0 -0
  47. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/app.py +0 -0
  48. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/common.py +0 -0
  49. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/database_panel.py +0 -0
  50. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/dialogs.py +0 -0
  51. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/export.py +0 -0
  52. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/filter_panel.py +0 -0
  53. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/matching.py +0 -0
  54. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/matching_panel.py +0 -0
  55. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/overview_panel.py +0 -0
  56. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/results_panel.py +0 -0
  57. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/scatter_panel.py +0 -0
  58. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/series.py +0 -0
  59. {msio-1.0.3 → msio-1.0.4}/msIO/gui/annotation/shortcuts.py +0 -0
  60. {msio-1.0.3 → msio-1.0.4}/msIO/gui/csv_to_sqlite_gui.py +0 -0
  61. {msio-1.0.3 → msio-1.0.4}/msIO/gui/feature_overview.py +0 -0
  62. {msio-1.0.3 → msio-1.0.4}/msIO/gui/find_lib_matches.py +0 -0
  63. {msio-1.0.3 → msio-1.0.4}/msIO/gui/library_search_by_name.py +0 -0
  64. {msio-1.0.3 → msio-1.0.4}/msIO/gui/main.py +0 -0
  65. {msio-1.0.3 → msio-1.0.4}/msIO/gui/msp_to_sqlite_gui.py +0 -0
  66. {msio-1.0.3 → msio-1.0.4}/msIO/list_of_ions/__init__.py +0 -0
  67. {msio-1.0.3 → msio-1.0.4}/msIO/list_of_ions/base.py +0 -0
  68. {msio-1.0.3 → msio-1.0.4}/msIO/list_of_ions/read_library.py +0 -0
  69. {msio-1.0.3 → msio-1.0.4}/msIO/list_of_ions/read_mca.py +0 -0
  70. {msio-1.0.3 → msio-1.0.4}/msIO/list_of_ions/read_mgf.py +0 -0
  71. {msio-1.0.3 → msio-1.0.4}/msIO/list_of_ions/read_msp.py +0 -0
  72. {msio-1.0.3 → msio-1.0.4}/msIO/metrics.py +0 -0
  73. {msio-1.0.3 → msio-1.0.4}/msIO/sql/__init__.py +0 -0
  74. {msio-1.0.3 → msio-1.0.4}/msIO/sql/create_library.py +0 -0
  75. {msio-1.0.3 → msio-1.0.4}/msIO/sql/session.py +0 -0
  76. {msio-1.0.3 → msio-1.0.4}/msIO/sql/visualize.py +0 -0
  77. {msio-1.0.3 → msio-1.0.4}/msIO.egg-info/SOURCES.txt +0 -0
  78. {msio-1.0.3 → msio-1.0.4}/msIO.egg-info/dependency_links.txt +0 -0
  79. {msio-1.0.3 → msio-1.0.4}/msIO.egg-info/requires.txt +0 -0
  80. {msio-1.0.3 → msio-1.0.4}/msIO.egg-info/top_level.txt +0 -0
  81. {msio-1.0.3 → msio-1.0.4}/pyproject.toml +0 -0
  82. {msio-1.0.3 → msio-1.0.4}/setup.cfg +0 -0
  83. {msio-1.0.3 → msio-1.0.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: msIO
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Reading and writing functions for different mass spectrometry related file types
5
5
  Home-page: https://github.com/yaza11/msIO
6
6
  Author: Yannick Zander
@@ -51,7 +51,7 @@ msIO reads mass spectrometry data from several tools, combines it into one SQLit
51
51
  Python 3.10 or newer is needed. msIO needs [LipidCalculator](https://github.com/yaza11/LipidCalculator), which is not on PyPI yet and has to be installed first:
52
52
 
53
53
  ```bash
54
- pip install git+https://github.com/yaza11/LipidCalculator.git
54
+ pip install git+https://github.com/yaza11/LipidCalculator.git@v0.3.7
55
55
  pip install msIO
56
56
  ```
57
57
 
@@ -19,7 +19,7 @@ msIO reads mass spectrometry data from several tools, combines it into one SQLit
19
19
  Python 3.10 or newer is needed. msIO needs [LipidCalculator](https://github.com/yaza11/LipidCalculator), which is not on PyPI yet and has to be installed first:
20
20
 
21
21
  ```bash
22
- pip install git+https://github.com/yaza11/LipidCalculator.git
22
+ pip install git+https://github.com/yaza11/LipidCalculator.git@v0.3.7
23
23
  pip install msIO
24
24
  ```
25
25
 
@@ -1,2 +1,2 @@
1
1
  # single place of the version: read by setup.py and shown in the GUI title
2
- __version__ = '1.0.3'
2
+ __version__ = '1.0.4'
@@ -46,3 +46,8 @@ class Sample(SqlBaseClass):
46
46
  cascade="all, delete-orphan",
47
47
  passive_deletes=True)
48
48
 
49
+
50
+ # Sample.location refers to "Location" by name: SQLAlchemy can only resolve it if location.py was imported. Imported
51
+ # here (after Sample, location.py imports Sample) so that using Sample is enough, an unused-looking import elsewhere
52
+ # must not be the only thing keeping the mapper configurable.
53
+ from msIO.environmental.location import Location # noqa: E402,F401
@@ -13,7 +13,6 @@ import logging
13
13
  from LipidCalculator import Adduct, CompoundDict
14
14
  from LipidCalculator.isotopes.isotope_pattern import IsotopePattern
15
15
  from LipidCalculator.rdkit.plotting import mplt_mol
16
- from matchms.similarity import ModifiedCosineGreedy
17
16
  from matplotlib import pyplot as plt
18
17
  from matplotlib.gridspec import GridSpec
19
18
  from rdkit import Chem
@@ -21,7 +20,6 @@ from tqdm import tqdm
21
20
 
22
21
  from msIO import PeakList
23
22
  from msIO.environmental.sample import Sample
24
- from msIO.feature_managers.util_library import peaklist_to_spectrum
25
23
  from msIO.list_of_ions.base import PeakFeature
26
24
  from msIO.metrics import cosine_similarity_sym, cosine_similarity_forward, cosine_similarity_backward
27
25
  from msIO.sql.session import get_sessionmaker
@@ -1021,6 +1019,11 @@ class Library(FeatureManagerDB):
1021
1019
  elif metric == 'cosine_backward':
1022
1020
  metric = cosine_similarity_backward
1023
1021
  elif metric == 'modified_cosine_greedy':
1022
+ # imported here: importing matchms takes ~5 s (it loads all its similarity modules), which would
1023
+ # otherwise delay the start of every GUI
1024
+ from matchms.similarity import ModifiedCosineGreedy
1025
+ from msIO.feature_managers.util_library import peaklist_to_spectrum
1026
+
1024
1027
  # need to convert to matchms SpectrumType, each spectrum only once (a measured spectrum is
1025
1028
  # compared to all its library matches, a library spectrum to all measured features it matches)
1026
1029
  matchms_spectra: dict[int, Any] = {}
@@ -1,6 +1,5 @@
1
1
  import numpy as np
2
2
  from matchms import Spectrum
3
- from matchms.similarity import ModifiedCosineGreedy
4
3
 
5
4
  from msIO import PeakList
6
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: msIO
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Reading and writing functions for different mass spectrometry related file types
5
5
  Home-page: https://github.com/yaza11/msIO
6
6
  Author: Yannick Zander
@@ -51,7 +51,7 @@ msIO reads mass spectrometry data from several tools, combines it into one SQLit
51
51
  Python 3.10 or newer is needed. msIO needs [LipidCalculator](https://github.com/yaza11/LipidCalculator), which is not on PyPI yet and has to be installed first:
52
52
 
53
53
  ```bash
54
- pip install git+https://github.com/yaza11/LipidCalculator.git
54
+ pip install git+https://github.com/yaza11/LipidCalculator.git@v0.3.7
55
55
  pip install msIO
56
56
  ```
57
57
 
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
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