Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 0 additions & 19 deletions .github/workflows/build.yml

This file was deleted.

11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
Expand All @@ -15,11 +15,4 @@ jobs:
- name: Typecheck
run: make typecheck
- name: Test with pytest
run: make coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
run: make coverage
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Co-clustering for mass spectrometry peptide analysis

![Build](https://github.com/meyer-lab/resistance-MS/workflows/Build/badge.svg)
![Test](https://github.com/meyer-lab/resistance-MS/workflows/Test/badge.svg)

Clusters peptides based on both sequence similarity and phosphorylation signal across samples.

This repository contains the implementation of dual data and motif clustering (DDMC), described in:

> Creixell M, Meyer AS. [Dual data and motif clustering improves the modeling and interpretation of phosphoproteomic data](https://pubmed.ncbi.nlm.nih.gov/35360705/). *Cell Rep Methods*. 2022 Feb 28;2(2):100167. doi: [10.1016/j.crmeth.2022.100167](https://doi.org/10.1016/j.crmeth.2022.100167)

**Abstract:** Cell signaling is orchestrated in part through a network of protein kinases and phosphatases. Dysregulation of kinase signaling is widespread in diseases such as cancer and is readily targetable through inhibitors. Mass spectrometry-based analysis can provide a global view of kinase regulation, but mining these data is complicated by its stochastic coverage of the proteome, measurement of substrates rather than kinases, and the scale of the data. Here, we implement a dual data and motif clustering (DDMC) strategy that simultaneously clusters peptides into similarly regulated groups based on their variation and their sequence profile. We show that this can help to identify putative upstream kinases and supply more robust clustering. We apply this clustering to clinical proteomic profiling of lung cancer and identify conserved proteomic signatures of tumorigenicity, genetic mutations, and immune infiltration. We propose that DDMC provides a general and flexible clustering strategy for the analysis of phosphoproteomic data.


## Usage

Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ testprofile:
uv run python3 -m cProfile -o profile -m pytest -s -v -x
gprof2dot -f pstats --node-thres=5.0 profile | dot -Tsvg -o profile.svg

coverage.xml:
uv run pytest --cov=ddmc --cov-report=xml
coverage:
uv run pytest --cov=ddmc --cov-report=term

clean:
rm -rf *.pdf pylint.log output
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ description = ""
authors = [{ name = "Aaron Meyer", email = "git@asmlab.org" }]
license = "MIT"
readme = "README.md"
requires-python = ">=3.11,<3.13"
requires-python = ">=3.12"
dependencies = [
"scipy>=1.16",
"matplotlib>=3.10",
"seaborn>=0.13.2",
"svgutils>=0.3.4",
"pandas>=2.2.3",
"pandas>=3",
"panflute>=2.3.1",
"biopython>=1.85",
"scikit-learn>=1.5",
Expand Down Expand Up @@ -41,11 +41,11 @@ fbuild = "ddmc.figures.common:genFigure"
packages = ["ddmc"]

[tool.ruff]
target-version = "py311"
target-version = "py312"

[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = ["E501"]

[tool.ty.environment]
python-version = "3.11"
python-version = "3.12"
Loading
Loading