Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
597e90f
pynem 0.6.0 backend option
rsiminel Jul 1, 2026
5a0c4bc
use pynem only
rsiminel Aug 25, 2026
dc5c47a
remove NEM tmp files
rsiminel Aug 25, 2026
3fff4bc
pure python wheel
rsiminel Sep 25, 2026
bb04755
one numba thread per worker
rsiminel Oct 28, 2026
a245c46
fork-safe numba threading layer
rsiminel Oct 29, 2026
da07a64
one blas thread per worker
rsiminel Oct 29, 2026
43e4698
full precision on edge weights
rsiminel Aug 25, 2026
dba1798
slice NEM input from index
rsiminel Aug 25, 2026
cb80d7c
remove globals
rsiminel Oct 15, 2026
1e7a43d
re-seed rarefaction workers
rsiminel Oct 15, 2026
c1fa2aa
remove remaining inits
rsiminel Oct 16, 2026
ce9b7f9
dup
rsiminel Oct 16, 2026
d457087
create nem_input.py
rsiminel Oct 16, 2026
ad61965
rename pynem_backend to model
rsiminel Oct 16, 2026
28c4acd
rename unclear variables
rsiminel Oct 16, 2026
ed4dc9c
NemInput dataclass
rsiminel Oct 16, 2026
1bda955
create NemResult and KScore dataclass
rsiminel Oct 16, 2026
8d753ad
split solve() for clarity
rsiminel Oct 16, 2026
4ed5f64
split nem_input for clarity
rsiminel Oct 16, 2026
05ce494
shared chunking mechanics
rsiminel Oct 16, 2026
bd8f799
split evaluate_nb_partitions for clarity
rsiminel Oct 16, 2026
13799db
split partition() + options dataclass
rsiminel Oct 16, 2026
d403bba
split draw_curve() for clarity
rsiminel Oct 16, 2026
b23b291
split make_rarefaction_curve()
rsiminel Oct 16, 2026
59ca928
api docs
rsiminel Oct 16, 2026
dcbb0a4
lint and docstrings
rsiminel Oct 16, 2026
0b4b421
add RarefactionOptions dataclass
rsiminel Oct 16, 2026
e12043f
inherit nem index
rsiminel Oct 16, 2026
db05379
create NemSettings
rsiminel Oct 21, 2026
2a67e01
improvements
rsiminel Oct 21, 2026
c6dd669
drop defaults redundant with argparse
rsiminel Oct 21, 2026
40e3495
pynem[fast] dependency
rsiminel Oct 28, 2026
ec57627
private krange
rsiminel Oct 16, 2026
2258538
sorted genomes for rarefaction samples
rsiminel Oct 28, 2026
37349ee
score every k on one nem input
rsiminel Oct 29, 2026
8f6c77d
score the first k before forking
rsiminel Oct 29, 2026
21dba2c
merge withs
rsiminel Nov 17, 2026
567e670
limit main threads
rsiminel Nov 17, 2026
76027a8
forksafe on use
rsiminel Nov 17, 2026
c916da8
dependencies
rsiminel Nov 17, 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
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- 'VERSION'
- 'ppanggolin_env.yaml'
- 'pyproject.toml'
- 'setup.py'
pull_request:
branches:
- '*'
Expand All @@ -30,7 +29,6 @@ on:
- 'VERSION'
- 'ppanggolin_env.yaml'
- 'pyproject.toml'
- 'setup.py'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
43 changes: 8 additions & 35 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,48 +30,22 @@ on:
- released # Run only on release events, use 'published' to run on draft or pre-release

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-14 is an Apple Silicon runner
# Should we support Linux ARM? If so, add 'ubuntu-24.04-arm'
# macos 13 is not supported by github anymore.
os: [ubuntu-latest, macos-14, ubuntu-24.04-arm]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.23.0
# We skip:
# - 32-bit builds
# - PyPy builds (check if ppanggolin works on PyPy first)
env:
CIBW_SKIP: "*_i686 pp*"

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
build:
name: Build sdist and wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist
- name: Build sdist and wheel
run: pipx run build

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz
name: dist
path: dist/*

upload_pypi:
needs: [build_wheels, build_sdist]
needs: [build]
runs-on: ubuntu-latest
environment: pypi
permissions:
Expand All @@ -81,9 +55,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
name: dist
path: dist
merge-multiple: true

- name: Publish to PyPI
if: (github.event_name == 'release' && github.event.action == 'released') || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi == 'true')
Expand Down
18 changes: 18 additions & 0 deletions docs/api/ppanggolin.nem.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

## Submodules

## ppanggolin.nem.model module

```{eval-rst}
.. automodule:: ppanggolin.nem.model
:members:
:undoc-members:
:show-inheritance:
```

## ppanggolin.nem.nem_input module

```{eval-rst}
.. automodule:: ppanggolin.nem.nem_input
:members:
:undoc-members:
:show-inheritance:
```

## ppanggolin.nem.partition module

```{eval-rst}
Expand Down
54 changes: 0 additions & 54 deletions ppanggolin/nem/NEM/genmemo.c

This file was deleted.

49 changes: 0 additions & 49 deletions ppanggolin/nem/NEM/genmemo.h

This file was deleted.

Loading
Loading