masster 0.3.17__py3-none-any.whl → 0.3.19__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/sample/h5.py +1 -1
- masster/sample/helpers.py +3 -7
- masster/sample/load.py +2 -2
- masster/sample/plot.py +2 -1
- masster/study/export.py +27 -10
- masster/study/h5.py +58 -40
- masster/study/helpers.py +275 -225
- masster/study/helpers_optimized.py +5 -5
- masster/study/load.py +148 -121
- masster/study/plot.py +306 -106
- masster/study/processing.py +9 -5
- masster/study/study.py +2 -6
- {masster-0.3.17.dist-info → masster-0.3.19.dist-info}/METADATA +1 -1
- {masster-0.3.17.dist-info → masster-0.3.19.dist-info}/RECORD +18 -18
- {masster-0.3.17.dist-info → masster-0.3.19.dist-info}/WHEEL +0 -0
- {masster-0.3.17.dist-info → masster-0.3.19.dist-info}/entry_points.txt +0 -0
- {masster-0.3.17.dist-info → masster-0.3.19.dist-info}/licenses/LICENSE +0 -0
|
@@ -195,7 +195,7 @@ def features_select_optimized(
|
|
|
195
195
|
if isinstance(chrom_coherence, tuple) and len(chrom_coherence) == 2:
|
|
196
196
|
min_coherence, max_coherence = chrom_coherence
|
|
197
197
|
filter_conditions.append(
|
|
198
|
-
(pl.col("chrom_coherence") >= min_coherence) & (pl.col("chrom_coherence") <= max_coherence)
|
|
198
|
+
(pl.col("chrom_coherence") >= min_coherence) & (pl.col("chrom_coherence") <= max_coherence),
|
|
199
199
|
)
|
|
200
200
|
else:
|
|
201
201
|
filter_conditions.append(pl.col("chrom_coherence") >= chrom_coherence)
|
|
@@ -208,7 +208,7 @@ def features_select_optimized(
|
|
|
208
208
|
if isinstance(chrom_prominence, tuple) and len(chrom_prominence) == 2:
|
|
209
209
|
min_prominence, max_prominence = chrom_prominence
|
|
210
210
|
filter_conditions.append(
|
|
211
|
-
(pl.col("chrom_prominence") >= min_prominence) & (pl.col("chrom_prominence") <= max_prominence)
|
|
211
|
+
(pl.col("chrom_prominence") >= min_prominence) & (pl.col("chrom_prominence") <= max_prominence),
|
|
212
212
|
)
|
|
213
213
|
else:
|
|
214
214
|
filter_conditions.append(pl.col("chrom_prominence") >= chrom_prominence)
|
|
@@ -222,7 +222,7 @@ def features_select_optimized(
|
|
|
222
222
|
min_prominence_scaled, max_prominence_scaled = chrom_prominence_scaled
|
|
223
223
|
filter_conditions.append(
|
|
224
224
|
(pl.col("chrom_prominence_scaled") >= min_prominence_scaled)
|
|
225
|
-
& (pl.col("chrom_prominence_scaled") <= max_prominence_scaled)
|
|
225
|
+
& (pl.col("chrom_prominence_scaled") <= max_prominence_scaled),
|
|
226
226
|
)
|
|
227
227
|
else:
|
|
228
228
|
filter_conditions.append(pl.col("chrom_prominence_scaled") >= chrom_prominence_scaled)
|
|
@@ -236,7 +236,7 @@ def features_select_optimized(
|
|
|
236
236
|
min_height_scaled, max_height_scaled = chrom_height_scaled
|
|
237
237
|
filter_conditions.append(
|
|
238
238
|
(pl.col("chrom_height_scaled") >= min_height_scaled)
|
|
239
|
-
& (pl.col("chrom_height_scaled") <= max_height_scaled)
|
|
239
|
+
& (pl.col("chrom_height_scaled") <= max_height_scaled),
|
|
240
240
|
)
|
|
241
241
|
else:
|
|
242
242
|
filter_conditions.append(pl.col("chrom_height_scaled") >= chrom_height_scaled)
|
|
@@ -333,7 +333,7 @@ def features_select_benchmarked(
|
|
|
333
333
|
# Log performance comparison
|
|
334
334
|
speedup = original_time / optimized_time if optimized_time > 0 else float("inf")
|
|
335
335
|
self.logger.info(
|
|
336
|
-
f"Performance comparison - Original: {original_time:.4f}s, Optimized: {optimized_time:.4f}s, Speedup: {speedup:.2f}x"
|
|
336
|
+
f"Performance comparison - Original: {original_time:.4f}s, Optimized: {optimized_time:.4f}s, Speedup: {speedup:.2f}x",
|
|
337
337
|
)
|
|
338
338
|
|
|
339
339
|
return result_optimized
|