Skip to content

Commit 4f2e41c

Browse files
authored
Merge pull request #39 from bigbio/dev
major refactoring about ms2rescore and pyarrow
2 parents e6f2d61 + b5773c7 commit 4f2e41c

29 files changed

+348
-21556
lines changed

.github/workflows/conda-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cache-downloads: true
2121
auto-update-conda: false
2222
activate-environment: test
23-
python-version: "3.10"
23+
python-version: "3.12"
2424

2525
- name: Setup conda-build and anaconda-client
2626
run: |

.github/workflows/python-app.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,4 @@ jobs:
3939
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4040
- name: Test with pytest
4141
run: |
42-
poetry run pytest
43-
- name: Download test data
44-
run: |
45-
wget https://ftp.pride.ebi.ac.uk/pub/databases/pride/resources/proteomes/quantms-ci-github/quantms-utils/TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.mzML
46-
wget https://ftp.pride.ebi.ac.uk/pub/databases/pride/resources/proteomes/quantms-ci-github/quantms-utils/TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01_comet.idXML
47-
- name: Test percolator ms2rescore
48-
run: |
49-
quantmsutilsc ms2rescore --psm_file TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01_comet.idXML --spectrum_path TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.mzML --processes 2 --ms2pip_model HCD2021 --feature_generators 'ms2pip,deeplc' --id_decoy_pattern ^rev --test_fdr 0.05
42+
poetry run pytest

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,7 @@ cython_debug/
162162
*_df.csv
163163
*.tsv
164164
/tests/test_data/hMICAL1_coiPAnP-N2-200_3Murea-1Mthiourea-200mMtcep_14733.d/
165+
/tests/test_data/diann2mztab/RD139_Narrow_UPS1_0_1fmol_inj1.mzML
166+
/tests/test_data/diann2mztab/RD139_Narrow_UPS1_0_1fmol_inj2.mzML
167+
/tests/test_data/diann2mztab/RD139_Narrow_UPS1_0_25fmol_inj1.mzML
168+
/tests/test_data/diann2mztab/RD139_Narrow_UPS1_0_25fmol_inj2.mzML

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ The following functionalities are available in the package:
2727
- `openms2sample` - Extra sample information from OpenMS experimental design file. An example of OpenMS experimental design file is available [here](https://github.com/bigbio/quantms-utils/blob/dev/tests/test_data/BSA_design_urls.tsv).
2828
- `checksamplesheet` - Check the sample sheet for errors and inconsistencies. The experimental design coult be an OpenMS experimental design file or and SDRF file.
2929

30-
### ms2rescore scripts
31-
32-
- `ms2rescore` - Rescore MS2 spectra using the MS2PIP model. The output is a mzML file with the rescored MS2 spectra.
33-
3430
### Features to percolator scripts
3531

3632
- `sage2feature` - The add_sage_feature function enhances an idXML file by appending additional features from a Sage feature table, excluding those generated by 'psm_file'.

environment.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ channels:
77
dependencies:
88
- click
99
- sdrf-pipelines>=0.0.31
10-
- pyopenms>=2.4.0
10+
- pyopenms>=3.2.0
1111
- pandas
12-
- numpy
13-
- pyarrow
14-
- ms2rescore=3.0.3
15-
- deepLC=2.2.38
16-
- psm-utils=0.8.3
17-
- scipy=1.13.1
18-
- pygam
19-
- protobuf=3.19.6
12+
- pyarrow>=16.1.0
13+
- scipy

pyproject.toml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "quantms-utils"
33
description = "Python scripts and helpers for the quantMS workflow"
44
readme = "README.md"
55
license = "MIT"
6-
version = "0.0.16"
6+
version = "0.0.17"
77
authors = [
88
"Yasset Perez-Riverol <[email protected]>",
99
"Dai Chengxin <[email protected]>",
@@ -29,19 +29,13 @@ packages = [
2929
]
3030

3131
[tool.poetry.dependencies]
32-
python = ">=3.8,<3.11"
32+
python = "*"
3333
click = "*"
3434
sdrf-pipelines = ">=0.0.31"
35-
pyopenms = ">=2.4.0"
36-
ms2rescore = "3.0.3"
35+
pyopenms = ">=3.2.0"
3736
pandas = "*"
38-
numpy = "*"
39-
pyarrow = "*"
40-
psm-utils = "0.8.3"
41-
deepLC = "2.2.38"
42-
scipy = "1.13.1"
43-
pygam = "*"
44-
protobuf= "3.19.6"
37+
pyarrow = ">=16.1.0"
38+
scipy = "*"
4539

4640
[tool.poetry.urls]
4741
GitHub = "https://github.com/bigbio/quantms-utils"

quantmsutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.16"
1+
__version__ = "0.0.17"

0 commit comments

Comments
 (0)