pg-sui 1.0.2.1__py3-none-any.whl → 1.6.8__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 pg-sui might be problematic. Click here for more details.

Files changed (112) hide show
  1. {pg_sui-1.0.2.1.dist-info → pg_sui-1.6.8.dist-info}/METADATA +51 -70
  2. pg_sui-1.6.8.dist-info/RECORD +78 -0
  3. {pg_sui-1.0.2.1.dist-info → pg_sui-1.6.8.dist-info}/WHEEL +1 -1
  4. pg_sui-1.6.8.dist-info/entry_points.txt +4 -0
  5. pg_sui-1.6.8.dist-info/top_level.txt +1 -0
  6. pgsui/__init__.py +35 -54
  7. pgsui/_version.py +34 -0
  8. pgsui/cli.py +635 -0
  9. pgsui/data_processing/config.py +576 -0
  10. pgsui/data_processing/containers.py +1782 -0
  11. pgsui/data_processing/transformers.py +121 -1103
  12. pgsui/electron/app/__main__.py +5 -0
  13. pgsui/electron/app/icons/icons/1024x1024.png +0 -0
  14. pgsui/electron/app/icons/icons/128x128.png +0 -0
  15. pgsui/electron/app/icons/icons/16x16.png +0 -0
  16. pgsui/electron/app/icons/icons/24x24.png +0 -0
  17. pgsui/electron/app/icons/icons/256x256.png +0 -0
  18. pgsui/electron/app/icons/icons/32x32.png +0 -0
  19. pgsui/electron/app/icons/icons/48x48.png +0 -0
  20. pgsui/electron/app/icons/icons/512x512.png +0 -0
  21. pgsui/electron/app/icons/icons/64x64.png +0 -0
  22. pgsui/electron/app/icons/icons/icon.icns +0 -0
  23. pgsui/electron/app/icons/icons/icon.ico +0 -0
  24. pgsui/electron/app/main.js +189 -0
  25. pgsui/electron/app/package-lock.json +6893 -0
  26. pgsui/electron/app/package.json +50 -0
  27. pgsui/electron/app/preload.js +15 -0
  28. pgsui/electron/app/server.py +146 -0
  29. pgsui/electron/app/ui/logo.png +0 -0
  30. pgsui/electron/app/ui/renderer.js +130 -0
  31. pgsui/electron/app/ui/styles.css +59 -0
  32. pgsui/electron/app/ui/ui_shim.js +72 -0
  33. pgsui/electron/bootstrap.py +43 -0
  34. pgsui/electron/launch.py +59 -0
  35. pgsui/electron/package.json +14 -0
  36. pgsui/example_data/popmaps/{test.popmap → phylogen_nomx.popmap} +185 -99
  37. pgsui/example_data/vcf_files/phylogen_subset14K.vcf.gz +0 -0
  38. pgsui/example_data/vcf_files/phylogen_subset14K.vcf.gz.tbi +0 -0
  39. pgsui/impute/deterministic/imputers/allele_freq.py +691 -0
  40. pgsui/impute/deterministic/imputers/mode.py +679 -0
  41. pgsui/impute/deterministic/imputers/nmf.py +221 -0
  42. pgsui/impute/deterministic/imputers/phylo.py +971 -0
  43. pgsui/impute/deterministic/imputers/ref_allele.py +530 -0
  44. pgsui/impute/supervised/base.py +339 -0
  45. pgsui/impute/supervised/imputers/hist_gradient_boosting.py +293 -0
  46. pgsui/impute/supervised/imputers/random_forest.py +287 -0
  47. pgsui/impute/unsupervised/base.py +924 -0
  48. pgsui/impute/unsupervised/callbacks.py +89 -263
  49. pgsui/impute/unsupervised/imputers/autoencoder.py +972 -0
  50. pgsui/impute/unsupervised/imputers/nlpca.py +1264 -0
  51. pgsui/impute/unsupervised/imputers/ubp.py +1288 -0
  52. pgsui/impute/unsupervised/imputers/vae.py +957 -0
  53. pgsui/impute/unsupervised/loss_functions.py +158 -0
  54. pgsui/impute/unsupervised/models/autoencoder_model.py +208 -558
  55. pgsui/impute/unsupervised/models/nlpca_model.py +149 -468
  56. pgsui/impute/unsupervised/models/ubp_model.py +198 -1317
  57. pgsui/impute/unsupervised/models/vae_model.py +259 -618
  58. pgsui/impute/unsupervised/nn_scorers.py +215 -0
  59. pgsui/utils/classification_viz.py +591 -0
  60. pgsui/utils/misc.py +35 -480
  61. pgsui/utils/plotting.py +514 -824
  62. pgsui/utils/scorers.py +212 -438
  63. pg_sui-1.0.2.1.dist-info/RECORD +0 -75
  64. pg_sui-1.0.2.1.dist-info/top_level.txt +0 -3
  65. pgsui/example_data/phylip_files/test_n10.phy +0 -118
  66. pgsui/example_data/phylip_files/test_n100.phy +0 -118
  67. pgsui/example_data/phylip_files/test_n2.phy +0 -118
  68. pgsui/example_data/phylip_files/test_n500.phy +0 -118
  69. pgsui/example_data/structure_files/test.nopops.1row.10sites.str +0 -117
  70. pgsui/example_data/structure_files/test.nopops.2row.100sites.str +0 -234
  71. pgsui/example_data/structure_files/test.nopops.2row.10sites.str +0 -234
  72. pgsui/example_data/structure_files/test.nopops.2row.30sites.str +0 -234
  73. pgsui/example_data/structure_files/test.nopops.2row.allsites.str +0 -234
  74. pgsui/example_data/structure_files/test.pops.1row.10sites.str +0 -117
  75. pgsui/example_data/structure_files/test.pops.2row.10sites.str +0 -234
  76. pgsui/example_data/trees/test.iqtree +0 -376
  77. pgsui/example_data/trees/test.qmat +0 -5
  78. pgsui/example_data/trees/test.rate +0 -2033
  79. pgsui/example_data/trees/test.tre +0 -1
  80. pgsui/example_data/trees/test_n10.rate +0 -19
  81. pgsui/example_data/trees/test_n100.rate +0 -109
  82. pgsui/example_data/trees/test_n500.rate +0 -509
  83. pgsui/example_data/trees/test_siterates.txt +0 -2024
  84. pgsui/example_data/trees/test_siterates_n10.txt +0 -10
  85. pgsui/example_data/trees/test_siterates_n100.txt +0 -100
  86. pgsui/example_data/trees/test_siterates_n500.txt +0 -500
  87. pgsui/example_data/vcf_files/test.vcf +0 -244
  88. pgsui/example_data/vcf_files/test.vcf.gz +0 -0
  89. pgsui/example_data/vcf_files/test.vcf.gz.tbi +0 -0
  90. pgsui/impute/estimators.py +0 -735
  91. pgsui/impute/impute.py +0 -1486
  92. pgsui/impute/simple_imputers.py +0 -1439
  93. pgsui/impute/supervised/iterative_imputer_fixedparams.py +0 -785
  94. pgsui/impute/supervised/iterative_imputer_gridsearch.py +0 -1027
  95. pgsui/impute/unsupervised/keras_classifiers.py +0 -702
  96. pgsui/impute/unsupervised/models/in_development/cnn_model.py +0 -486
  97. pgsui/impute/unsupervised/neural_network_imputers.py +0 -1424
  98. pgsui/impute/unsupervised/neural_network_methods.py +0 -1549
  99. pgsui/pg_sui.py +0 -261
  100. pgsui/utils/sequence_tools.py +0 -407
  101. simulation/sim_benchmarks.py +0 -333
  102. simulation/sim_treeparams.py +0 -475
  103. test/__init__.py +0 -0
  104. test/pg_sui_simtest.py +0 -215
  105. test/pg_sui_testing.py +0 -523
  106. test/test.py +0 -297
  107. test/test_pgsui.py +0 -374
  108. test/test_tkc.py +0 -214
  109. {pg_sui-1.0.2.1.dist-info → pg_sui-1.6.8.dist-info/licenses}/LICENSE +0 -0
  110. /pgsui/{example_data/trees → electron/app}/__init__.py +0 -0
  111. /pgsui/impute/{unsupervised/models/in_development → supervised/imputers}/__init__.py +0 -0
  112. {simulation → pgsui/impute/unsupervised/imputers}/__init__.py +0 -0
@@ -1,58 +1,70 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pg-sui
3
- Version: 1.0.2.1
4
- Summary: Python machine and deep learning package to impute missing SNPs
5
- Home-page: https://github.com/btmartin721/PG-SUI
6
- Author: Bradley T. Martin and Tyler K. Chafin
7
- Author-email: evobio721@gmail.com
8
- Maintainer: Bradley T. Martin
9
- Maintainer-email: evobio721@gmail.com
3
+ Version: 1.6.8
4
+ Summary: Python machine and deep learning API to impute missing genotypes
5
+ Author-email: "Drs. Bradley T. Martin and Tyler K. Chafin" <evobio721@gmail.com>
6
+ Maintainer-email: "Dr. Bradley T. Martin" <evobio721@gmail.com>
10
7
  License: GNU General Public License v3 (GPLv3)
11
8
  Project-URL: Homepage, https://github.com/btmartin721/PG-SUI
12
9
  Project-URL: Documentation, https://pg-sui.readthedocs.io/en/latest/
13
10
  Project-URL: Source, https://github.com/btmartin721/PG-SUI.git
14
- Project-URL: Bug Tracker, https://github.com/btmartin721/PG-SUI/issues
15
- Keywords: impute,imputation,imputer,machine learning,neural network,deep learning,python,api,vae,autoencoder,ubp,nlpca,population genomics,unsupervised,supervised,IterativeImputer
11
+ Project-URL: BugTracker, https://github.com/btmartin721/PG-SUI/issues
12
+ Keywords: impute,imputation,AI,deep learning,machine learning,neural network,vae,autoencoder,ubp,nlpca,population genetics,unsupervised,supervised,bioinformatics,snp,genomics,genotype,missing data,data analysis,data science,statistics,data visualization,python
16
13
  Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.8
19
- Classifier: Programming Language :: Python :: 3.9
20
- Classifier: Programming Language :: Python :: 3.10
21
14
  Classifier: Programming Language :: Python :: 3.11
22
- Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Development Status :: 4 - Beta
17
+ Classifier: Environment :: Console
23
18
  Classifier: Intended Audience :: Science/Research
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: Intended Audience :: Education
24
21
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
25
22
  Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
26
- Classifier: Operating System :: OS Independent
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
25
+ Classifier: Topic :: Scientific/Engineering :: Visualization
26
+ Classifier: Operating System :: MacOS
27
+ Classifier: Operating System :: MacOS :: MacOS X
28
+ Classifier: Operating System :: Unix
29
+ Classifier: Operating System :: POSIX
27
30
  Classifier: Natural Language :: English
28
- Requires-Python: >=3.8
31
+ Requires-Python: >=3.11
29
32
  Description-Content-Type: text/markdown
30
33
  License-File: LICENSE
31
34
  Requires-Dist: matplotlib
35
+ Requires-Dist: numpy>=2.1
36
+ Requires-Dist: pandas>=2.2.2
37
+ Requires-Dist: scikit-learn>=1.4
38
+ Requires-Dist: scipy
32
39
  Requires-Dist: seaborn
33
- Requires-Dist: jupyterlab
34
- Requires-Dist: scikit-learn >=1.0
40
+ Requires-Dist: torch
35
41
  Requires-Dist: tqdm
36
- Requires-Dist: pandas <2.1.0
37
- Requires-Dist: numpy ==1.24.3
38
- Requires-Dist: scipy
39
- Requires-Dist: xgboost
40
- Requires-Dist: tensorflow
41
- Requires-Dist: keras
42
42
  Requires-Dist: toytree
43
- Requires-Dist: sklearn-genetic-opt[all] >=0.6.0
44
- Requires-Dist: importlib-resources >=1.1.0
45
- Requires-Dist: pyvolve
46
- Requires-Dist: scikeras
43
+ Requires-Dist: optuna
47
44
  Requires-Dist: snpio
48
- Requires-Dist: urllib3 <2.0.0,>=1.26.7
49
- Requires-Dist: typing-extensions <4.6.0
50
- Provides-Extra: docs
51
- Requires-Dist: sphinx <7 ; extra == 'docs'
52
- Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
53
- Requires-Dist: sphinx-autodoc-typehints ; extra == 'docs'
54
45
  Provides-Extra: intel
55
- Requires-Dist: scikit-learn-intelex ; extra == 'intel'
46
+ Requires-Dist: scikit-learn-intelex; extra == "intel"
47
+ Provides-Extra: docs
48
+ Requires-Dist: sphinx; extra == "docs"
49
+ Requires-Dist: sphinx-rtd-theme; extra == "docs"
50
+ Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
51
+ Requires-Dist: sphinxcontrib-napoleon; extra == "docs"
52
+ Requires-Dist: sphinxcontrib-programoutput; extra == "docs"
53
+ Provides-Extra: dev
54
+ Requires-Dist: twine; extra == "dev"
55
+ Requires-Dist: wheel; extra == "dev"
56
+ Requires-Dist: pytest; extra == "dev"
57
+ Requires-Dist: sphinx; extra == "dev"
58
+ Requires-Dist: sphinx-rtd-theme; extra == "dev"
59
+ Requires-Dist: sphinx-autodoc-typehints; extra == "dev"
60
+ Requires-Dist: sphinxcontrib-napoleon; extra == "dev"
61
+ Requires-Dist: sphinxcontrib-programoutput; extra == "dev"
62
+ Requires-Dist: requests; extra == "dev"
63
+ Requires-Dist: PyObjC; extra == "dev"
64
+ Provides-Extra: optional
65
+ Requires-Dist: PyObjC; extra == "optional"
66
+ Provides-Extra: gui
67
+ Dynamic: license-file
56
68
 
57
69
 
58
70
  <img src="https://github.com/btmartin721/PG-SUI/blob/master/img/pgsui-logo-faded.png" alt="PG-SUI Logo" width="50%" height="50%">
@@ -124,51 +136,20 @@ pip install pg-sui[intel]
124
136
 
125
137
  ### Dependencies
126
138
 
127
- + python >= 3.8
139
+ + python >= 3.11
128
140
  + pandas
129
- + numpy==1.24.3
141
+ + numpy
130
142
  + scipy
131
143
  + matplotlib
132
144
  + seaborn
133
145
  + plotly
134
146
  + kaleido
135
- + jupyterlab
136
147
  + tqdm
137
148
  + toytree
138
- + pyvolve
139
149
  + scikit-learn
140
- + tensorflow >= 2.7
141
- + keras >= 2.7
142
150
  + xgboost
143
- + scikeras >= 0.6.0
144
151
  + snpio
145
-
146
-
147
- ### Manual Install
148
-
149
- If you want to install everything manually, the requirements can be installed with conda and pip. sklearn-genetic-opt and scikeras are only avaiable via pip, and scikeras requires tensorflow >= 2.7 and scikit-learn >= 1.0.
150
-
151
- ```
152
- conda create -n pg-sui python
153
- conda activate pg-sui
154
-
155
- conda install matplotlib seaborn jupyterlab scikit-learn tqdm pandas numpy scipy xgboost lightgbm kaleido
156
-
157
- # Only works if using Intel CPUs; speeds up processing
158
- conda install scikit-learn-intelex
159
-
160
- conda install -c conda-forge toytree kaleido
161
-
162
- conda install -c bioconda pyvolve
163
-
164
- conda install -c plotly plotly
165
-
166
- pip install sklearn-genetic-opt[all]
167
-
168
- pip install scikeras snpio
169
-
170
- pip install tensorflow-cpu
171
- ```
152
+ + optuna
172
153
 
173
154
  #### Installation troubleshooting
174
155
 
@@ -0,0 +1,78 @@
1
+ pg_sui-1.6.8.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
2
+ pgsui/__init__.py,sha256=wQFzVX6vh8aUva1LCvP42jS7rcKCpkaU52YfZIy61q8,1493
3
+ pgsui/_version.py,sha256=Zn9G62jow5LN9bQhlg_NumYD0BF0BV4lF6giEp_iy6k,704
4
+ pgsui/cli.py,sha256=fj2_pHQJHF8K6GFKD6IacZal1YX5uqIW2yVvzdE7PbM,20683
5
+ pgsui/data_processing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ pgsui/data_processing/config.py,sha256=1GzbuJnJaway5WVrn82H7aTMpfPgq9hfIq9eusWfR1I,20845
7
+ pgsui/data_processing/containers.py,sha256=1Mg_aq_-15MD82fecTVWCt8ZWvR5sCACBjHhSwZDgYU,71184
8
+ pgsui/data_processing/transformers.py,sha256=mWx8yLqep4osAgtN3Bf1ga2FyOTXoANv3NvFmaYnPjg,6370
9
+ pgsui/electron/bootstrap.py,sha256=wnrXgX-hiqrMMFE9WGoD-UC8zeK2ZP6Kupu68PodVWI,1185
10
+ pgsui/electron/launch.py,sha256=iZ_58udTNtoPkKAulYDAuIjDqKCdtNu56LChp9C0-hg,1828
11
+ pgsui/electron/package.json,sha256=12hbBq7xincW5V4645TTC58jfkA2rPgFP_eLb_WbhKo,372
12
+ pgsui/electron/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ pgsui/electron/app/__main__.py,sha256=rF7tIpuy4OvMnzLms-fAUNfqYINEyR0Iofh1KKu5RI0,103
14
+ pgsui/electron/app/main.js,sha256=fV9dqIRK_wmTHIVjncr0v10xpkUsL1YaxxrE9kvZrEs,6961
15
+ pgsui/electron/app/package-lock.json,sha256=TRMdxenHpcuBv-3qG2_Tcm_eraKCKT-5382dkeVtb1s,246677
16
+ pgsui/electron/app/package.json,sha256=3DDyKLer5Vo0bpbMgMHFOqTQkdw6wsXNbaZucNce6C8,1229
17
+ pgsui/electron/app/preload.js,sha256=L3lPsTGfgiGXLmQFwktW11En1YSb01hWlJD6kzzmbhE,803
18
+ pgsui/electron/app/server.py,sha256=7-vi23p369bHGc5oo_zbTUdFbjpEl-aTZ5YrDo9xf8Q,4202
19
+ pgsui/electron/app/icons/icons/1024x1024.png,sha256=psZk62iG308QN9XP7sDCifGAHwG7__W-e2EUrF9hss0,42270
20
+ pgsui/electron/app/icons/icons/128x128.png,sha256=R9Za6fj289L432EdwAX7pUj4p4qy7iTMzghrrQzocCg,4705
21
+ pgsui/electron/app/icons/icons/16x16.png,sha256=TaVFFA8V4LQX_KwZCjko_eRPibmYEy1JSkuPicUZ0oQ,704
22
+ pgsui/electron/app/icons/icons/24x24.png,sha256=vMmSBmnTPhaVBfV_oCK_r3wykBq9JneyQu4TlHUVjBU,1094
23
+ pgsui/electron/app/icons/icons/256x256.png,sha256=D97Y8KYOg_RcsR8pNDcxyxtRz6X3qKkKw-oChy29tuY,9044
24
+ pgsui/electron/app/icons/icons/32x32.png,sha256=ah-Z-WybnXG801UV2xwAdvUNmQmy1C29EWLNlTgN8kI,1355
25
+ pgsui/electron/app/icons/icons/48x48.png,sha256=WYVea1_leKVpowEQCrbmV1zG5aMBRh-aMKpiziTKWYc,1995
26
+ pgsui/electron/app/icons/icons/512x512.png,sha256=A1YP6sKNFZEdVl7vVlIAUjunSzFhtXS0_e7bxRiadOQ,17784
27
+ pgsui/electron/app/icons/icons/64x64.png,sha256=tH4qDy3My1DPZz4QzSyz4P6_eel_3t246xKhtm1xKwg,2610
28
+ pgsui/electron/app/icons/icons/icon.icns,sha256=qaJExjDDJQk-uSbTIyPFn6a1hb8JRxs5HQmYdzZdb0c,108937
29
+ pgsui/electron/app/icons/icons/icon.ico,sha256=ljjD98wBOVfUSV3gPlMzXZ4FAprRdrAQENCZ76KTFmo,361102
30
+ pgsui/electron/app/ui/logo.png,sha256=uHhtVMYQsSCkcpeS8JPo-DVsAqwg3G4t-0lYuT4AP6E,38243
31
+ pgsui/electron/app/ui/renderer.js,sha256=5jKMZZbmAQLSffU_l2IlACo_jtC_XxuqJUwMK2uueUE,5298
32
+ pgsui/electron/app/ui/styles.css,sha256=NQPGczGXxw8XjrLbqKZtEQD-SICvciFuUfgtKm_FuHk,2675
33
+ pgsui/electron/app/ui/ui_shim.js,sha256=4qu_9qpMc_p-Boih0o8I2OAVL9TMS4DUUk7BRQIfCeM,2513
34
+ pgsui/example_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
+ pgsui/example_data/phylip_files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
+ pgsui/example_data/phylip_files/test.phy,sha256=LEq2Q3hjmPVDP2uF1Ai8OH2If5Y58ny-GRfuXa3l61c,238537
37
+ pgsui/example_data/popmaps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
+ pgsui/example_data/popmaps/phylogen_nomx.popmap,sha256=JR84kJ5jVjJ45k4kpvGVt2JNJHApQg1xNs2pKPt-V4k,3310
39
+ pgsui/example_data/structure_files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
+ pgsui/example_data/structure_files/test.pops.2row.allsites.str,sha256=fbmLcOUQSKyy71A77NPtJJMLSOkquPky0WiPlV4qHhA,967878
41
+ pgsui/example_data/vcf_files/phylogen_subset14K.vcf.gz,sha256=B9sxdIGPSbw4m4MTX_B1VHDx5cDicMNn83AFJy7SEAU,8053540
42
+ pgsui/example_data/vcf_files/phylogen_subset14K.vcf.gz.tbi,sha256=0gHDvboDAEZLQbXdYfUOiJL3oDOr1mOlaQxdlcz_erg,106087
43
+ pgsui/impute/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ pgsui/impute/deterministic/imputers/allele_freq.py,sha256=u7hLBrVnUdLGTi2xRVF3QVe9nBbW9FJ7hAsoJxyOHWI,28050
45
+ pgsui/impute/deterministic/imputers/mode.py,sha256=Pbje8UMXLuzwdz780r4FvVYXReOVKQ6KGgdNiqe3_i0,28369
46
+ pgsui/impute/deterministic/imputers/nmf.py,sha256=171_TTDZAe1NFjbmKQTOlPDe_rA1aO8q2Th5z0w2RU8,8086
47
+ pgsui/impute/deterministic/imputers/phylo.py,sha256=RSSD6F4XLZDcEPAnydJsQqk7d2OiNlOV1Rc6OU3axWY,38857
48
+ pgsui/impute/deterministic/imputers/ref_allele.py,sha256=bYTjsfF5VifshrwFxvuCEmK_JrCEcJdA7l7QYRX0Byw,22191
49
+ pgsui/impute/supervised/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
+ pgsui/impute/supervised/base.py,sha256=RB8JBXqH9AHybhLrCS1Rl3Q4_CkW2bUhbX-yl21YL7E,12674
51
+ pgsui/impute/supervised/imputers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ pgsui/impute/supervised/imputers/hist_gradient_boosting.py,sha256=PKp43dICsTwwuEqGNkB1e_hEw_lwuPijlkG66GLTg6o,10693
53
+ pgsui/impute/supervised/imputers/random_forest.py,sha256=iTBuuwuknjQGkdjPO_uvfyxDmgjl7fNukMb2TdWR-88,10204
54
+ pgsui/impute/unsupervised/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
+ pgsui/impute/unsupervised/base.py,sha256=uaKHulSwRXSS7JIkuDzzKBdyrsezYeXUxGovBBNm3dI,38710
56
+ pgsui/impute/unsupervised/callbacks.py,sha256=_7g8gf6nnKV0Tx7wbeInwtaZvrZLwJgEqgS4P-GyT90,4863
57
+ pgsui/impute/unsupervised/loss_functions.py,sha256=OAB9RXQmvBeC1TEa6sa4yU9M4J2hisT8C_rfv6b_iho,6319
58
+ pgsui/impute/unsupervised/nn_scorers.py,sha256=PymgTR9ZolmmpitOAu9QcwCD6G4ji3xiGg_d3Av-aK0,8261
59
+ pgsui/impute/unsupervised/imputers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
+ pgsui/impute/unsupervised/imputers/autoencoder.py,sha256=fplUcZmkPVv9hrVYE9hVePMm5Wrp9yi3UUmzY5rMnaU,40768
61
+ pgsui/impute/unsupervised/imputers/nlpca.py,sha256=omawKbwQI34GQUY_e5QAcjruDxR_fnS1Fyv_tBHjHQU,53049
62
+ pgsui/impute/unsupervised/imputers/ubp.py,sha256=RHW2YVa7pp7_gMg8ThqeBZkusHJWZ9ArbvQJB9fLIHg,55732
63
+ pgsui/impute/unsupervised/imputers/vae.py,sha256=bokbPuxjhD9EMokwNvjvFoZWLi5zLO36KTTtDyielnY,39259
64
+ pgsui/impute/unsupervised/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
+ pgsui/impute/unsupervised/models/autoencoder_model.py,sha256=lFvl5n6OhIb5oZ8Cpe-H8uiVAMKKLZdqZk6Aod1-urE,12055
66
+ pgsui/impute/unsupervised/models/nlpca_model.py,sha256=mwxmeinRoL5YKVXjb0EqWNN-Txhjx2MrOhoRhs8kRdY,8634
67
+ pgsui/impute/unsupervised/models/ubp_model.py,sha256=NcSE-V_gvZOdDBRGTgrtyo78WUiGC5h2NsOgkjqKQOc,9304
68
+ pgsui/impute/unsupervised/models/vae_model.py,sha256=u3god3VQ-S8jiIRIy0Tg95MBMViK2-WUPHK09zf5aw8,15478
69
+ pgsui/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
+ pgsui/utils/classification_viz.py,sha256=cUYsTKVyOlnlc7Carz1bBTwXxDIPgs8xX8K1sHnsEmQ,21389
71
+ pgsui/utils/misc.py,sha256=uBAci3NQjFrFxecPmIj2_v0IjF74KhUJKyHzRU4khYo,3014
72
+ pgsui/utils/plotting.py,sha256=PtFfR50u9rCd8NPu_qB1iD1vxttkDcUIf_i5nQMzbzY,23219
73
+ pgsui/utils/scorers.py,sha256=z3ol6Z-EONO1QRVWQOvSSOwtS2XFbdDn6LBCb_vc0-c,11897
74
+ pg_sui-1.6.8.dist-info/METADATA,sha256=xsuHhXI7GnsIN_7EpOBYhzBreh5AM_jW6R5h1elRiDE,12688
75
+ pg_sui-1.6.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
76
+ pg_sui-1.6.8.dist-info/entry_points.txt,sha256=xidyl6yqQv7oj3XSzZC6Vv9l7aNgbHi_pjv-dJjGJds,129
77
+ pg_sui-1.6.8.dist-info/top_level.txt,sha256=87-oDpfY6sDY_uN-OM2lcnrgPesifhzwqFOajp9ukz0,6
78
+ pg_sui-1.6.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ pg-sui = pgsui.cli:main
3
+ pgsui-gui = pgsui.electron.launch:main
4
+ pgsui-gui-setup = pgsui.electron.bootstrap:main
@@ -0,0 +1 @@
1
+ pgsui
pgsui/__init__.py CHANGED
@@ -1,63 +1,44 @@
1
1
  ## PG-SUI package by Bradley T. Martin and Tyler K. Chafin
2
2
  ## E-mail: evobio721@gmail.com
3
- ## Version 0.1, completed 13-Dec-2021
4
-
5
- # Suppresses tensorflow GPU warnings.
6
- import os
7
- import warnings
8
-
9
- os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"
10
-
11
- from pgsui.utils.misc import get_processor_name
12
-
13
-
14
- # Requires scikit-learn-intellex package
15
- if get_processor_name().strip().startswith("Intel"):
16
- try:
17
- from sklearnex import patch_sklearn
18
-
19
- patch_sklearn()
20
- intelex = True
21
- except (ImportError, TypeError):
22
- warnings.warn(
23
- "Intel CPU detected but scikit-learn-intelex is not installed. We recommend installing it to speed up computation if your hardware supports it."
24
- )
25
- intelex = False
26
- else:
27
- intelex = False
28
-
29
- os.environ["intelex"] = str(intelex)
30
-
31
- from pgsui.impute.estimators import (
32
- ImputeKNN,
33
- ImputeNLPCA,
34
- ImputeRandomForest,
35
- ImputeStandardAutoEncoder,
36
- ImputeUBP,
37
- ImputeVAE,
38
- ImputeXGBoost,
3
+ from ._version import version as __version__
4
+
5
+ from pgsui.data_processing.containers import (
6
+ AutoencoderConfig,
7
+ HGBConfig,
8
+ MostFrequentConfig,
9
+ NLPCAConfig,
10
+ RefAlleleConfig,
11
+ RFConfig,
12
+ UBPConfig,
13
+ VAEConfig,
39
14
  )
40
-
41
- from pgsui.impute.simple_imputers import (
42
- ImputePhylo,
43
- ImputeMF,
44
- ImputeAlleleFreq,
45
- ImputeRefAllele,
15
+ from pgsui.impute.deterministic.imputers.mode import ImputeMostFrequent
16
+ from pgsui.impute.deterministic.imputers.ref_allele import ImputeRefAllele
17
+ from pgsui.impute.supervised.imputers.hist_gradient_boosting import (
18
+ ImputeHistGradientBoosting,
46
19
  )
47
-
48
- from pgsui.data_processing.transformers import SimGenotypeDataTransformer
20
+ from pgsui.impute.supervised.imputers.random_forest import ImputeRandomForest
21
+ from pgsui.impute.unsupervised.imputers.autoencoder import ImputeAutoencoder
22
+ from pgsui.impute.unsupervised.imputers.nlpca import ImputeNLPCA
23
+ from pgsui.impute.unsupervised.imputers.ubp import ImputeUBP
24
+ from pgsui.impute.unsupervised.imputers.vae import ImputeVAE
49
25
 
50
26
  __all__ = [
51
- "ImputeUBP",
27
+ "ImputeAutoencoder", # Unsupervised imputer classes
52
28
  "ImputeVAE",
53
- "ImputeXGBoost",
54
- "ImputeStandardAutoEncoder",
55
- "ImputeRandomForest",
56
29
  "ImputeNLPCA",
57
- "ImputeKNN",
58
- "SimGenotypeDataTransformer",
59
- "ImputePhylo",
60
- "ImputeMF",
61
- "ImputeAlleleFreq",
62
- "ImputeRefAllele",
30
+ "ImputeUBP",
31
+ "ImputeRandomForest", # Supervised imputer classes
32
+ "ImputeHistGradientBoosting",
33
+ "ImputeRefAllele", # Deterministic imputer classes
34
+ "ImputeMostFrequent",
35
+ "AutoencoderConfig", # Unsupervised imputer configs
36
+ "VAEConfig",
37
+ "NLPCAConfig",
38
+ "UBPConfig",
39
+ "MostFrequentConfig", # Deterministic imputer configs
40
+ "RefAlleleConfig",
41
+ "RFConfig", # Supervised imputer configs
42
+ "HGBConfig",
43
+ "__version__",
63
44
  ]
pgsui/_version.py ADDED
@@ -0,0 +1,34 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
3
+
4
+ __all__ = [
5
+ "__version__",
6
+ "__version_tuple__",
7
+ "version",
8
+ "version_tuple",
9
+ "__commit_id__",
10
+ "commit_id",
11
+ ]
12
+
13
+ TYPE_CHECKING = False
14
+ if TYPE_CHECKING:
15
+ from typing import Tuple
16
+ from typing import Union
17
+
18
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
19
+ COMMIT_ID = Union[str, None]
20
+ else:
21
+ VERSION_TUPLE = object
22
+ COMMIT_ID = object
23
+
24
+ version: str
25
+ __version__: str
26
+ __version_tuple__: VERSION_TUPLE
27
+ version_tuple: VERSION_TUPLE
28
+ commit_id: COMMIT_ID
29
+ __commit_id__: COMMIT_ID
30
+
31
+ __version__ = version = '1.6.8'
32
+ __version_tuple__ = version_tuple = (1, 6, 8)
33
+
34
+ __commit_id__ = commit_id = None