masster 0.4.14__py3-none-any.whl → 0.4.17__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/__init__.py +2 -0
- masster/_version.py +1 -1
- masster/study/__init__.py +1 -0
- masster/study/defaults/find_consensus_def.py +1 -1
- masster/study/defaults/merge_def.py +129 -22
- masster/study/h5.py +65 -106
- masster/study/id.py +1 -1
- masster/study/load.py +11 -6
- masster/study/merge.py +2145 -0
- masster/study/plot.py +15 -1
- masster/study/processing.py +0 -902
- masster/study/save.py +1 -1
- masster/study/study.py +28 -31
- masster/wizard/README.md +373 -0
- masster/wizard/__init__.py +11 -0
- masster/wizard/example.py +223 -0
- masster/wizard/test_structure.py +49 -0
- masster/wizard/test_wizard.py +285 -0
- masster/wizard/wizard.py +1175 -0
- masster/wizard.py +1175 -0
- {masster-0.4.14.dist-info → masster-0.4.17.dist-info}/METADATA +3 -2
- {masster-0.4.14.dist-info → masster-0.4.17.dist-info}/RECORD +25 -17
- {masster-0.4.14.dist-info → masster-0.4.17.dist-info}/WHEEL +0 -0
- {masster-0.4.14.dist-info → masster-0.4.17.dist-info}/entry_points.txt +0 -0
- {masster-0.4.14.dist-info → masster-0.4.17.dist-info}/licenses/LICENSE +0 -0
masster/study/plot.py
CHANGED
|
@@ -310,8 +310,22 @@ def plot_alignment(
|
|
|
310
310
|
max_inty = sample_data.select(pl.col("inty").max()).item() or 1
|
|
311
311
|
|
|
312
312
|
# Get sample information
|
|
313
|
-
sample_name = str(sample)
|
|
314
313
|
sample_uid = sample if sample_col == "sample_uid" else sample_data.select(pl.col("sample_uid")).item() if "sample_uid" in sample_data.columns else sample
|
|
314
|
+
|
|
315
|
+
# Try to get actual sample name from samples_df if available
|
|
316
|
+
sample_name = str(sample) # fallback
|
|
317
|
+
if hasattr(self, "samples_df") and self.samples_df is not None and sample_uid is not None:
|
|
318
|
+
try:
|
|
319
|
+
sample_name_result = (
|
|
320
|
+
self.samples_df.filter(pl.col("sample_uid") == sample_uid)
|
|
321
|
+
.select("sample_name")
|
|
322
|
+
.to_series()
|
|
323
|
+
)
|
|
324
|
+
if len(sample_name_result) > 0 and sample_name_result[0] is not None:
|
|
325
|
+
sample_name = str(sample_name_result[0])
|
|
326
|
+
except Exception:
|
|
327
|
+
# Keep the fallback value
|
|
328
|
+
pass
|
|
315
329
|
|
|
316
330
|
# Select columns to process
|
|
317
331
|
cols_to_select = ["rt", "mz", "inty"]
|