fastmixture2 2.0.6__tar.gz → 2.0.7__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 (67) hide show
  1. {fastmixture2-2.0.6/fastmixture2.egg-info → fastmixture2-2.0.7}/PKG-INFO +4 -3
  2. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/README.md +3 -2
  3. fastmixture2-2.0.7/fastmixture2/__init__.py +1 -0
  4. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/functions.py +1 -1
  5. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/gpu.py +264 -73
  6. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/kernels.py +15 -13
  7. fastmixture2-2.0.7/fastmixture2/plink.py +142 -0
  8. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/shared.pyx +108 -22
  9. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/svd.pyx +30 -7
  10. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/utils.py +23 -21
  11. {fastmixture2-2.0.6 → fastmixture2-2.0.7/fastmixture2.egg-info}/PKG-INFO +4 -3
  12. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/check_portable.py +4 -0
  13. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_cpu_scaling.py +4 -4
  14. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_cpu_subset.py +62 -4
  15. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_genotypes.py +28 -1
  16. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_called.py +19 -5
  17. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_gl_precision.py +17 -10
  18. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_modes.py +11 -2
  19. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_streamed.py +222 -0
  20. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_subset.py +85 -2
  21. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_svd_cache.py +4 -8
  22. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_initialization.py +2 -2
  23. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_likelihoods.py +20 -0
  24. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_numerical_equivalence.py +3 -5
  25. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_plink_files.py +56 -71
  26. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_subset_modes.py +49 -1
  27. fastmixture2-2.0.6/fastmixture2/__init__.py +0 -1
  28. fastmixture2-2.0.6/fastmixture2/plink.py +0 -148
  29. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/LICENSE +0 -0
  30. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/MANIFEST.in +0 -0
  31. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/defaults.py +0 -0
  32. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/em.pyx +0 -0
  33. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/fastmixture2.py +0 -0
  34. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/main.py +0 -0
  35. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/packed.pxd +0 -0
  36. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/sqp.pyx +0 -0
  37. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2/threads.pxd +0 -0
  38. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2.egg-info/SOURCES.txt +0 -0
  39. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2.egg-info/dependency_links.txt +0 -0
  40. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2.egg-info/entry_points.txt +0 -0
  41. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2.egg-info/requires.txt +0 -0
  42. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/fastmixture2.egg-info/top_level.txt +0 -0
  43. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/pyproject.toml +0 -0
  44. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/setup.cfg +0 -0
  45. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/setup.py +0 -0
  46. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/helpers.py +0 -0
  47. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/run_tests.py +0 -0
  48. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_adversarial_io.py +0 -0
  49. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_bootstrap.py +0 -0
  50. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_cli.py +0 -0
  51. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_convergence.py +0 -0
  52. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_cross_validation.py +0 -0
  53. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_distribution.py +0 -0
  54. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_frequency_cache.py +0 -0
  55. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_em.py +0 -0
  56. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_large.py +0 -0
  57. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_precision.py +0 -0
  58. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_safety.py +0 -0
  59. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_stat_reuse.py +0 -0
  60. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_gpu_supervision.py +0 -0
  61. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_optimizers.py +0 -0
  62. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_q_constraints.py +0 -0
  63. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_restarts.py +0 -0
  64. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_sqp_scoring.py +0 -0
  65. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_sqp_solver.py +0 -0
  66. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/test_threads.py +0 -0
  67. {fastmixture2-2.0.6 → fastmixture2-2.0.7}/tests/validate_distribution.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastmixture2
3
- Version: 2.0.6
3
+ Version: 2.0.7
4
4
  Summary: Biobank-scale ancestry estimation in unrelated individuals
5
5
  Author-email: "J. Meisner" <meisnerucph@gmail.com>, "L. Thunegard" <lisathunegard@icloud.com>
6
6
  License-Expression: GPL-3.0-only
@@ -158,8 +158,9 @@ rescue and float64 likelihood checks. CPU fitting uses float64. CUDA uses
158
158
  mixed precision followed by float64 refinement.
159
159
 
160
160
  Processing uses bounded tiles. Total memory still grows with panel size and K.
161
- Temporary files use `TMPDIR`. For large panels, point it to disk-backed scratch
162
- with sufficient space.
161
+ Initialization subsets use memory-mapped temporary files when needed. Temporary
162
+ files use `TMPDIR`. For large panels, point it to disk-backed scratch with
163
+ sufficient space.
163
164
 
164
165
  The defaults are `--threads 1`, `--seed 42`, `--iter 1000` and `--tole 1e-10`.
165
166
  `--threads` also controls CPU work during GPU fits.
@@ -127,8 +127,9 @@ rescue and float64 likelihood checks. CPU fitting uses float64. CUDA uses
127
127
  mixed precision followed by float64 refinement.
128
128
 
129
129
  Processing uses bounded tiles. Total memory still grows with panel size and K.
130
- Temporary files use `TMPDIR`. For large panels, point it to disk-backed scratch
131
- with sufficient space.
130
+ Initialization subsets use memory-mapped temporary files when needed. Temporary
131
+ files use `TMPDIR`. For large panels, point it to disk-backed scratch with
132
+ sufficient space.
132
133
 
133
134
  The defaults are `--threads 1`, `--seed 42`, `--iter 1000` and `--tole 1e-10`.
134
135
  `--threads` also controls CPU work during GPU fits.
@@ -0,0 +1 @@
1
+ __version__ = "2.0.7"
@@ -524,7 +524,7 @@ def sqpMap(G, P, Q, P_out, Q_out, S, y=None, markers=None, weights=None, score=F
524
524
  and (
525
525
  not g.flags.writeable
526
526
  if rows is None
527
- else all(not x.flags.writeable for x in G["data"].parts)
527
+ else all(not x.flags.writeable for x in G["data"]["parts"])
528
528
  )
529
529
  )
530
530
  if hint: