PG-SUI 0.2__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 (81) hide show
  1. PG-SUI-0.2/MANIFEST.in +5 -0
  2. PG-SUI-0.2/PG_SUI.egg-info/PKG-INFO +289 -0
  3. PG-SUI-0.2/PG_SUI.egg-info/SOURCES.txt +79 -0
  4. PG-SUI-0.2/PG_SUI.egg-info/dependency_links.txt +1 -0
  5. PG-SUI-0.2/PG_SUI.egg-info/requires.txt +27 -0
  6. PG-SUI-0.2/PG_SUI.egg-info/top_level.txt +3 -0
  7. PG-SUI-0.2/PKG-INFO +289 -0
  8. PG-SUI-0.2/README.md +264 -0
  9. PG-SUI-0.2/pgsui/__init__.py +63 -0
  10. PG-SUI-0.2/pgsui/data_processing/__init__.py +0 -0
  11. PG-SUI-0.2/pgsui/data_processing/transformers.py +1131 -0
  12. PG-SUI-0.2/pgsui/example_data/__init__.py +0 -0
  13. PG-SUI-0.2/pgsui/example_data/phylip_files/__init__.py +0 -0
  14. PG-SUI-0.2/pgsui/example_data/phylip_files/test.phy +118 -0
  15. PG-SUI-0.2/pgsui/example_data/phylip_files/test_n10.phy +118 -0
  16. PG-SUI-0.2/pgsui/example_data/phylip_files/test_n100.phy +118 -0
  17. PG-SUI-0.2/pgsui/example_data/phylip_files/test_n2.phy +118 -0
  18. PG-SUI-0.2/pgsui/example_data/phylip_files/test_n500.phy +118 -0
  19. PG-SUI-0.2/pgsui/example_data/popmaps/__init__.py +0 -0
  20. PG-SUI-0.2/pgsui/example_data/popmaps/test.popmap +117 -0
  21. PG-SUI-0.2/pgsui/example_data/structure_files/__init__.py +0 -0
  22. PG-SUI-0.2/pgsui/example_data/structure_files/test.nopops.1row.10sites.str +117 -0
  23. PG-SUI-0.2/pgsui/example_data/structure_files/test.nopops.2row.100sites.str +234 -0
  24. PG-SUI-0.2/pgsui/example_data/structure_files/test.nopops.2row.10sites.str +234 -0
  25. PG-SUI-0.2/pgsui/example_data/structure_files/test.nopops.2row.30sites.str +234 -0
  26. PG-SUI-0.2/pgsui/example_data/structure_files/test.nopops.2row.allsites.str +234 -0
  27. PG-SUI-0.2/pgsui/example_data/structure_files/test.pops.1row.10sites.str +117 -0
  28. PG-SUI-0.2/pgsui/example_data/structure_files/test.pops.2row.10sites.str +234 -0
  29. PG-SUI-0.2/pgsui/example_data/structure_files/test.pops.2row.allsites.str +234 -0
  30. PG-SUI-0.2/pgsui/example_data/trees/__init__.py +0 -0
  31. PG-SUI-0.2/pgsui/example_data/trees/test.iqtree +376 -0
  32. PG-SUI-0.2/pgsui/example_data/trees/test.qmat +5 -0
  33. PG-SUI-0.2/pgsui/example_data/trees/test.rate +2033 -0
  34. PG-SUI-0.2/pgsui/example_data/trees/test.tre +1 -0
  35. PG-SUI-0.2/pgsui/example_data/trees/test_n10.rate +19 -0
  36. PG-SUI-0.2/pgsui/example_data/trees/test_n100.rate +109 -0
  37. PG-SUI-0.2/pgsui/example_data/trees/test_n500.rate +509 -0
  38. PG-SUI-0.2/pgsui/example_data/trees/test_siterates.txt +2024 -0
  39. PG-SUI-0.2/pgsui/example_data/trees/test_siterates_n10.txt +10 -0
  40. PG-SUI-0.2/pgsui/example_data/trees/test_siterates_n100.txt +100 -0
  41. PG-SUI-0.2/pgsui/example_data/trees/test_siterates_n500.txt +500 -0
  42. PG-SUI-0.2/pgsui/example_data/vcf_files/test.vcf +244 -0
  43. PG-SUI-0.2/pgsui/example_data/vcf_files/test.vcf.gz +0 -0
  44. PG-SUI-0.2/pgsui/example_data/vcf_files/test.vcf.gz.tbi +0 -0
  45. PG-SUI-0.2/pgsui/impute/__init__.py +0 -0
  46. PG-SUI-0.2/pgsui/impute/estimators.py +1268 -0
  47. PG-SUI-0.2/pgsui/impute/impute.py +1463 -0
  48. PG-SUI-0.2/pgsui/impute/simple_imputers.py +1431 -0
  49. PG-SUI-0.2/pgsui/impute/supervised/__init__.py +0 -0
  50. PG-SUI-0.2/pgsui/impute/supervised/iterative_imputer_fixedparams.py +782 -0
  51. PG-SUI-0.2/pgsui/impute/supervised/iterative_imputer_gridsearch.py +1024 -0
  52. PG-SUI-0.2/pgsui/impute/unsupervised/__init__.py +0 -0
  53. PG-SUI-0.2/pgsui/impute/unsupervised/callbacks.py +286 -0
  54. PG-SUI-0.2/pgsui/impute/unsupervised/keras_classifiers.py +697 -0
  55. PG-SUI-0.2/pgsui/impute/unsupervised/models/__init__.py +0 -0
  56. PG-SUI-0.2/pgsui/impute/unsupervised/models/autoencoder_model.py +645 -0
  57. PG-SUI-0.2/pgsui/impute/unsupervised/models/in_development/__init__.py +0 -0
  58. PG-SUI-0.2/pgsui/impute/unsupervised/models/in_development/cnn_model.py +486 -0
  59. PG-SUI-0.2/pgsui/impute/unsupervised/models/nlpca_model.py +445 -0
  60. PG-SUI-0.2/pgsui/impute/unsupervised/models/ubp_model.py +1126 -0
  61. PG-SUI-0.2/pgsui/impute/unsupervised/models/vae_model.py +710 -0
  62. PG-SUI-0.2/pgsui/impute/unsupervised/neural_network_imputers.py +1440 -0
  63. PG-SUI-0.2/pgsui/impute/unsupervised/neural_network_methods.py +1395 -0
  64. PG-SUI-0.2/pgsui/pg_sui.py +261 -0
  65. PG-SUI-0.2/pgsui/utils/__init__.py +0 -0
  66. PG-SUI-0.2/pgsui/utils/misc.py +518 -0
  67. PG-SUI-0.2/pgsui/utils/plotting.py +949 -0
  68. PG-SUI-0.2/pgsui/utils/scorers.py +750 -0
  69. PG-SUI-0.2/pgsui/utils/sequence_tools.py +407 -0
  70. PG-SUI-0.2/pyproject.toml +70 -0
  71. PG-SUI-0.2/setup.cfg +4 -0
  72. PG-SUI-0.2/setup.py +92 -0
  73. PG-SUI-0.2/simulation/__init__.py +0 -0
  74. PG-SUI-0.2/simulation/sim_benchmarks.py +333 -0
  75. PG-SUI-0.2/simulation/sim_treeparams.py +475 -0
  76. PG-SUI-0.2/test/__init__.py +0 -0
  77. PG-SUI-0.2/test/pg_sui_simtest.py +215 -0
  78. PG-SUI-0.2/test/pg_sui_testing.py +523 -0
  79. PG-SUI-0.2/test/test.py +151 -0
  80. PG-SUI-0.2/test/test_pgsui.py +374 -0
  81. PG-SUI-0.2/test/test_tkc.py +185 -0
PG-SUI-0.2/MANIFEST.in ADDED
@@ -0,0 +1,5 @@
1
+ include pgsui/example_data/structure_files/*.str
2
+ include pgsui/example_data/phylip_files/*.phy
3
+ include pgsui/example_data/popmaps/test.popmap
4
+ include pgsui/example_data/trees/test*
5
+ include pgsui/example_data/vcf_files/*
@@ -0,0 +1,289 @@
1
+ Metadata-Version: 2.1
2
+ Name: PG-SUI
3
+ Version: 0.2
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
10
+ License: GNU General Public License v3 (GPLv3)
11
+ Project-URL: Bug Tracker, https://github.com/btmartin721/PG-SUI/issues
12
+ Description:
13
+ <img src="https://github.com/btmartin721/PG-SUI/blob/master/img/pgsui-logo-faded.png" alt="PG-SUI Logo" width="50%" height="50%">
14
+
15
+
16
+ # PG-SUI
17
+
18
+ Population Genomic Supervised and Unsupervised Imputation.
19
+
20
+ ## About PG-SUI
21
+
22
+ PG-SUI is a Python 3 API that uses machine learning to impute missing values from population genomic SNP data. There are several supervised and unsupervised machine learning algorithms available to impute missing data, as well as some non-machine learning imputers that are useful.
23
+
24
+ Below is some general information and a basic tutorial. For more detailed information, see our [API Documentation](https://pg-sui.readthedocs.io/en/latest/).
25
+
26
+ ### Supervised Imputation Methods
27
+
28
+ Supervised methods utilze the scikit-learn's IterativeImputer, which is based on the MICE (Multivariate Imputation by Chained Equations) algorithm ([1](#1)), and iterates over each SNP site (i.e., feature) while uses the N nearest neighbor features to inform the imputation. The number of nearest features can be adjusted by users. IterativeImputer currently works with any of the following scikit-learn classifiers:
29
+
30
+ + K-Nearest Neighbors
31
+ + Random Forest
32
+ + XGBoost
33
+
34
+ See the scikit-learn documentation (https://scikit-learn.org) for more information on IterativeImputer and each of the classifiers.
35
+
36
+ ### Unsupervised Imputation Methods
37
+
38
+ Unsupervised imputers include three custom neural network models:
39
+
40
+ + Variational Autoencoder (VAE) ([2](#2))
41
+ + Standard Autoencoder (SAE) ([3](#3))
42
+ + Non-linear Principal Component Analysis (NLPCA) ([4](#4))
43
+ + Unsupervised Backpropagation (UBP) ([5](#5))
44
+
45
+ VAE models train themselves to reconstruct their input (i.e., the genotypes). To use VAE for imputation, the missing values are masked and the VAE model gets trained to reconstruct only on known values. Once the model is trained, it is then used to predict the missing values.
46
+
47
+ SAE is a standard autoencoder that trains the input to predict itself. As with VAE, missing values are masked and the model gets trained only on known values. Predictions are then made on the missing values.
48
+
49
+ NLPCA initializes random, reduced-dimensional input, then trains itself by using the known values (i.e., genotypes) as targets and refining the random input until it accurately predicts the genotype output. The trained model can then predict the missing values.
50
+
51
+ UBP is an extension of NLPCA that runs over three phases. Phase 1 refines the randomly generated, reduced-dimensional input in a single layer perceptron neural network to obtain good initial input values. Phase 2 uses the refined reduced-dimensional input from phase 1 as input into a multi-layer perceptron (MLP), but in Phase 2 only the neural network weights are refined. Phase three uses an MLP to refine both the weights and the reduced-dimensional input. Once the model is trained, it can be used to predict the missing values.
52
+
53
+ ### Non-Machine Learning Methods
54
+
55
+ We also include several non-machine learning options for imputing missing data, including:
56
+
57
+ + Per-population mode per SNP site
58
+ + Global mode per SNP site
59
+ + Using a phylogeny as input to inform the imputation
60
+ + Matrix Factorization
61
+
62
+ These four "simple" imputation methods can be used as standalone imputers, as the initial imputation strategy for IterativeImputer (at least one method is required to be chosen), and to validate the accuracy of both IterativeImputer and the neural network models.
63
+
64
+ ## Installing PG-SUI
65
+
66
+ The easiest way to install PG-SUI is to use pip:
67
+
68
+ ```
69
+ pip install pgsui
70
+ ```
71
+
72
+ If you have an Intel CPU and want to use the sklearn-genetic-intelex package to speed up scikit-learn computations, you can do:
73
+
74
+ ```
75
+ pip install pgsui[intel]
76
+ ```
77
+
78
+ ## Manual Installation
79
+
80
+ ### Dependencies
81
+
82
+ + python >= 3.8
83
+ + pandas
84
+ + numpy==1.24.3
85
+ + scipy
86
+ + matplotlib
87
+ + seaborn
88
+ + plotly
89
+ + kaleido
90
+ + jupyterlab
91
+ + tqdm
92
+ + toytree
93
+ + pyvolve
94
+ + scikit-learn
95
+ + tensorflow >= 2.7
96
+ + keras >= 2.7
97
+ + xgboost
98
+ + scikeras >= 0.6.0
99
+ + snpio
100
+
101
+
102
+ ### Manual Install
103
+
104
+ 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.
105
+
106
+ ```
107
+ conda create -n pg-sui python
108
+ conda activate pg-sui
109
+
110
+ conda install matplotlib seaborn jupyterlab scikit-learn tqdm pandas numpy scipy xgboost lightgbm kaleido
111
+
112
+ # Only works if using Intel CPUs; speeds up processing
113
+ conda install scikit-learn-intelex
114
+
115
+ conda install -c conda-forge toytree kaleido
116
+
117
+ conda install -c bioconda pyvolve
118
+
119
+ conda install -c plotly plotly
120
+
121
+ pip install sklearn-genetic-opt[all]
122
+
123
+ pip install scikeras snpio
124
+
125
+ pip install tensorflow-cpu
126
+ ```
127
+
128
+ #### Installation troubleshooting
129
+
130
+ ##### "use_2to3 is invalid" error
131
+
132
+ Users running setuptools v58 may encounter this error during the last step of installation, using pip to install sklearn-genetic-opt:
133
+
134
+ ```
135
+ ERROR: Command errored out with exit status 1:
136
+ command: /Users/tyler/miniforge3/envs/pg-sui/bin/python3.8 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/6x/t6g4kn711z5cxmc2_tvq0mlw0000gn/T/pip-install-6y5g_mhs/deap_1d32f65d60a44056bd7031f3aad44571/setup.py'"'"'; __file__='"'"'/private/var/folders/6x/t6g4kn711z5cxmc2_tvq0mlw0000gn/T/pip-install-6y5g_mhs/deap_1d32f65d60a44056bd7031f3aad44571/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/6x/t6g4kn711z5cxmc2_tvq0mlw0000gn/T/pip-pip-egg-info-7hg3hcq2
137
+ cwd: /private/var/folders/6x/t6g4kn711z5cxmc2_tvq0mlw0000gn/T/pip-install-6y5g_mhs/deap_1d32f65d60a44056bd7031f3aad44571/
138
+ Complete output (1 lines):
139
+ error in deap setup command: use_2to3 is invalid.
140
+ ```
141
+
142
+ This occurs during the installation of DEAP, one of the dependencies for sklearn-genetic-opt. As a workaround, first downgrade setuptools, and then proceed with the installation as normal:
143
+ ```
144
+ pip install setuptools==57
145
+ pip install sklearn-genetic-opt[all]
146
+
147
+ ```
148
+
149
+ ##### Mac ARM architecture
150
+
151
+ PG-SUI has been tested on the new Mac M1 chips and is working fine, but some changes to the installation process were necessary as of 9-December-21. Installation was successful using the following:
152
+
153
+ ```
154
+ ### Install Miniforge3 instead of Miniconda3
155
+ ### Download: https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh
156
+ bash ~/Downloads/Miniforge3-MacOSX-arm64.sh
157
+
158
+ # Close and re-open terminal #
159
+
160
+ #create and activate conda environment
161
+ conda create -n pg-sui python
162
+
163
+ #activate environment
164
+ conda activate pg-sui
165
+
166
+ #install packages
167
+ conda install -c conda-forge matplotlib seaborn jupyterlab scikit-learn tqdm pandas numpy scipy xgboost lightgbm tensorflow keras sklearn-genetic-opt toytree
168
+ conda install -c bioconda pyvolve
169
+
170
+ #downgrade setuptools (may or may not be necessary)
171
+ pip install setuptools==57
172
+
173
+ #install sklearn-genetic-opt and mlflow
174
+ pip install sklearn-genetic-opt mlflow
175
+
176
+ ```
177
+
178
+ Any other problems we run into testing on the Mac ARM architecture will be adjusted here. Note that the step installing scikit-learn-intelex was skipped here. PG-SUI will automatically detect the CPU architecture you are running, and forgo importing this package (which will only work on Intel processors)
179
+
180
+ ## Input Data
181
+
182
+ You can read your input files as a GenotypeData object from the [SNPio](https://snpio.readthedocs.io/en/latest/) package:
183
+
184
+ ```
185
+
186
+ # Import snpio. Automatically installed with pgsui when using pip.
187
+ from snpio import GenotypeData
188
+
189
+ # Read in PHYLIP, VCF, or STRUCTURE-formatted alignments.
190
+ data = GenotypeData(
191
+ filename="example_data/phylip_files/phylogen_nomx.u.snps.phy",
192
+ popmapfile="example_data/popmaps/phylogen_nomx.popmap",
193
+ force_popmap=True,
194
+ filetype="auto",
195
+ qmatrix_iqtree="example_data/trees/test.qmat",
196
+ siterates_iqtree="example_data/trees/test.rate",
197
+ guidetree="example_data/trees/test.tre",
198
+ include_pops=["EA", "TT", "GU"], # Only include these populations. There's also an exclude_pops option that will exclude the provided populations.
199
+ )
200
+ ```
201
+
202
+ ## Supported Imputation Methods
203
+
204
+ There are numerous supported algorithms to impute missing data. Each one can be run by calling the corresponding class. You must provide a GenotypeData instance as the first positional argument.
205
+
206
+ You can import all the supported methods with:
207
+
208
+ ```
209
+ from pgsui import *
210
+ ```
211
+
212
+ Or you can import them one at a time.
213
+
214
+ ```
215
+ from pgsui import ImputeVAE
216
+ ```
217
+
218
+ ### Supervised Imputers
219
+
220
+ Various supervised imputation options are supported:
221
+
222
+ ```
223
+ # Supervised IterativeImputer classifiers
224
+ knn = ImputeKNN(data) # K-Nearest Neighbors
225
+ rf = ImputeRandomForest(data) # Random Forest or Extra Trees
226
+ xgb = ImputeXGBoost(data) # XGBoost
227
+ ```
228
+
229
+ ### Non-machine learning methods
230
+
231
+ Use phylogeny to inform imputation:
232
+
233
+ ```
234
+ phylo = ImputePhylo(data)
235
+ ```
236
+
237
+ Use by-population or global allele frequency to inform imputation
238
+
239
+ ```
240
+ pop_af = ImputeAlleleFreq(data, by_populations=True)
241
+ global_af = ImputeAlleleFreq(data, by_populations=False)
242
+ ref_af = ImputeRefAllele(data)
243
+ ```
244
+
245
+ Non-matrix factorization:
246
+
247
+ ```
248
+ mf = ImputeMF(*args) # Matrix factorization
249
+ ```
250
+
251
+ ### Unsupervised Neural Networks
252
+
253
+ ```
254
+ vae = ImputeVAE(data) # Variational autoencoder
255
+ nlpca = ImputeNLPCA(data) # Nonlinear PCA
256
+ ubp = ImputeUBP(data) # Unsupervised backpropagation
257
+ sae = ImputeStandardAutoEncoder(data) # standard autoencoder
258
+ ```
259
+
260
+ ## To-Dos
261
+
262
+ - simulations
263
+ - Documentation
264
+
265
+ ## References:
266
+
267
+ <a name="1">1. </a>Stef van Buuren, Karin Groothuis-Oudshoorn (2011). mice: Multivariate Imputation by Chained Equations in R. Journal of Statistical Software 45: 1-67.
268
+
269
+ <a name="2">2. </a>Kingma, D.P. & Welling, M. (2013). Auto-encoding variational bayes. In: Proceedings of the International Conference on Learning Representations (ICLR). arXiv:1312.6114 [stat.ML].
270
+
271
+ <a name="3">3. </a>Hinton, G.E., & Salakhutdinov, R.R. (2006). Reducing the dimensionality of data with neural networks. Science, 313(5786), 504-507.
272
+
273
+ <a name="4">4. </a>Scholz, M., Kaplan, F., Guy, C. L., Kopka, J., & Selbig, J. (2005). Non-linear PCA: a missing data approach. Bioinformatics, 21(20), 3887-3895.
274
+
275
+ <a name="5">5. </a>Gashler, M. S., Smith, M. R., Morris, R., & Martinez, T. (2016). Missing value imputation with unsupervised backpropagation. Computational Intelligence, 32(2), 196-215.
276
+
277
+ Keywords: python,impute,imputation,imputer,machine learning,neural network,api,IterativeImputer,vae,ubp,nlpca,autoencoder
278
+ Platform: UNKNOWN
279
+ Classifier: Programming Language :: Python :: 3
280
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
281
+ Classifier: Development Status :: 4 - Beta
282
+ Classifier: Intended Audience :: Science/Research
283
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
284
+ Classifier: Operating System :: OS Independent
285
+ Classifier: Natural Language :: English
286
+ Requires-Python: >=3.8,<4
287
+ Description-Content-Type: text/markdown
288
+ Provides-Extra: docs
289
+ Provides-Extra: intel
@@ -0,0 +1,79 @@
1
+ MANIFEST.in
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ PG_SUI.egg-info/PKG-INFO
6
+ PG_SUI.egg-info/SOURCES.txt
7
+ PG_SUI.egg-info/dependency_links.txt
8
+ PG_SUI.egg-info/requires.txt
9
+ PG_SUI.egg-info/top_level.txt
10
+ pgsui/__init__.py
11
+ pgsui/pg_sui.py
12
+ pgsui/data_processing/__init__.py
13
+ pgsui/data_processing/transformers.py
14
+ pgsui/example_data/__init__.py
15
+ pgsui/example_data/phylip_files/__init__.py
16
+ pgsui/example_data/phylip_files/test.phy
17
+ pgsui/example_data/phylip_files/test_n10.phy
18
+ pgsui/example_data/phylip_files/test_n100.phy
19
+ pgsui/example_data/phylip_files/test_n2.phy
20
+ pgsui/example_data/phylip_files/test_n500.phy
21
+ pgsui/example_data/popmaps/__init__.py
22
+ pgsui/example_data/popmaps/test.popmap
23
+ pgsui/example_data/structure_files/__init__.py
24
+ pgsui/example_data/structure_files/test.nopops.1row.10sites.str
25
+ pgsui/example_data/structure_files/test.nopops.2row.100sites.str
26
+ pgsui/example_data/structure_files/test.nopops.2row.10sites.str
27
+ pgsui/example_data/structure_files/test.nopops.2row.30sites.str
28
+ pgsui/example_data/structure_files/test.nopops.2row.allsites.str
29
+ pgsui/example_data/structure_files/test.pops.1row.10sites.str
30
+ pgsui/example_data/structure_files/test.pops.2row.10sites.str
31
+ pgsui/example_data/structure_files/test.pops.2row.allsites.str
32
+ pgsui/example_data/trees/__init__.py
33
+ pgsui/example_data/trees/test.iqtree
34
+ pgsui/example_data/trees/test.qmat
35
+ pgsui/example_data/trees/test.rate
36
+ pgsui/example_data/trees/test.tre
37
+ pgsui/example_data/trees/test_n10.rate
38
+ pgsui/example_data/trees/test_n100.rate
39
+ pgsui/example_data/trees/test_n500.rate
40
+ pgsui/example_data/trees/test_siterates.txt
41
+ pgsui/example_data/trees/test_siterates_n10.txt
42
+ pgsui/example_data/trees/test_siterates_n100.txt
43
+ pgsui/example_data/trees/test_siterates_n500.txt
44
+ pgsui/example_data/vcf_files/test.vcf
45
+ pgsui/example_data/vcf_files/test.vcf.gz
46
+ pgsui/example_data/vcf_files/test.vcf.gz.tbi
47
+ pgsui/impute/__init__.py
48
+ pgsui/impute/estimators.py
49
+ pgsui/impute/impute.py
50
+ pgsui/impute/simple_imputers.py
51
+ pgsui/impute/supervised/__init__.py
52
+ pgsui/impute/supervised/iterative_imputer_fixedparams.py
53
+ pgsui/impute/supervised/iterative_imputer_gridsearch.py
54
+ pgsui/impute/unsupervised/__init__.py
55
+ pgsui/impute/unsupervised/callbacks.py
56
+ pgsui/impute/unsupervised/keras_classifiers.py
57
+ pgsui/impute/unsupervised/neural_network_imputers.py
58
+ pgsui/impute/unsupervised/neural_network_methods.py
59
+ pgsui/impute/unsupervised/models/__init__.py
60
+ pgsui/impute/unsupervised/models/autoencoder_model.py
61
+ pgsui/impute/unsupervised/models/nlpca_model.py
62
+ pgsui/impute/unsupervised/models/ubp_model.py
63
+ pgsui/impute/unsupervised/models/vae_model.py
64
+ pgsui/impute/unsupervised/models/in_development/__init__.py
65
+ pgsui/impute/unsupervised/models/in_development/cnn_model.py
66
+ pgsui/utils/__init__.py
67
+ pgsui/utils/misc.py
68
+ pgsui/utils/plotting.py
69
+ pgsui/utils/scorers.py
70
+ pgsui/utils/sequence_tools.py
71
+ simulation/__init__.py
72
+ simulation/sim_benchmarks.py
73
+ simulation/sim_treeparams.py
74
+ test/__init__.py
75
+ test/pg_sui_simtest.py
76
+ test/pg_sui_testing.py
77
+ test/test.py
78
+ test/test_pgsui.py
79
+ test/test_tkc.py
@@ -0,0 +1,27 @@
1
+ importlib-resources>=1.1.0
2
+ jupyterlab
3
+ keras
4
+ matplotlib
5
+ numpy==1.24.3
6
+ pandas
7
+ pyvolve
8
+ scikeras
9
+ scikit-learn>=1.0
10
+ scipy
11
+ seaborn
12
+ sklearn-genetic-opt[all]>=0.6.0
13
+ snpio
14
+ tensorflow
15
+ toytree
16
+ tqdm
17
+ typing-extensions<4.6.0
18
+ urllib3<2.0.0,>=1.26.7
19
+ xgboost
20
+
21
+ [docs]
22
+ sphinx-rtd-theme
23
+ sphinx<7
24
+ sphinx_autodoc_typehints
25
+
26
+ [intel]
27
+ scikit-learn-intelex
@@ -0,0 +1,3 @@
1
+ pgsui
2
+ simulation
3
+ test