Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
bef7ef2
add peptide pool reader
Jhsmit Dec 10, 2025
fb48d2c
add narwhals dep
Jhsmit Dec 10, 2025
fe60b2c
aggregate hd examiner
Jhsmit Dec 10, 2025
1843631
test script (to be removed)
Jhsmit Dec 10, 2025
d123cfa
add hd examiner input type
Jhsmit Dec 10, 2025
ff4c415
update contructor to take 031 datasets
Jhsmit Dec 11, 2025
2ad2544
classmethod takes cls parameter
Jhsmit Dec 11, 2025
0822176
some parts of hdexaminer data input are now working
Jhsmit Dec 11, 2025
7662776
remove old constructor method
Jhsmit Dec 16, 2025
4c7bdb2
pull loading peptides out into function
Jhsmit Dec 16, 2025
9eb073f
load full dataset, reuse fd control if missing in some states
Jhsmit Dec 16, 2025
5b91077
add openHDX test data
Jhsmit Dec 16, 2025
41cc6e9
parse states directly
Jhsmit Dec 16, 2025
e918e0b
make hdxmeasurementset also accept list of states
Jhsmit Dec 16, 2025
e92d1a3
add example of loading from hdxms-datasets State objects
Jhsmit Dec 16, 2025
fac671d
update initial guesses example
Jhsmit Dec 16, 2025
fb40b4b
fix: rename to state
Jhsmit Dec 16, 2025
3a8aa96
remove spec download button
Jhsmit Dec 16, 2025
7416ffd
adapt to loading v031 datasets
Jhsmit Dec 16, 2025
da5bc14
update cli commands
Jhsmit Dec 16, 2025
1c3bec7
load via HDXmeasurementSet
Jhsmit Dec 16, 2025
5fcc94e
add main app for testing
Jhsmit Dec 16, 2025
d6970b1
allow use of openHDX datasets via .zip file
Jhsmit Dec 16, 2025
938ffb0
add missing compute step to yield uptake from cluster files
Jhsmit Dec 16, 2025
f7d6f78
update tests
Jhsmit Dec 16, 2025
aed08ba
update single controller test script
Jhsmit Dec 16, 2025
e437bff
remove duplicate line
Jhsmit Dec 16, 2025
f0ca5e4
add development docs
Jhsmit Dec 16, 2025
17e14b4
delete old file
Jhsmit Dec 16, 2025
0506e6a
update template
Jhsmit Dec 16, 2025
5feaaa6
loading from dataset
Jhsmit Dec 16, 2025
1af27dc
drop nulls
Jhsmit Dec 17, 2025
48f28c1
add dataclass for manual entries
Jhsmit Dec 17, 2025
e5ce6f5
rename add_dataset_button to add_measurement_button for clarity
Jhsmit Dec 17, 2025
e117dca
time conversion is done by hdxms-datasets
Jhsmit Dec 17, 2025
e65c083
remove outdate state spec
Jhsmit Dec 17, 2025
5522c59
fix manually adding data
Jhsmit Dec 17, 2025
81ac81c
rerun fitting example
Jhsmit Dec 17, 2025
adce3dd
rerun docs examples
Jhsmit Dec 17, 2025
957ea65
add reading to narwhals dataframe method
Jhsmit Dec 17, 2025
52ed5e7
clean up imports
Jhsmit Dec 17, 2025
873a89d
remove filter_peptides in favour of the one in pyhdx.legacy
Jhsmit Dec 17, 2025
151a6c9
removed unused import
Jhsmit Dec 17, 2025
2ecf1d2
allow passing d_percentage as kwarg
Jhsmit Dec 17, 2025
73796dc
update d fit output to correct for not including t=0
Jhsmit Dec 17, 2025
4bdaee5
fix tests
Jhsmit Dec 17, 2025
25705bd
allow passing d percentage
Jhsmit Dec 17, 2025
d7beacc
remove unused import of filter_peptides
Jhsmit Dec 17, 2025
cfe079d
fix gui tests
Jhsmit Dec 17, 2025
4edcb89
docs: fix spelling
Jhsmit Dec 17, 2025
bde0dda
add testing .zip file
Jhsmit Dec 17, 2025
bb937f5
update GUI test data
Jhsmit Dec 17, 2025
a51f9b9
bump hdxms-datasets requirement
Jhsmit Dec 17, 2025
b1b6dee
support python versions 3.11 and 3.12
Jhsmit Dec 17, 2025
ed7154c
dont use conda install
Jhsmit Dec 17, 2025
e17bebb
update requirements for python 3.11 and 3.12
Jhsmit Dec 17, 2025
c7e3eb1
fix python version lower bound
Jhsmit Dec 17, 2025
7f4c4f9
support py311 only
Jhsmit Dec 17, 2025
d5f4d42
ruff auto fix
Jhsmit Dec 17, 2025
2dd8d04
bump hdxms-datasets requirement
Jhsmit Dec 17, 2025
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: 1 addition & 1 deletion .github/workflows/pin_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install Hatch
run: pip install hatch
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Configure Git
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest"]
python-version: [ "3.10", "3.11" ]
python-version: [ "3.11", ]

runs-on: ${{ matrix.os }}
steps:
Expand Down
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ With web interface extra:
$ uv pip install pyhdx[web]
```

(Not recommended - outdated version)
Conda install (includes web interface extra):

```bash
Expand Down Expand Up @@ -110,3 +111,28 @@ Create a new release and distribute to PyPI:

- Create new release on GitHub
- GitHub workflow builds and publishes to PyPI


### Panel web interface development

Working on a controller only:
```bash
panel serve pyhdx\web\controller_only.py --dev
```

Working on the main app:
```bash
panel serve pyhdx\web\apps\_main.py --dev
```

Make sure to also run a dask cluster if needed:
```bash
python pyhdx\local_cluster.py
```



#### Other

Installing a specific commit of the HDX-MS-datasets package:
# uv pip install "git+https://github.com/jhsmit/hdxms-datasets@5fa2458e6115329ae921a319e3e87b6cb21814ff"
3 changes: 0 additions & 3 deletions dev/gui/dev_gui_secB.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
sys._excepthook = sys.excepthook


sys._excepthook = sys.excepthook


import traceback as tb


Expand Down
14 changes: 7 additions & 7 deletions docs/examples/01_basic_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"from pyhdx.datasets import read_dynamx\n",
"from pyhdx.fileIO import read_dynamx\n",
"from pyhdx.models import HDXMeasurement\n",
"from pyhdx.process import filter_peptides, apply_control, correct_d_uptake\n",
"from pyhdx.process import apply_control, correct_d_uptake, filter_peptides_unitless\n",
"from pyhdx.plot import peptide_coverage\n",
"import ultraplot as uplt\n",
"from pathlib import Path"
Expand Down Expand Up @@ -235,7 +235,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {
"collapsed": false
},
Expand All @@ -253,7 +253,7 @@
],
"source": [
"# Filter out peptides for the full deuteration control\n",
"fd_df = filter_peptides(data, state=\"Full deuteration control\", exposure=60 * 0.167)\n",
"fd_df = filter_peptides_unitless(data, state=\"Full deuteration control\", exposure=60 * 0.167)\n",
"fd_df[\"state\"].unique(), fd_df[\"exposure\"].unique()"
]
},
Expand All @@ -268,7 +268,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"collapsed": false
},
Expand All @@ -287,7 +287,7 @@
}
],
"source": [
"peptides = filter_peptides(data, state=\"SecB WT apo\", query=[\"exposure > 0.\"])\n",
"peptides = filter_peptides_unitless(data, state=\"SecB WT apo\", query=[\"exposure > 0.\"])\n",
"peptides[\"state\"].unique(), peptides[\"exposure\"].unique()"
]
},
Expand Down
25 changes: 16 additions & 9 deletions docs/examples/02_coverage_and_d_uptake_fit.ipynb

Large diffs are not rendered by default.

Loading
Loading