Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
606aaec
pyarrow force 18.0.0
ypriverol Dec 1, 2024
4e4b8bb
testing
ypriverol Dec 1, 2024
740b4ab
remove ms2rescore.py
ypriverol Dec 1, 2024
7183557
remove ms2rescore.py
ypriverol Dec 1, 2024
08da89b
remove ms2rescore.py
ypriverol Dec 1, 2024
80d8184
remove ms2rescore.py
ypriverol Dec 1, 2024
582d648
remove ms2rescore.py
ypriverol Dec 1, 2024
7a7c8c3
remove ms2rescore.py
ypriverol Dec 1, 2024
2b11f90
remove ms2rescore.py
ypriverol Dec 1, 2024
6d7da40
remove ms2rescore.py
ypriverol Dec 2, 2024
502761e
remove ms2rescore.py
ypriverol Dec 2, 2024
2590939
remove ms2rescore.py
ypriverol Dec 2, 2024
6d82424
remove ms2rescore.py
ypriverol Dec 2, 2024
2d6e634
remove ms2rescore.py
ypriverol Dec 2, 2024
a8ac9f4
remove ms2rescore.py
ypriverol Dec 2, 2024
d18b101
latest versions for all packages
ypriverol Dec 2, 2024
0ae008e
latest versions for all packages
ypriverol Dec 2, 2024
1b4188d
latest versions for all packages
ypriverol Dec 2, 2024
1c2d051
major update on tests
ypriverol Dec 2, 2024
af9b247
constants.py created.
ypriverol Dec 2, 2024
d8bc225
constants.py created.
ypriverol Dec 2, 2024
03ac3af
constants.py created.
ypriverol Dec 2, 2024
5b9ef64
constants.py created.
ypriverol Dec 2, 2024
b200964
constants.py created.
ypriverol Dec 2, 2024
422d9da
constants.py created.
ypriverol Dec 3, 2024
fe54ec5
constants.py created.
ypriverol Dec 3, 2024
1cf33b1
constants.py created.
ypriverol Dec 3, 2024
75a98e9
constants.py created.
ypriverol Dec 3, 2024
6b9a2b1
major changes in batch processing.
ypriverol Dec 3, 2024
9f54092
fix bug.
ypriverol Dec 3, 2024
f180cca
major changes in batch processing and remove ms2rescore.py
ypriverol Dec 1, 2024
2980bb6
Merge remote-tracking branch 'origin/dev' into dev
ypriverol Dec 3, 2024
8c4c822
minor cleaning tool.
ypriverol Dec 3, 2024
b5773c7
minor cleaning tool.
ypriverol Dec 3, 2024
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/conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
cache-downloads: true
auto-update-conda: false
activate-environment: test
python-version: "3.10"
python-version: "3.9"

- name: Setup conda-build and anaconda-client
run: |
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
poetry run pytest
- name: Download test data
run: |
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
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
- name: Test percolator ms2rescore
run: |
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
poetry run pytest
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ The following functionalities are available in the package:
- `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).
- `checksamplesheet` - Check the sample sheet for errors and inconsistencies. The experimental design coult be an OpenMS experimental design file or and SDRF file.

### ms2rescore scripts

- `ms2rescore` - Rescore MS2 spectra using the MS2PIP model. The output is a mzML file with the rescored MS2 spectra.

### Features to percolator scripts

- `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'.
Expand Down
10 changes: 2 additions & 8 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ channels:
dependencies:
- click
- sdrf-pipelines>=0.0.31
- pyopenms>=2.4.0
- pyopenms
- pandas
- numpy
- pyarrow
- ms2rescore=3.0.3
- deepLC=2.2.38
- psm-utils=0.8.3
- scipy=1.13.1
- pygam
- protobuf=3.19.6
- scipy
14 changes: 4 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "quantms-utils"
description = "Python scripts and helpers for the quantMS workflow"
readme = "README.md"
license = "MIT"
version = "0.0.16"
version = "0.0.17"
authors = [
"Yasset Perez-Riverol <[email protected]>",
"Dai Chengxin <[email protected]>",
Expand All @@ -29,19 +29,13 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
python = "*"
click = "*"
sdrf-pipelines = ">=0.0.31"
pyopenms = ">=2.4.0"
ms2rescore = "3.0.3"
pyopenms = "*"
pandas = "*"
numpy = "*"
pyarrow = "*"
psm-utils = "0.8.3"
deepLC = "2.2.38"
scipy = "1.13.1"
pygam = "*"
protobuf= "3.19.6"
scipy = "*"

[tool.poetry.urls]
GitHub = "https://github.com/bigbio/quantms-utils"
Expand Down
2 changes: 1 addition & 1 deletion quantmsutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.16"
__version__ = "0.0.17"
6 changes: 3 additions & 3 deletions quantmsutils/mzml/mzml_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def _write_batch(self):
where=self.output_path, schema=self.parquet_schema, compression="gzip"
)

# Create a RecordBatch directly from the current batch
batch = pa.RecordBatch.from_pylist(self.batch_data, schema=self.parquet_schema)
# Create a Table directly from the current batch
batch = pa.Table.from_pylist(self.batch_data, schema=self.parquet_schema)

# Write the batch directly
self.parquet_writer.write_batch(batch)
Expand All @@ -158,7 +158,7 @@ def _write_batch(self):
compression="gzip",
)

id_batch = pa.RecordBatch.from_pylist(
id_batch = pa.Table.from_pylist(
self.psm_parts, schema=self.id_parquet_schema
)
self.id_parquet_writer.write_batch(id_batch)
Expand Down
2 changes: 0 additions & 2 deletions quantmsutils/quantmsutilsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from quantmsutils.features.sage_feature import add_sage_feature
from quantmsutils.mzml.mzml_statistics import mzml_statistics
from quantmsutils.psm.psm_conversion import convert_psm
from quantmsutils.rescoring.ms2rescore import ms2rescore
from quantmsutils.sdrf.check_samplesheet import checksamplesheet
from quantmsutils.sdrf.extract_sample import extract_sample_from_expdesign
from quantmsutils.features.snr import spectrum2feature
Expand All @@ -28,7 +27,6 @@ def cli():
cli.add_command(mzml_statistics)
cli.add_command(extract_sample_from_expdesign)
cli.add_command(checksamplesheet)
cli.add_command(ms2rescore)
cli.add_command(convert_psm)
cli.add_command(spectrum2feature)

Expand Down
Empty file removed quantmsutils/rescoring/__init__.py
Empty file.
Loading
Loading