Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
eb8cdff
Refactoring functional tests
XingerTang Jul 7, 2026
0ef79a9
Fix pytest warnings
XingerTang Jul 8, 2026
5bd3c0c
Simplify accuracy test report
XingerTang Jul 8, 2026
c187b62
Proper hybrid test
XingerTang Jul 9, 2026
ced4322
Update test workflow
XingerTang Jul 9, 2026
4712661
Shorten the list of Python versions
XingerTang Jul 9, 2026
eb1a6f2
Update flake8 configuration
XingerTang Jul 9, 2026
583252b
Test older version Python with older OS images
XingerTang Jul 9, 2026
b64d72b
Python 3.6 is not well-supported
XingerTang Jul 9, 2026
3ea4652
Update requirement
XingerTang Jul 9, 2026
6360ffb
Limit support to python >= 3.8
XingerTang Jul 9, 2026
58ff958
Fix rounding for alt_allele_prob output
XingerTang Jul 9, 2026
badef09
Ignore first two rows of seg files & special case for hap file of x_c…
XingerTang Jul 9, 2026
1f327ac
Add gen-wise abs_diff and correct_rate output of seg_prob
XingerTang Jul 10, 2026
6ded945
Refactor utils.py
XingerTang Jul 10, 2026
781f5c0
Add SER and relevant metrics for hap
XingerTang Jul 10, 2026
9ed5406
Add runtime and visualization
XingerTang Jul 10, 2026
897287f
Add SER and relevant metrics for hap
XingerTang Jul 10, 2026
8216678
Ignore uncalled hap & update docs on accu report
XingerTang Jul 13, 2026
28ef580
Refactor argument reassignment
XingerTang Jul 13, 2026
27ee3c5
Regrouped the argument option parser
XingerTang Jul 13, 2026
22c53a7
Remove unused functions
XingerTang Jul 13, 2026
782a144
Remove commented code
XingerTang Jul 13, 2026
36c0832
Remove peelingInfo maf and PointSeg for memory optimisation
XingerTang Jul 14, 2026
5c94978
Remove peelingInfo genotyped
XingerTang Jul 14, 2026
f016a2d
Reduce 4 family terms to 2
XingerTang Jul 14, 2026
b3ddf73
Optimise integer types
XingerTang Jul 15, 2026
d7034c2
Minor updates
XingerTang Jul 15, 2026
2d80159
Reordering array slicing for efficiency
XingerTang Jul 16, 2026
e1d633c
Change variable name from penetranceState to penetranceProb
XingerTang Jul 16, 2026
d0b3b98
Optimise MAF updates
XingerTang Jul 16, 2026
80842e4
Refactor peeling code for runtime optimisation
XingerTang Jul 17, 2026
5049fbb
Refactoring IO and XChr related code
XingerTang Jul 17, 2026
2fb05ac
Renaming variables in snake_case style for naming consistency
XingerTang Jul 20, 2026
4ca7861
Clean up docstring and comments
XingerTang Jul 21, 2026
73e9438
Fix mismatched
XingerTang Jul 21, 2026
18f6115
update pheno_penetrance_prob_file related message
XingerTang Jul 21, 2026
74349a3
Update peeling_updates based on Pylint suggestions
XingerTang Jul 21, 2026
5727f28
Refactor peeling_io and version based on Pylint suggestions
XingerTang Jul 22, 2026
5759edc
Refactor peeling based on Pylint suggestions
XingerTang Jul 22, 2026
a8f951f
Finish refactoring of peeling/ based on the Pylint suggestions
XingerTang Jul 22, 2026
1ecdb4a
Update pyproject
XingerTang Jul 22, 2026
0d080ba
Refactor tinypeel.py based on Pylint suggestions
XingerTang Jul 22, 2026
3dd7f7b
locus-parallel first draft
XingerTang Jul 28, 2026
79089e2
Finalise locus-based multi-threading
XingerTang Jul 30, 2026
b8208cc
Update doc for the multi-thread options
XingerTang Jul 31, 2026
8f1db22
Update docs
XingerTang Jul 31, 2026
ef647f0
Update and add new sections for testing_and_profiling docs
XingerTang Aug 3, 2026
6fd9054
Add profiling instruction & multi-thread test
XingerTang Aug 4, 2026
ab59965
Pylint test code
XingerTang Aug 4, 2026
421e44f
Fix Github runner warnings
XingerTang Aug 4, 2026
5d5a083
Fix GitHub runner warning 2
XingerTang Aug 5, 2026
54e983e
Pylint conftest.py
XingerTang Aug 5, 2026
334ee4a
Pylint all files
XingerTang Aug 5, 2026
35fe751
Update Changelog
XingerTang Aug 5, 2026
ba3ff82
Bumped version to 1.4.0
XingerTang Aug 6, 2026
e474267
Update pyproject.toml and changelog
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
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ __pycache__/
**/.Rhistory
**/*.Rproj
**/segfile.txt
.vscode
AlphaPeel
AlphaPeel_env
bin
Expand All @@ -19,6 +20,8 @@ docs/build/
example/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/**
tests/accuracy_tests/sim_for_alphapeel_accu_test/seg_file.txt
Expand Down
Loading