Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
32bab25
Two dif MF
RosCraddock Jan 4, 2026
142fd5b
Merge pull request #4 from RosCraddock/feat_pheno_info
XingerTang Feb 11, 2026
364a3bc
Added an x_chr example #199
gregorgorjanc Feb 25, 2026
3f46cfd
reset the defalt seg probs#199
AprilYUZhang Mar 3, 2026
7f08b30
fix the probability of geno and so on #199 #215 #225
AprilYUZhang Mar 3, 2026
29af0dc
Metafounders, alt_allele_prob, and name changes
RosCraddock Mar 9, 2026
5278f16
Merge remote-tracking branch 'RosCraddock/feat_pheno_info' into upstr…
XingerTang Mar 9, 2026
0412048
update tinyhouse reference
RosCraddock Mar 9, 2026
228574c
Apply suggestion from @AprilYUZhang
AprilYUZhang Mar 17, 2026
d466daf
Minor refinements AlphaGenes/AlphaPeel#233
XingerTang Mar 19, 2026
1129f7a
Merge remote-tracking branch 'upstream/devel' into feat/issue-225-imp…
AprilYUZhang Mar 26, 2026
bff0801
Improve technical instruction AlphaGenes/AlphaPeel#230\n Add -version…
XingerTang Apr 1, 2026
3060d06
Fix AlphaGenes/AlphaPeel#238
XingerTang Apr 16, 2026
32d0f30
fix/issue-244-code-cleanup AlphaGenes#244
XingerTang Apr 21, 2026
5313505
Fix AlphaGenes/AlphaPeel#250 remove multi-io option
XingerTang Apr 21, 2026
9a1a5ee
Add SER and PER AlphaGenes/AlphaPeel#255
XingerTang Apr 30, 2026
ec62a5c
squash 'set sex=None default', 'update true-results of x chr simulati…
AprilYUZhang Mar 26, 2026
660c12d
Merge remote-tracking branch 'refs/remotes/origin/devel' into feat/is…
AprilYUZhang May 7, 2026
3a8a2db
Merge pull request #226 from AprilYUZhang/feat/issue-225-improve-xchr…
AprilYUZhang May 7, 2026
1dc52cc
remove sequence file#257
AprilYUZhang May 18, 2026
69955c4
Fix accuracy report table AlphaGenes/AlphaPeel#259
XingerTang May 18, 2026
7a8f305
Fix issue #260
RosCraddock May 18, 2026
674ae6b
Fix issue 266 warnings
XingerTang May 21, 2026
ef61eab
Fix issue 252 params output
XingerTang May 26, 2026
76085a3
Add option for output rounding digits AlphaGenes/AlphaPeel#271
XingerTang May 29, 2026
667f063
Update documentation and help message
XingerTang Jun 1, 2026
06bdbb1
Extending MAF limits per issue #276
RosCraddock Jun 2, 2026
86248a4
Update input options -phased_geno_prob, -hap_file, remove -reference
XingerTang Jun 12, 2026
f7b9a0e
Issue AlphaGenes/AlphaPeel#280 file formats
XingerTang Jul 1, 2026
9ab959c
Fix issue AlphaGenes/AlphaPeel#286 remove plink io
XingerTang Jul 2, 2026
72c4af8
Refactoring functional tests
XingerTang Jul 7, 2026
a686e29
Fix pytest warnings
XingerTang Jul 8, 2026
277091d
Simplify accuracy test report
XingerTang Jul 8, 2026
5a954ff
Proper hybrid test
XingerTang Jul 9, 2026
5f0463a
Update test workflow
XingerTang Jul 9, 2026
623030e
Shorten the list of Python versions
XingerTang Jul 9, 2026
8823ee1
Update flake8 configuration
XingerTang Jul 9, 2026
582733a
Test older version Python with older OS images
XingerTang Jul 9, 2026
ca0c758
Python 3.6 is not well-supported
XingerTang Jul 9, 2026
8127d10
Update requirement
XingerTang Jul 9, 2026
8602a4f
Limit support to python >= 3.8
XingerTang Jul 9, 2026
819a905
Fix rounding for alt_allele_prob output
XingerTang Jul 9, 2026
d00c440
Ignore first two rows of seg files & special case for hap file of x_c…
XingerTang Jul 9, 2026
7cd10ee
Add gen-wise abs_diff and correct_rate output of seg_prob
XingerTang Jul 10, 2026
e51cacc
Refactor utils.py
XingerTang Jul 10, 2026
9743ce2
Add SER and relevant metrics for hap
XingerTang Jul 10, 2026
ff8df9a
Add runtime and visualization
XingerTang Jul 10, 2026
6c98360
Add SER and relevant metrics for hap
XingerTang Jul 10, 2026
d789707
Ignore uncalled hap & update docs on accu report
XingerTang Jul 13, 2026
19d930c
Refactor argument reassignment
XingerTang Jul 13, 2026
b31081a
Regrouped the argument option parser
XingerTang Jul 13, 2026
6eef1d7
Remove unused functions
XingerTang Jul 13, 2026
505154a
Remove commented code
XingerTang Jul 13, 2026
be97756
Remove peelingInfo maf and PointSeg for memory optimisation
XingerTang Jul 14, 2026
29ee4a3
Remove peelingInfo genotyped
XingerTang Jul 14, 2026
56088d4
Reduce 4 family terms to 2
XingerTang Jul 14, 2026
ba7ad66
Optimise integer types
XingerTang Jul 15, 2026
ca4adc2
Minor updates
XingerTang Jul 15, 2026
95a5598
Reordering array slicing for efficiency
XingerTang Jul 16, 2026
81fe458
Change variable name from penetranceState to penetranceProb
XingerTang Jul 16, 2026
c1b400a
Optimise MAF updates
XingerTang Jul 16, 2026
28ca700
Refactor peeling code for runtime optimisation
XingerTang Jul 17, 2026
bf593ba
Refactoring IO and XChr related code
XingerTang Jul 17, 2026
3578ec5
Renaming variables in snake_case style for naming consistency
XingerTang Jul 20, 2026
3115821
Clean up docstring and comments
XingerTang Jul 21, 2026
290dc2d
Fix mismatched
XingerTang Jul 21, 2026
6d3dee5
update pheno_penetrance_prob_file related message
XingerTang Jul 21, 2026
8cb2984
Update peeling_updates based on Pylint suggestions
XingerTang Jul 21, 2026
a78fb9c
Refactor peeling_io and version based on Pylint suggestions
XingerTang Jul 22, 2026
61bde9f
Refactor peeling based on Pylint suggestions
XingerTang Jul 22, 2026
a9a903e
Finish refactoring of peeling/ based on the Pylint suggestions
XingerTang Jul 22, 2026
383a216
Update pyproject
XingerTang Jul 22, 2026
b5e5e3f
Refactor tinypeel.py based on Pylint suggestions
XingerTang Jul 22, 2026
841d583
locus-parallel first draft
XingerTang Jul 28, 2026
dd9d84d
Finalise locus-based multi-threading
XingerTang Jul 30, 2026
326b020
Update doc for the multi-thread options
XingerTang Jul 31, 2026
8e34661
Update docs
XingerTang Jul 31, 2026
8d7f542
Update and add new sections for testing_and_profiling docs
XingerTang Aug 3, 2026
b29d7fb
Add profiling instruction & multi-thread test
XingerTang Aug 4, 2026
f65436c
Pylint test code
XingerTang Aug 4, 2026
17ac314
Fix Github runner warnings
XingerTang Aug 4, 2026
b0c1190
Fix GitHub runner warning 2
XingerTang Aug 5, 2026
3c6a8be
Pylint conftest.py
XingerTang Aug 5, 2026
74c3a83
Pylint all files
XingerTang Aug 5, 2026
d435acb
Update Changelog
XingerTang Aug 5, 2026
f5bf2c1
Bumped version to 1.4.0
XingerTang Aug 6, 2026
a539a54
Update pyproject.toml and changelog
XingerTang Aug 7, 2026
d6bb908
Release v1.4.0
XingerTang Aug 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ max-line-length = 88
extend-ignore =
# also the Black's default, whitespace before ':'
E203,
# for the missing whitespace after ',', csv files need to have no whitespace after the comma
# also for the missing whitespace after ':', which is used in website links and f-string formatting
E231,
# this is for the line length, all the lines too long are comments now
E501
1 change: 0 additions & 1 deletion .gitattribute

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
environment: release

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: "3.x"

Expand All @@ -31,14 +31,14 @@ jobs:
- name: Build SDist and wheel
run: python3 -m build

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
path: dist/*

- name: Check metadata
run: pipx run twine check dist/*

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v7
with:
name: artifact
path: dist
Expand All @@ -47,4 +47,3 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1


34 changes: 24 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,36 @@ on: [push, pull_request]
jobs:
pre-commit_and_pytest:
name: Run pre-commit and pytest
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
strategy:
matrix:
os: [ubuntu-latest, Windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
permissions:
contents: read

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- uses: actions/checkout@v5
with:
python-version: "3.11.x"

- uses: pre-commit/action@v3.0.0
name: Run pre-commit
fetch-depth: 1
fetch-tags: false
show-progress: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
pip-version: "25.0.1"

- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install pre-commit
run: python -m pip install pre-commit

- name: Run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files

- name: Install pypa/build
run: >-
Expand All @@ -36,7 +50,7 @@ jobs:
run: python3 -m build

- name: Install AlphaPeel
run: pip install dist/alphapeel-1.3.0-py3-none-any.whl
run: pip install dist/alphapeel-1.4.0-py3-none-any.whl

- name: Install pytest
run: |
Expand All @@ -45,4 +59,4 @@ jobs:

- name: Run pytest
run: |
pytest
pytest
34 changes: 19 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
*.pyo
*.pyc
dist
bin
__pycache__/
*.py[cod]
.Rproj.user
.pytest_cache
*.DS_Store
*.egg-info/
*.py[cod]
*.pyo
*.pyc
**/.RData
**/.Rhistory
**/*.Rproj
**/segfile.txt
.vscode
AlphaPeel
AlphaPeel_env
bin
dist
build/
docs/build/
example/outputs
AlphaPeel_env
tests/functional_tests/**/outputs/
tests/functional_tests/**/outputs/**
example/simple_*/*_output.*
tests/accuracy_tests/accu_report.txt
tests/accuracy_tests/outputs*
tests/accuracy_tests/reports*
tests/accuracy_tests/outputs/
tests/accuracy_tests/outputs/**
.pytest_cache
tests/accuracy_tests/accu_report.txt
.Rproj.user
**/.RData
**/.Rhistory
**/*.Rproj
**/segfile.txt
tests/accuracy_tests/sim_for_alphapeel_accu_test/seg_file.txt
tests/functional_tests/**/outputs/
tests/functional_tests/**/outputs/**
71 changes: 0 additions & 71 deletions Changelog.md

This file was deleted.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ Whalen, A, Ros-Freixedes, R, Wilson, DL, Gorjanc, G, Hickey, JM. (2018). Hybrid

See https://alphapeel.readthedocs.io/en/latest

Quick links:

- [Installation](https://alphapeel.readthedocs.io/en/latest/get_started.html#install-software)

- [Simple example](https://alphapeel.readthedocs.io/en/latest/get_started.html#an-example)

- [How to use](https://alphapeel.readthedocs.io/en/latest/usage.html)

- [Algorithm](https://alphapeel.readthedocs.io/en/latest/algorithm.html)

## Conditions of use

AlphaPeel is fully and freely available for all use under the MIT License.
Expand Down
Loading