masster 0.6.3__py3-none-any.whl → 0.6.4__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.
Potentially problematic release.
This version of masster might be problematic. Click here for more details.
- masster/_version.py +1 -1
- masster/wizard/wizard.py +13 -8
- {masster-0.6.3.dist-info → masster-0.6.4.dist-info}/METADATA +1 -1
- {masster-0.6.3.dist-info → masster-0.6.4.dist-info}/RECORD +7 -7
- {masster-0.6.3.dist-info → masster-0.6.4.dist-info}/WHEEL +0 -0
- {masster-0.6.3.dist-info → masster-0.6.4.dist-info}/entry_points.txt +0 -0
- {masster-0.6.3.dist-info → masster-0.6.4.dist-info}/licenses/LICENSE +0 -0
masster/_version.py
CHANGED
masster/wizard/wizard.py
CHANGED
|
@@ -47,11 +47,7 @@ from dataclasses import dataclass, field
|
|
|
47
47
|
import concurrent.futures
|
|
48
48
|
from datetime import datetime
|
|
49
49
|
|
|
50
|
-
# Import masster modules - use delayed import to avoid circular dependencies
|
|
51
|
-
from masster.logger import MassterLogger
|
|
52
50
|
from masster.study.defaults.study_def import study_defaults
|
|
53
|
-
from masster.study.defaults.align_def import align_defaults
|
|
54
|
-
from masster.study.defaults.merge_def import merge_defaults
|
|
55
51
|
from masster._version import __version__ as version
|
|
56
52
|
|
|
57
53
|
|
|
@@ -466,6 +462,12 @@ class Wizard:
|
|
|
466
462
|
def _generate_workflow_script_content(self, source_info: Dict[str, Any]) -> str:
|
|
467
463
|
"""Generate the content for 1_masster_workflow.py script."""
|
|
468
464
|
|
|
465
|
+
# Get default adducts for both polarities from study_defaults
|
|
466
|
+
pos_defaults = study_defaults(polarity="positive")
|
|
467
|
+
neg_defaults = study_defaults(polarity="negative")
|
|
468
|
+
adducts_pos = pos_defaults.adducts
|
|
469
|
+
adducts_neg = neg_defaults.adducts
|
|
470
|
+
|
|
469
471
|
# Logic
|
|
470
472
|
noise = self.params.noise
|
|
471
473
|
if noise is None:
|
|
@@ -499,7 +501,7 @@ class Wizard:
|
|
|
499
501
|
"from pathlib import Path",
|
|
500
502
|
"",
|
|
501
503
|
"# Import masster modules",
|
|
502
|
-
"from masster
|
|
504
|
+
"from masster import Study",
|
|
503
505
|
"from masster import __version__",
|
|
504
506
|
"",
|
|
505
507
|
"# Test mode configuration",
|
|
@@ -524,7 +526,8 @@ class Wizard:
|
|
|
524
526
|
f' "skip_patterns": {self.params.skip_patterns!r}, # Filename patterns to skip',
|
|
525
527
|
"",
|
|
526
528
|
" # === Processing Parameters ===",
|
|
527
|
-
f' "
|
|
529
|
+
f' "adducts_pos": {adducts_pos!r}, # Adduct specifications for positive polarity',
|
|
530
|
+
f' "adducts_neg": {adducts_neg!r}, # Adduct specifications for negative polarity',
|
|
528
531
|
f' "noise": {noise}, # Noise threshold for feature detection',
|
|
529
532
|
f' "chrom_fwhm": {chrom_fwhm}, # Chromatographic peak full width at half maximum (seconds)',
|
|
530
533
|
f' "chrom_peak_snr": {self.params.chrom_peak_snr}, # Minimum signal-to-noise ratio for chromatographic peaks',
|
|
@@ -567,7 +570,7 @@ class Wizard:
|
|
|
567
570
|
"def process_single_file(args):",
|
|
568
571
|
' """Process a single raw file to sample5 format - module level for multiprocessing."""',
|
|
569
572
|
" raw_file, output_folder = args",
|
|
570
|
-
" from masster
|
|
573
|
+
" from masster import Sample",
|
|
571
574
|
" ",
|
|
572
575
|
" try:",
|
|
573
576
|
" # Create sample5 filename",
|
|
@@ -676,7 +679,9 @@ class Wizard:
|
|
|
676
679
|
" ",
|
|
677
680
|
" # Step 3: Create and configure study",
|
|
678
681
|
' print("\\nStep 3/7: Initializing study...")',
|
|
679
|
-
"
|
|
682
|
+
" # Select adducts based on polarity",
|
|
683
|
+
" adducts = PARAMS['adducts_pos'] if PARAMS['polarity'] in ['positive', 'pos', '+'] else PARAMS['adducts_neg']",
|
|
684
|
+
" study = Study(folder=PARAMS['folder'], polarity=PARAMS['polarity'], adducts=adducts)",
|
|
680
685
|
" ",
|
|
681
686
|
" # Step 4: Add sample5 files to study",
|
|
682
687
|
' print("\\nStep 4/7: Adding samples to study...")',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
masster/__init__.py,sha256=B7zftzdElF2Wb5B7KvkD6TONnMIY-Jxeen3s49dgmzs,1029
|
|
2
|
-
masster/_version.py,sha256=
|
|
2
|
+
masster/_version.py,sha256=fri37SFotav6MlUP5Xnl47Jc0GzPXzNXzlcUizkDbAo,256
|
|
3
3
|
masster/chromatogram.py,sha256=iYpdv8C17zVnlWvOFgAn9ns2uFGiF-GgoYf5QVVAbHs,19319
|
|
4
4
|
masster/logger.py,sha256=MbQ3uLI3N0G3tnvtGIJZN_HEwjKRfIhBVZmIzUev7oc,18827
|
|
5
5
|
masster/spectrum.py,sha256=LlmxrI5MFS3aPrGSdqUSKVY0rJnKeBh3Frdh6a4dPvA,49722
|
|
@@ -61,9 +61,9 @@ masster/study/defaults/integrate_def.py,sha256=Vf4SAzdBfnsSZ3IRaF0qZvWu3gMDPHdgP
|
|
|
61
61
|
masster/study/defaults/merge_def.py,sha256=99TJtIk7mSoq8NMJMJ4b-cy7gUUixQN69krxttBnkfA,12899
|
|
62
62
|
masster/study/defaults/study_def.py,sha256=kSvhiqpFp8b84vUsE8608LQsSXwz9lAPcU2BqK0T8z0,16095
|
|
63
63
|
masster/wizard/__init__.py,sha256=L9G_datyGSFJjrBVklEVpZVLGXzUhDiWobtiygBH8vQ,669
|
|
64
|
-
masster/wizard/wizard.py,sha256=
|
|
65
|
-
masster-0.6.
|
|
66
|
-
masster-0.6.
|
|
67
|
-
masster-0.6.
|
|
68
|
-
masster-0.6.
|
|
69
|
-
masster-0.6.
|
|
64
|
+
masster/wizard/wizard.py,sha256=OO_tQC9yDXlCYwzrriakoka73E2XtudroruiU39bMWM,66895
|
|
65
|
+
masster-0.6.4.dist-info/METADATA,sha256=9wZmkmfO-5-CvwYPTOlBdNz4IldHvJ23Vbtemx78sBk,50818
|
|
66
|
+
masster-0.6.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
67
|
+
masster-0.6.4.dist-info/entry_points.txt,sha256=ZHguQ_vPmdbpqq2uGtmEOLJfgP-DQ1T0c07Lxh30wc8,58
|
|
68
|
+
masster-0.6.4.dist-info/licenses/LICENSE,sha256=bx5iLIKjgAdYQ7sISn7DsfHRKkoCUm1154sJJKhgqnU,35184
|
|
69
|
+
masster-0.6.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|