Skip to content

Commit 4a97fe0

Browse files
authored
Update to hdxms-datasets version 0.3.3 (#379)
* add peptide pool reader * add narwhals dep * aggregate hd examiner * test script (to be removed) * add hd examiner input type * update contructor to take 031 datasets * classmethod takes cls parameter * some parts of hdexaminer data input are now working * remove old constructor method * pull loading peptides out into function * load full dataset, reuse fd control if missing in some states * add openHDX test data * parse states directly * make hdxmeasurementset also accept list of states * add example of loading from hdxms-datasets State objects * update initial guesses example * fix: rename to state * remove spec download button * adapt to loading v031 datasets * update cli commands * load via HDXmeasurementSet * add main app for testing * allow use of openHDX datasets via .zip file * add missing compute step to yield uptake from cluster files * update tests * update single controller test script * remove duplicate line * add development docs * delete old file * update template * loading from dataset * drop nulls * add dataclass for manual entries * rename add_dataset_button to add_measurement_button for clarity * time conversion is done by hdxms-datasets * remove outdate state spec * fix manually adding data * rerun fitting example * rerun docs examples * add reading to narwhals dataframe method * clean up imports * remove filter_peptides in favour of the one in pyhdx.legacy * removed unused import * allow passing d_percentage as kwarg * update d fit output to correct for not including t=0 * fix tests * allow passing d percentage * remove unused import of filter_peptides * fix gui tests * docs: fix spelling * add testing .zip file * update GUI test data * bump hdxms-datasets requirement * support python versions 3.11 and 3.12 * dont use conda install * update requirements for python 3.11 and 3.12 * fix python version lower bound * support py311 only * ruff auto fix * bump hdxms-datasets requirement
1 parent 02ac8a5 commit 4a97fe0

File tree

87 files changed

+18881
-12639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+18881
-12639
lines changed

.github/workflows/pin_requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python-version: ["3.10", "3.11", "3.12"]
13+
python-version: ["3.11", "3.12"]
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v3

.github/workflows/pypi_main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
14-
- name: Set up Python 3.10
14+
- name: Set up Python 3.11
1515
uses: actions/setup-python@v4
1616
with:
17-
python-version: "3.10"
17+
python-version: "3.11"
1818
- name: Install Hatch
1919
run: pip install hatch
2020
- name: Build

.github/workflows/pypi_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414

15-
- name: Set up Python 3.10
15+
- name: Set up Python 3.11
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.10"
18+
python-version: "3.11"
1919

2020
- name: Configure Git
2121
run: |

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ "ubuntu-latest", "macos-latest", "windows-latest"]
12-
python-version: [ "3.10", "3.11" ]
12+
python-version: [ "3.11", ]
1313

1414
runs-on: ${{ matrix.os }}
1515
steps:

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ With web interface extra:
4949
$ uv pip install pyhdx[web]
5050
```
5151

52+
(Not recommended - outdated version)
5253
Conda install (includes web interface extra):
5354

5455
```bash
@@ -110,3 +111,28 @@ Create a new release and distribute to PyPI:
110111

111112
- Create new release on GitHub
112113
- GitHub workflow builds and publishes to PyPI
114+
115+
116+
### Panel web interface development
117+
118+
Working on a controller only:
119+
```bash
120+
panel serve pyhdx\web\controller_only.py --dev
121+
```
122+
123+
Working on the main app:
124+
```bash
125+
panel serve pyhdx\web\apps\_main.py --dev
126+
```
127+
128+
Make sure to also run a dask cluster if needed:
129+
```bash
130+
python pyhdx\local_cluster.py
131+
```
132+
133+
134+
135+
#### Other
136+
137+
Installing a specific commit of the HDX-MS-datasets package:
138+
# uv pip install "git+https://github.com/jhsmit/hdxms-datasets@5fa2458e6115329ae921a319e3e87b6cb21814ff"

dev/gui/dev_gui_secB.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
sys._excepthook = sys.excepthook
3434

3535

36-
sys._excepthook = sys.excepthook
37-
38-
3936
import traceback as tb
4037

4138

docs/examples/01_basic_usage.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 11,
14+
"execution_count": null,
1515
"metadata": {
1616
"collapsed": false
1717
},
1818
"outputs": [],
1919
"source": [
20-
"from pyhdx.datasets import read_dynamx\n",
20+
"from pyhdx.fileIO import read_dynamx\n",
2121
"from pyhdx.models import HDXMeasurement\n",
22-
"from pyhdx.process import filter_peptides, apply_control, correct_d_uptake\n",
22+
"from pyhdx.process import apply_control, correct_d_uptake, filter_peptides_unitless\n",
2323
"from pyhdx.plot import peptide_coverage\n",
2424
"import ultraplot as uplt\n",
2525
"from pathlib import Path"
@@ -235,7 +235,7 @@
235235
},
236236
{
237237
"cell_type": "code",
238-
"execution_count": 3,
238+
"execution_count": null,
239239
"metadata": {
240240
"collapsed": false
241241
},
@@ -253,7 +253,7 @@
253253
],
254254
"source": [
255255
"# Filter out peptides for the full deuteration control\n",
256-
"fd_df = filter_peptides(data, state=\"Full deuteration control\", exposure=60 * 0.167)\n",
256+
"fd_df = filter_peptides_unitless(data, state=\"Full deuteration control\", exposure=60 * 0.167)\n",
257257
"fd_df[\"state\"].unique(), fd_df[\"exposure\"].unique()"
258258
]
259259
},
@@ -268,7 +268,7 @@
268268
},
269269
{
270270
"cell_type": "code",
271-
"execution_count": 4,
271+
"execution_count": null,
272272
"metadata": {
273273
"collapsed": false
274274
},
@@ -287,7 +287,7 @@
287287
}
288288
],
289289
"source": [
290-
"peptides = filter_peptides(data, state=\"SecB WT apo\", query=[\"exposure > 0.\"])\n",
290+
"peptides = filter_peptides_unitless(data, state=\"SecB WT apo\", query=[\"exposure > 0.\"])\n",
291291
"peptides[\"state\"].unique(), peptides[\"exposure\"].unique()"
292292
]
293293
},

docs/examples/02_coverage_and_d_uptake_fit.ipynb

Lines changed: 16 additions & 9 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)