snplib 1.0.7__tar.gz → 1.0.9__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 (101) hide show
  1. snplib-1.0.9/.github/workflows/linux.yml +34 -0
  2. snplib-1.0.9/.github/workflows/macos.yml +34 -0
  3. snplib-1.0.9/.github/workflows/windows.yml +34 -0
  4. snplib-1.0.9/.gitignore +25 -0
  5. snplib-1.0.9/.readthedocs.yaml +39 -0
  6. {snplib-1.0.7 → snplib-1.0.9}/LICENSE +674 -674
  7. {snplib-1.0.7/src/snplib.egg-info → snplib-1.0.9}/PKG-INFO +80 -97
  8. {snplib-1.0.7 → snplib-1.0.9}/README.md +59 -75
  9. snplib-1.0.9/__init__.py +0 -0
  10. snplib-1.0.9/docs/Makefile +20 -0
  11. snplib-1.0.9/docs/conf.py +56 -0
  12. snplib-1.0.9/docs/examples.rst +647 -0
  13. snplib-1.0.9/docs/index.rst +23 -0
  14. snplib-1.0.9/docs/install.rst +26 -0
  15. snplib-1.0.9/docs/intro.rst +15 -0
  16. snplib-1.0.9/docs/logo.png +0 -0
  17. snplib-1.0.9/docs/make.bat +35 -0
  18. snplib-1.0.9/docs/modules.rst +7 -0
  19. snplib-1.0.9/docs/requirements.txt +2 -0
  20. snplib-1.0.9/docs/snplib.finalreport.rst +9 -0
  21. snplib-1.0.9/docs/snplib.format.rst +10 -0
  22. snplib-1.0.9/docs/snplib.parentage.rst +12 -0
  23. snplib-1.0.9/docs/snplib.rst +12 -0
  24. snplib-1.0.9/docs/snplib.statistics.rst +13 -0
  25. snplib-1.0.9/docs/usage.rst +26 -0
  26. snplib-1.0.9/iconlib.png +0 -0
  27. {snplib-1.0.7 → snplib-1.0.9}/pyproject.toml +44 -32
  28. snplib-1.0.9/requirements.txt +12 -0
  29. {snplib-1.0.7 → snplib-1.0.9}/setup.cfg +4 -4
  30. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/__init__.py +8 -8
  31. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/finalreport/__init__.py +7 -7
  32. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/finalreport/_finalreport.py +251 -251
  33. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/format/__init__.py +19 -19
  34. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/format/__settings.py +7 -7
  35. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/format/_plink.py +291 -305
  36. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/format/_snp.py +113 -113
  37. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/parentage/__init__.py +15 -15
  38. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/parentage/_discov.py +102 -102
  39. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/parentage/_isagmark.py +15 -15
  40. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/parentage/_verif.py +91 -91
  41. snplib-1.0.9/src/snplib/parentage/isag_disc.pl +0 -0
  42. snplib-1.0.9/src/snplib/parentage/isag_verif.pl +0 -0
  43. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/statistics/__init__.py +16 -16
  44. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/statistics/_callrate.py +60 -59
  45. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/statistics/_freq.py +67 -67
  46. {snplib-1.0.7 → snplib-1.0.9}/src/snplib/statistics/_snphwe.py +132 -132
  47. {snplib-1.0.7 → snplib-1.0.9/src/snplib.egg-info}/PKG-INFO +80 -97
  48. snplib-1.0.9/src/snplib.egg-info/SOURCES.txt +98 -0
  49. {snplib-1.0.7 → snplib-1.0.9}/src/snplib.egg-info/requires.txt +0 -1
  50. snplib-1.0.9/tests/__init__.py +0 -0
  51. {snplib-1.0.7/src/snplib/finalreport/tests → snplib-1.0.9/tests/finalreport}/__init__.py +7 -7
  52. snplib-1.0.9/tests/finalreport/files/fr/file1.txt +28 -0
  53. snplib-1.0.9/tests/finalreport/files/fr/file1.xlsx +0 -0
  54. snplib-1.0.9/tests/finalreport/files/fr/file2.txt +21 -0
  55. snplib-1.0.9/tests/finalreport/files/fr/file2.xlsx +0 -0
  56. snplib-1.0.9/tests/finalreport/files/fr/file3.txt +10 -0
  57. snplib-1.0.9/tests/finalreport/files/fr/file3.xlsx +0 -0
  58. snplib-1.0.9/tests/finalreport/files/fr/file4.txt +16 -0
  59. snplib-1.0.9/tests/finalreport/files/fr/file5.txt +0 -0
  60. snplib-1.0.9/tests/finalreport/files/fr/file5.xlsx +0 -0
  61. snplib-1.0.9/tests/finalreport/files/fr/file6.txt +28 -0
  62. snplib-1.0.9/tests/finalreport/files/fr/file6.xlsx +0 -0
  63. snplib-1.0.9/tests/finalreport/files/fr/file7.txt +28 -0
  64. snplib-1.0.9/tests/finalreport/files/fr/file7.xlsx +0 -0
  65. {snplib-1.0.7/src/snplib/finalreport/tests → snplib-1.0.9/tests/finalreport}/test_finalreport.py +215 -215
  66. {snplib-1.0.7/src/snplib/format/tests → snplib-1.0.9/tests/format}/__init__.py +7 -7
  67. snplib-1.0.9/tests/format/files/fplink/fam/file.pl +0 -0
  68. snplib-1.0.9/tests/format/files/fplink/fam/file2.pl +0 -0
  69. snplib-1.0.9/tests/format/files/fplink/fam/file3.pl +0 -0
  70. snplib-1.0.9/tests/format/files/fplink/fam/file4.pl +0 -0
  71. snplib-1.0.9/tests/format/files/fplink/lgen/file.pl +0 -0
  72. snplib-1.0.9/tests/format/files/fplink/map/file_bovinesnp50.csv +31 -0
  73. snplib-1.0.9/tests/format/files/fplink/ped/file.pl +0 -0
  74. snplib-1.0.9/tests/format/files/fplink/ped/file2.pl +0 -0
  75. snplib-1.0.9/tests/format/files/fplink/ped/file3.pl +0 -0
  76. snplib-1.0.9/tests/format/files/fplink/ped/file4.pl +0 -0
  77. snplib-1.0.9/tests/format/files/fsnp/file1.txt +35 -0
  78. snplib-1.0.9/tests/format/files/fsnp/file2.txt +35 -0
  79. {snplib-1.0.7/src/snplib/format/tests → snplib-1.0.9/tests/format}/test_plink_fam.py +121 -121
  80. {snplib-1.0.7/src/snplib/format/tests → snplib-1.0.9/tests/format}/test_plink_lgen.py +106 -106
  81. {snplib-1.0.7/src/snplib/format/tests → snplib-1.0.9/tests/format}/test_plink_map.py +42 -42
  82. {snplib-1.0.7/src/snplib/format/tests → snplib-1.0.9/tests/format}/test_plink_ped.py +136 -136
  83. {snplib-1.0.7/src/snplib/format/tests → snplib-1.0.9/tests/format}/test_snp.py +128 -128
  84. {snplib-1.0.7/src/snplib/parentage/tests → snplib-1.0.9/tests/parentage}/__init__.py +7 -7
  85. snplib-1.0.9/tests/parentage/data/parentage_test_disc.csv +623 -0
  86. snplib-1.0.9/tests/parentage/data/parentage_test_verf.csv +245 -0
  87. {snplib-1.0.7/src/snplib/parentage/tests → snplib-1.0.9/tests/parentage}/test_discov.py +164 -164
  88. {snplib-1.0.7/src/snplib/parentage/tests → snplib-1.0.9/tests/parentage}/test_verif.py +160 -160
  89. {snplib-1.0.7/src/snplib/statistics/tests → snplib-1.0.9/tests/statistics}/__init__.py +7 -7
  90. snplib-1.0.9/tests/statistics/data/cr/file_cra.pl +0 -0
  91. snplib-1.0.9/tests/statistics/data/cr/file_crm.pl +0 -0
  92. snplib-1.0.9/tests/statistics/data/freq/etalon.txt +8 -0
  93. snplib-1.0.9/tests/statistics/data/freq/file.pl +0 -0
  94. {snplib-1.0.7/src/snplib/statistics/tests → snplib-1.0.9/tests/statistics}/test_callrate.py +171 -171
  95. {snplib-1.0.7/src/snplib/statistics/tests → snplib-1.0.9/tests/statistics}/test_freq_allele.py +87 -87
  96. {snplib-1.0.7/src/snplib/statistics/tests → snplib-1.0.9/tests/statistics}/test_freq_maf.py +17 -17
  97. {snplib-1.0.7/src/snplib/statistics/tests → snplib-1.0.9/tests/statistics}/test_hwe_t.py +41 -41
  98. {snplib-1.0.7/src/snplib/statistics/tests → snplib-1.0.9/tests/statistics}/test_snphwe.py +41 -41
  99. snplib-1.0.7/src/snplib.egg-info/SOURCES.txt +0 -40
  100. {snplib-1.0.7 → snplib-1.0.9}/src/snplib.egg-info/dependency_links.txt +0 -0
  101. {snplib-1.0.7 → snplib-1.0.9}/src/snplib.egg-info/top_level.txt +0 -0
@@ -0,0 +1,34 @@
1
+ name: Test on Linux
2
+
3
+ on:
4
+ push:
5
+ branches: ["dev_v1"]
6
+
7
+ pull_request:
8
+ branches: ["main"]
9
+
10
+
11
+ jobs:
12
+ test_lin:
13
+
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+
18
+ matrix:
19
+ python-version: ["3.10", "3.11", "3.12"]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v3
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+
28
+ - name: Install dependencies
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ pip install -r requirements.txt
32
+
33
+ - name: Test with pytest
34
+ run: pytest
@@ -0,0 +1,34 @@
1
+ name: Test on MacOs
2
+
3
+ on:
4
+ push:
5
+ branches: ["dev_v1"]
6
+
7
+ pull_request:
8
+ branches: ["main"]
9
+
10
+
11
+ jobs:
12
+ test_mac:
13
+
14
+ runs-on: macos-latest
15
+ strategy:
16
+ fail-fast: false
17
+
18
+ matrix:
19
+ python-version: ['3.10', '3.11', '3.12']
20
+
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v3
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+
28
+ - name: Install dependencies
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ pip install -r requirements.txt
32
+
33
+ - name: Test with pytest
34
+ run: pytest
@@ -0,0 +1,34 @@
1
+ name: Test on Windows
2
+
3
+ on:
4
+ push:
5
+ branches: ["dev_v1"]
6
+
7
+ pull_request:
8
+ branches: ["main"]
9
+
10
+
11
+ jobs:
12
+ test_wind:
13
+
14
+ runs-on: windows-latest
15
+ strategy:
16
+ fail-fast: false
17
+
18
+ matrix:
19
+ python-version: ['3.10', '3.11', '3.12']
20
+
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v3
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+
28
+ - name: Install dependencies
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ pip install -r requirements.txt
32
+
33
+ - name: Test with pytest
34
+ run: pytest
@@ -0,0 +1,25 @@
1
+ /.venv
2
+
3
+ *.bz2
4
+ *.jpg
5
+ *.log
6
+ *.html
7
+ *.rar
8
+ *.zip
9
+ *.txt
10
+ *.csv
11
+ *.npz
12
+ *.xlsx
13
+ *.7z
14
+ *.ipynb
15
+ *.docx
16
+
17
+ !requirements.txt
18
+ !/tests/*/**
19
+ !/docs/*/**
20
+
21
+ *.idea*
22
+ *__pycache__*
23
+ *.pytest_cache*
24
+ *.ipynb_checkpoints*
25
+
@@ -0,0 +1,39 @@
1
+ # Read the Docs configuration file for Sphinx projects
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version and other tools you might need
8
+ build:
9
+ os: ubuntu-22.04
10
+ tools:
11
+ python: "3.12"
12
+ # You can also specify other tool versions:
13
+ # nodejs: "20"
14
+ # rust: "1.70"
15
+ # golang: "1.20"
16
+
17
+ # Build documentation in the "docs/" directory with Sphinx
18
+ sphinx:
19
+ builder: html
20
+ configuration: docs/conf.py
21
+ fail_on_warning: true
22
+ # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
23
+ # builder: "dirhtml"
24
+ # Fail on all warnings to avoid broken references
25
+ # fail_on_warning: true
26
+
27
+ # Optionally build your docs in additional formats such as PDF and ePub
28
+ # formats:
29
+ # - pdf
30
+ # - epub
31
+
32
+ # Optional but recommended, declare the Python requirements required
33
+ # to build your documentation
34
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
35
+ python:
36
+ install:
37
+ - requirements: docs/requirements.txt
38
+ - method: pip
39
+ path: .