diploSHIC 1.0.6__tar.gz → 1.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.
- {diploshic-1.0.6/diploSHIC.egg-info → diploSHIC-1.0.7}/PKG-INFO +12 -11
- {diploshic-1.0.6 → diploSHIC-1.0.7}/README.md +6 -1
- {diploshic-1.0.6 → diploSHIC-1.0.7/diploSHIC.egg-info}/PKG-INFO +12 -11
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/fvTools.py +7 -2
- {diploshic-1.0.6 → diploSHIC-1.0.7}/pyproject.toml +1 -1
- diploSHIC-1.0.7/setup.py +47 -0
- diploshic-1.0.6/setup.py +0 -41
- {diploshic-1.0.6 → diploSHIC-1.0.7}/LICENSE +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/MANIFEST.in +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploSHIC.egg-info/SOURCES.txt +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploSHIC.egg-info/dependency_links.txt +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploSHIC.egg-info/not-zip-safe +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploSHIC.egg-info/requires.txt +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploSHIC.egg-info/top_level.txt +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/__init__.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/diploSHIC +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/generateSimLaunchScript.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/makeFeatureVecsForChrArmFromVcf_ogSHIC.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/makeFeatureVecsForSingleMsDiploid.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/makeFeatureVecsForSingleMs_ogSHIC.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/makeTrainingSets.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/misc.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/msTools.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/setup.py +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/shicstats.pyf +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/testing/hard.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/testing/linkedHard.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/testing/linkedSoft.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/testing/neut.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/testing/soft.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/training/hard.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/training/linkedHard.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/training/linkedSoft.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/training/neut.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/training/soft.fvec +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/diploshic/utils.c +0 -0
- {diploshic-1.0.6 → diploSHIC-1.0.7}/setup.cfg +0 -0
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: diploSHIC
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: diploSHIC
|
|
5
5
|
Home-page: https://github.com/kr-colab/diploSHIC
|
|
6
6
|
Author: Andrew Kern
|
|
7
7
|
Author-email: adkern@uoregon.edu
|
|
8
8
|
License: MIT
|
|
9
|
+
Platform: UNKNOWN
|
|
10
|
+
Requires-Python: <3.12,>=3.10
|
|
9
11
|
Description-Content-Type: text/markdown
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Requires-Dist: numpy
|
|
12
|
-
Requires-Dist: scipy
|
|
13
|
-
Requires-Dist: matplotlib
|
|
14
|
-
Requires-Dist: pandas
|
|
15
|
-
Requires-Dist: scikit-allel
|
|
16
|
-
Requires-Dist: scikit-learn
|
|
17
|
-
Requires-Dist: tensorflow==2.15.0
|
|
18
|
-
Requires-Dist: keras
|
|
19
12
|
Provides-Extra: dev
|
|
13
|
+
License-File: LICENSE
|
|
20
14
|
|
|
21
15
|
# diploS/HIC
|
|
22
16
|
This repo contains the implementation for `diploS/HIC` as described in Kern and Schrider (2018; https://doi.org/10.1534/g3.118.200262), along
|
|
@@ -45,7 +39,7 @@ I'm going to focus on the steps involved to install on a linux machine using Ana
|
|
|
45
39
|
package manager. Assuming you have conda installed, create a new conda env
|
|
46
40
|
|
|
47
41
|
```
|
|
48
|
-
$ conda create -n diploshic python=3.
|
|
42
|
+
$ conda create -n diploshic python=3.10 --yes
|
|
49
43
|
```
|
|
50
44
|
|
|
51
45
|
Note that because I'm using the Anaconda version of python, pip will only install this in the anaconda directory
|
|
@@ -69,6 +63,11 @@ You will need to determine if
|
|
|
69
63
|
you want to use a CPU-only implementation (probably) or a GPU implementation of tensorflow. See
|
|
70
64
|
https://www.tensorflow.org/install/install_linux for install instructions.
|
|
71
65
|
|
|
66
|
+
## Mac Installation
|
|
67
|
+
|
|
68
|
+
1. install new versions of the compilers etc using brew (this seems to be the root of the issue) `brew install gcc gfortran libomp`
|
|
69
|
+
2. set these environment variables export SYSTEM_VERSION_COMPAT=1 \\n && export LDFLAGS="-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
|
|
70
|
+
build the diploshic packge from the root of the repo dir with pip install .
|
|
72
71
|
|
|
73
72
|
## Usage
|
|
74
73
|
The main program that you will interface with is `diploSHIC`. This script is installed by default
|
|
@@ -359,3 +358,5 @@ the output predictions will be saved in `testEmpirical.preds` and should be stra
|
|
|
359
358
|
In the interest of showing the user the whole enchilada when it comes to the workflow, I've provided the user
|
|
360
359
|
with a more detailed example on the wiki of this repo. That example can be found here: https://github.com/kern-lab/diploSHIC/wiki/A-soup-to-nuts-example
|
|
361
360
|
|
|
361
|
+
|
|
362
|
+
|
|
@@ -25,7 +25,7 @@ I'm going to focus on the steps involved to install on a linux machine using Ana
|
|
|
25
25
|
package manager. Assuming you have conda installed, create a new conda env
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
$ conda create -n diploshic python=3.
|
|
28
|
+
$ conda create -n diploshic python=3.10 --yes
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Note that because I'm using the Anaconda version of python, pip will only install this in the anaconda directory
|
|
@@ -49,6 +49,11 @@ You will need to determine if
|
|
|
49
49
|
you want to use a CPU-only implementation (probably) or a GPU implementation of tensorflow. See
|
|
50
50
|
https://www.tensorflow.org/install/install_linux for install instructions.
|
|
51
51
|
|
|
52
|
+
## Mac Installation
|
|
53
|
+
|
|
54
|
+
1. install new versions of the compilers etc using brew (this seems to be the root of the issue) `brew install gcc gfortran libomp`
|
|
55
|
+
2. set these environment variables export SYSTEM_VERSION_COMPAT=1 \\n && export LDFLAGS="-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
|
|
56
|
+
build the diploshic packge from the root of the repo dir with pip install .
|
|
52
57
|
|
|
53
58
|
## Usage
|
|
54
59
|
The main program that you will interface with is `diploSHIC`. This script is installed by default
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: diploSHIC
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: diploSHIC
|
|
5
5
|
Home-page: https://github.com/kr-colab/diploSHIC
|
|
6
6
|
Author: Andrew Kern
|
|
7
7
|
Author-email: adkern@uoregon.edu
|
|
8
8
|
License: MIT
|
|
9
|
+
Platform: UNKNOWN
|
|
10
|
+
Requires-Python: <3.12,>=3.10
|
|
9
11
|
Description-Content-Type: text/markdown
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Requires-Dist: numpy
|
|
12
|
-
Requires-Dist: scipy
|
|
13
|
-
Requires-Dist: matplotlib
|
|
14
|
-
Requires-Dist: pandas
|
|
15
|
-
Requires-Dist: scikit-allel
|
|
16
|
-
Requires-Dist: scikit-learn
|
|
17
|
-
Requires-Dist: tensorflow==2.15.0
|
|
18
|
-
Requires-Dist: keras
|
|
19
12
|
Provides-Extra: dev
|
|
13
|
+
License-File: LICENSE
|
|
20
14
|
|
|
21
15
|
# diploS/HIC
|
|
22
16
|
This repo contains the implementation for `diploS/HIC` as described in Kern and Schrider (2018; https://doi.org/10.1534/g3.118.200262), along
|
|
@@ -45,7 +39,7 @@ I'm going to focus on the steps involved to install on a linux machine using Ana
|
|
|
45
39
|
package manager. Assuming you have conda installed, create a new conda env
|
|
46
40
|
|
|
47
41
|
```
|
|
48
|
-
$ conda create -n diploshic python=3.
|
|
42
|
+
$ conda create -n diploshic python=3.10 --yes
|
|
49
43
|
```
|
|
50
44
|
|
|
51
45
|
Note that because I'm using the Anaconda version of python, pip will only install this in the anaconda directory
|
|
@@ -69,6 +63,11 @@ You will need to determine if
|
|
|
69
63
|
you want to use a CPU-only implementation (probably) or a GPU implementation of tensorflow. See
|
|
70
64
|
https://www.tensorflow.org/install/install_linux for install instructions.
|
|
71
65
|
|
|
66
|
+
## Mac Installation
|
|
67
|
+
|
|
68
|
+
1. install new versions of the compilers etc using brew (this seems to be the root of the issue) `brew install gcc gfortran libomp`
|
|
69
|
+
2. set these environment variables export SYSTEM_VERSION_COMPAT=1 \\n && export LDFLAGS="-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
|
|
70
|
+
build the diploshic packge from the root of the repo dir with pip install .
|
|
72
71
|
|
|
73
72
|
## Usage
|
|
74
73
|
The main program that you will interface with is `diploSHIC`. This script is installed by default
|
|
@@ -359,3 +358,5 @@ the output predictions will be saved in `testEmpirical.preds` and should be stra
|
|
|
359
358
|
In the interest of showing the user the whole enchilada when it comes to the workflow, I've provided the user
|
|
360
359
|
with a more detailed example on the wiki of this repo. That example can be found here: https://github.com/kern-lab/diploSHIC/wiki/A-soup-to-nuts-example
|
|
361
360
|
|
|
361
|
+
|
|
362
|
+
|
|
@@ -252,6 +252,7 @@ def readFa(faFileName, upper=False):
|
|
|
252
252
|
fopen = open
|
|
253
253
|
with fopen(faFileName, "rt") as faFile:
|
|
254
254
|
reading = False
|
|
255
|
+
currChr = None
|
|
255
256
|
for line in faFile:
|
|
256
257
|
if line.startswith(">"):
|
|
257
258
|
if reading:
|
|
@@ -493,6 +494,10 @@ def readMaskDataForTraining(
|
|
|
493
494
|
readingMasks = False
|
|
494
495
|
isAccessible, isAccessibleArm = [], []
|
|
495
496
|
genoMaskInfo = []
|
|
497
|
+
currChr = None
|
|
498
|
+
genos = None
|
|
499
|
+
positions = None
|
|
500
|
+
positions2SnpIndices = None
|
|
496
501
|
with fopen(maskFileName, "rt") as maskFile:
|
|
497
502
|
for line in maskFile:
|
|
498
503
|
if line.startswith(">"):
|
|
@@ -916,7 +921,7 @@ def calcAndAppendStatValDiplo(
|
|
|
916
921
|
- statVals["pi"][instanceIndex][subWinIndex]
|
|
917
922
|
)
|
|
918
923
|
elif statName == "HapCount":
|
|
919
|
-
statVals[statName][instanceIndex].append(len(
|
|
924
|
+
statVals[statName][instanceIndex].append(len(genosInSubWin.distinct()))
|
|
920
925
|
elif statName == "nDiplos":
|
|
921
926
|
diplotypeCounts = dps.getHaplotypeFreqSpec(genosNAlt)
|
|
922
927
|
nDiplos = diplotypeCounts[genosNAlt.shape[1]]
|
|
@@ -1021,7 +1026,7 @@ def calcAndAppendStatValForScanDiplo(
|
|
|
1021
1026
|
)
|
|
1022
1027
|
elif statName == "HapCount":
|
|
1023
1028
|
# AK: undefined variables
|
|
1024
|
-
statVals[statName].append(len(
|
|
1029
|
+
statVals[statName].append(len(genosInSubWin.distinct()))
|
|
1025
1030
|
elif statName == "nDiplos":
|
|
1026
1031
|
diplotypeCounts = dps.getHaplotypeFreqSpec(genosNAlt)
|
|
1027
1032
|
nDiplos = diplotypeCounts[genosNAlt.shape[1]]
|
diploSHIC-1.0.7/setup.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
from numpy.distutils.core import Extension, setup
|
|
3
|
+
|
|
4
|
+
with open("README.md", "r") as fh:
|
|
5
|
+
long_description = fh.read()
|
|
6
|
+
|
|
7
|
+
shic_stats = Extension(
|
|
8
|
+
"diploshic.shicstats",
|
|
9
|
+
sources=["diploshic/shicstats.pyf", "diploshic/utils.c"],
|
|
10
|
+
)
|
|
11
|
+
setup(
|
|
12
|
+
name="diploSHIC",
|
|
13
|
+
version="1.0.7",
|
|
14
|
+
description="diploSHIC",
|
|
15
|
+
python_requires="<3.12,>=3.10",
|
|
16
|
+
long_description=long_description,
|
|
17
|
+
long_description_content_type="text/markdown",
|
|
18
|
+
url="https://github.com/kr-colab/diploSHIC",
|
|
19
|
+
author="Andrew Kern",
|
|
20
|
+
author_email="adkern@uoregon.edu",
|
|
21
|
+
license="MIT",
|
|
22
|
+
packages=["diploshic"],
|
|
23
|
+
install_requires=[
|
|
24
|
+
"numpy",
|
|
25
|
+
"scipy",
|
|
26
|
+
"matplotlib",
|
|
27
|
+
"pandas",
|
|
28
|
+
"scikit-allel",
|
|
29
|
+
"scikit-learn",
|
|
30
|
+
"tensorflow==2.15.0",
|
|
31
|
+
"keras",
|
|
32
|
+
],
|
|
33
|
+
scripts=[
|
|
34
|
+
"diploshic/diploSHIC",
|
|
35
|
+
"diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py",
|
|
36
|
+
"diploshic/makeFeatureVecsForChrArmFromVcf_ogSHIC.py",
|
|
37
|
+
"diploshic/makeFeatureVecsForSingleMsDiploid.py",
|
|
38
|
+
"diploshic/makeFeatureVecsForSingleMs_ogSHIC.py",
|
|
39
|
+
"diploshic/makeTrainingSets.py",
|
|
40
|
+
],
|
|
41
|
+
zip_safe=False,
|
|
42
|
+
extras_require={
|
|
43
|
+
"dev": [],
|
|
44
|
+
},
|
|
45
|
+
setup_requires=[],
|
|
46
|
+
ext_modules=[shic_stats],
|
|
47
|
+
)
|
diploshic-1.0.6/setup.py
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
from setuptools import setup
|
|
2
|
-
from numpy.distutils.core import Extension, setup
|
|
3
|
-
|
|
4
|
-
with open("README.md", "r") as fh:
|
|
5
|
-
long_description = fh.read()
|
|
6
|
-
|
|
7
|
-
shic_stats = Extension("diploshic.shicstats",
|
|
8
|
-
sources=["diploshic/shicstats.pyf",
|
|
9
|
-
"diploshic/utils.c"],
|
|
10
|
-
)
|
|
11
|
-
setup(name='diploSHIC',
|
|
12
|
-
version='1.0.6',
|
|
13
|
-
description='diploSHIC',
|
|
14
|
-
long_description=long_description,
|
|
15
|
-
long_description_content_type="text/markdown",
|
|
16
|
-
url='https://github.com/kr-colab/diploSHIC',
|
|
17
|
-
author='Andrew Kern',
|
|
18
|
-
author_email='adkern@uoregon.edu',
|
|
19
|
-
license='MIT',
|
|
20
|
-
packages=['diploshic'],
|
|
21
|
-
install_requires=['numpy',
|
|
22
|
-
'scipy',
|
|
23
|
-
'matplotlib',
|
|
24
|
-
'pandas',
|
|
25
|
-
'scikit-allel',
|
|
26
|
-
'scikit-learn',
|
|
27
|
-
'tensorflow==2.15.0',
|
|
28
|
-
'keras'],
|
|
29
|
-
scripts=['diploshic/diploSHIC',
|
|
30
|
-
'diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py',
|
|
31
|
-
'diploshic/makeFeatureVecsForChrArmFromVcf_ogSHIC.py',
|
|
32
|
-
'diploshic/makeFeatureVecsForSingleMsDiploid.py',
|
|
33
|
-
'diploshic/makeFeatureVecsForSingleMs_ogSHIC.py',
|
|
34
|
-
'diploshic/makeTrainingSets.py'],
|
|
35
|
-
zip_safe=False,
|
|
36
|
-
extras_require={
|
|
37
|
-
'dev': [],
|
|
38
|
-
},
|
|
39
|
-
setup_requires=[],
|
|
40
|
-
ext_modules=[shic_stats]
|
|
41
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|