You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mdSAM: Discovery of self-assembly motifs regulating membrane-protein organization and function
Analysis notebooks and figure panels for the manuscript Discovery of self-assembly motifs regulating membrane-protein organization and function (Elazar, Trivedi, et al., Babu lab, St. Jude Children's Research Hospital).
Abstract
While cell-surface clustering of membrane proteins is central to numerous processes, its molecular determinants remain elusive. We postulated that peptide motifs within disordered regions of transmembrane proteins may drive self-association and clustering and developed an approach to identify them. Analysis of the human proteome revealed that one-fifth of membrane proteins (945 proteins; >1,400 motifs), including receptors and transporters, contain motifs that we term mdSAMs (membrane-disordered Self-Assembly Motifs). Biophysical, biochemical, structural, and cell-based analyses of mdSAMs in model and native membrane proteins demonstrate that mdSAMs can drive self-assembly and clustering. In the serotonin receptor HTR7, a single mdSAM-disrupting substitution alters nanoscale organization, attenuates basal and agonist-induced signaling, and shifts the transcriptional state of the cell. Notably, mdSAM sequences are unique, which might enable discrimination of self from non‑self during self‑assembly, yet conserved among orthologs, underscoring their relevance. These findings reveal a widespread mechanism linking membrane-protein self-assembly to cell-surface organization and function.
What is an mdSAM?
An mdSAM (membrane-disordered Self-Assembly Motif) is a short peptide motif, usually 7-9 residues (median 8), located in an intrinsically disordered, solvent-exposed region of a transmembrane protein, that is predicted to self-assemble through beta-strand-mediated, amyloid-like interactions. The working hypothesis is that mdSAMs provide weak, sequence-specific self-association that can cluster membrane proteins at the cell surface.
How mdSAMs are identified
A random-forest classifier is trained on WALTZ-DB 2.0 (1,402 hexapeptides: 510 amyloid-forming, 892 non-forming) using the one-hot-encoded hexapeptide sequence plus the summed beta-strand free energy (F1 = 0.77, stratified 5-fold cross-validation).
Every hexapeptide window in human membrane proteins is scored; positive windows are Self-Assembly Motifs (SAMs).
A SAM is called an mdSAM if it lies in a disordered region: AlphaFold pLDDT < 70, non-helical and solvent exposed, excluding transmembrane segments and signal peptides. A ROC-derived threshold on consecutive positive windows sets the high-confidence set (Fig. S1I).
What was found. 1,425 high-confidence mdSAMs in 945 membrane proteins (about 20% of the 4,886 human membrane proteins analysed), 91% of them in N- or C-terminal tails, and 72% of mdSAM-containing proteins carry a single motif. Of 44 synthesised mdSAM peptides, 36 (81%) gave Thioflavin-T signal above buffer; in the eight peptides tested, proline substitutions reduced the signal, abolishing it in seven; cryo-EM showed ordered fibrils. In cells, mdSAMs increase surface puncta density of a synthetic scaffold and of native full-length proteins. In the serotonin receptor HTR7, the V451P substitution in the C-terminal mdSAM (VSVWVLQS) changes nanoscale cluster organisation, lowers basal and agonist-induced cAMP signalling (Emax reduced by 25%) and shifts the transcriptional state of the cell. mdSAM sequences are diverse and unique, and conserved among orthologs.
Naming: older notebooks call these motifs dSAM (disordered SAM) and refer to the structured-region counterpart as mSAM/sSAM/msSAM. dSAM in a file name or variable means mdSAM.
Repository contents
notebooks/ the 23 analysis notebooks listed below, numbered in pipeline order (outputs cleared)
files/ shared input tables read by the notebooks (see files/README.md)
What each notebook does
Cell numbers are 0-based indices into the notebook (as in the cells list of the .ipynb).
Data preparation and classifier
Notebook
Task
Paper panels
01_train_waltzdb_classifier.ipynb
Trains and evaluates the random-forest classifier on WALTZ-DB 2.0 hexapeptides (one-hot sequence + summed beta-strand energy); reports test-set counts, stratified K-fold ROC and the beta-strand energy distributions. Saves the trained model.
Fig 1D; S1E-G
02_alphafold_residue_table_and_early_plots.ipynb
Builds the shared AlphaFold-derived residue table (AF2_with_ENSG.pkl, cell 205) used by most other notebooks; remaining cells hold earlier versions of exploratory plots.
(input table)
03_mdsam_sequence_logos.ipynb
Sequence logos and composition of mdSAMs and SAMs in membrane proteins (logomaker); also builds hTMs_uniprot_v1.pkl and AF_IDR_v3.pkl. Contains additional gnomAD analyses that are not part of the paper figures.
S1H
Discovery and diversity (Figs 1-2, S1-S2)
Notebook
Task
Paper panels
04_pasta_aggregation_comparison.ipynb
Compares mdSAM predictions with PASTA energies and an aggregation threshold on windows around WALTZ-DB hexapeptides; ROC for the number of consecutive positive windows.
S1I-J
05_uniprot_keyword_enrichment.ipynb
UniProt keyword enrichment (observed minus expected, FDR) for mdSAM-containing membrane proteins: biological process, molecular function, disease.
Fig 1G; S1K
06_mdsam_sequence_space_embedding.ipynb
Embeds the mdSAM sequence space from physicochemical features, colours it by composition, clusters it (GMM) with keyword enrichment, draws the charge-archetype ternary plot, the dot matrix of mdSAM-containing proteins and the pairwise Levenshtein-distance analysis.
Fig 1F, 2F-I, 3A; S2E-G
07_hyperlopit_organelle_enrichment.ipynb
Re-analyses the hyperLOPIT subcellular fractionation (U2OS): fraction profiles, t-SNE and Gaussian-mixture organelle assignment, and mdSAM enrichment per organelle.
Fig 2A; S2A-C
08_mdsam_topology_and_membrane_distance.ipynb
Topology of mdSAM-containing proteins: number of TM segments (bitopic vs polytopic), N-/C-terminus vs loop, distance to the nearest membrane leaflet, number and length of mdSAMs.
Fig 2B-F
09_mdsams_per_protein.ipynb
Histogram of mdSAMs per protein (1, 2, 3 or more).
Fig 2E
In vitro self-assembly (Fig 3, S3)
Notebook
Task
Paper panels
10_tht_peptide_screen_96well.ipynb
Thioflavin-T screen of mdSAM peptides in 96-well plates: per-peptide intensities, spectra, wild-type vs proline-mutant plates, overlay on the charge-archetype ternary plot.
Fig 3A-B; S3A, S3C
11_tht_gpcr_peptides_proline_mutants.ipynb
ThT of GPCR mdSAM peptides (HTR7, CCR4, DRD1) and their proline mutants, including HTR7 V451P.
Fig 4C, 5B; S3C
12_amytracker_peptides.ipynb
Amytracker 520 fluorescence (100 uM) of wild-type and proline-mutant peptides.
Fig 4C; S3D
Cell-based clustering (Figs 4-5, S5-S6)
Notebook
Task
Paper panels
13_tirf_puncta_poisson_glm.ipynb
Poisson generalised linear model on CellProfiler cell and puncta tables: puncta per cell area and rate ratio (WT/mutant) per protein and cell line (HEK, U2OS), SNAPtm motif swaps, full-length APP and HTR7.
Fig 4C-D, 5E; S5C
14_flow_cytometry_total_vs_surface.ipynb
Flow cytometry (FCS files): total and surface SNAP signal for wild-type vs mutant constructs by DNA amount, with percentile gating against mock cells.
S6A
15_biogrid_interactions_by_mdsam.ipynb
BioGRID analysis of membrane-protein interactions by mdSAM status: self-interactions and plasma-membrane interaction networks with hypergeometric and binomial tests. Contains further interaction analyses that are not part of the paper figures.
S6B-C
16_dstorm_htr7_cluster_analysis.ipynb
dSTORM cluster analysis: ThunderSTORM localisation tables, Voronoi thresholding against randomised points, HDBSCAN clustering, cluster size and density stratified by local density, bootstrap of WT-vs-V451P skewness (tail-heaviness) for HTR7. Also holds earlier SNAPtm/APP analyses that are not part of the paper figures.
Fig 5F-G
HTR7 signalling and transcription (Fig 6)
Notebook
Task
Paper panels
17_htr7_camp_emax_ec50_and_expression_plots.ipynb
HTR7 cAMP Emax and EC50 comparison between WT and V451P; per-protein total- and surface-expression plots with a mixed model adjusted for total expression.
Fig 6D; S6A
18_htr7_rnaseq_pca_volcano.ipynb
RNA-seq PCA and volcano plots from DESeq2 tables (HTR7 WT, V451P, empty vector).
Fig 6E
19_htr7_rnaseq_gsea.ipynb
Re-runs differential expression (pyDESeq2) and gene-set enrichment (gseapy) for the HTR7 RNA-seq data; heatmaps and volcano plots.
supports Fig 6E
Evolution (Fig 7, S7)
Notebook
Task
Paper panels
20_conservation_alignment_based.ipynb
Alignment-based conservation (Kullback-Leibler, Shannon, Lockless; pycanal) of mdSAMs vs disordered and structured residues; retention of mdSAMs in one-to-one orthologs vs alignment depth.
Fig 7B; S7A-B
21_conservation_esm_embedding.ipynb
Alignment-free conservation from protein language-model embeddings for mdSAMs, random IDR segments, ELM motifs and structured residues.
Fig 7B
22_ortholog_peptide_tht.ipynb
ThT of NGFR and TNFRSF13C ortholog mdSAM peptides (wild type and proline mutant) across species.
Fig 7D; S7C
23_overlap_with_larks_wirs_finches.ipynb
Overlap of mdSAM-containing membrane proteins with LARKS, WIRS and FINCHES-predicted fuzzy interactions (UpSet plot).
S7D
Where the paper figures come from
Each row points to the notebook and cell that draws the panel. Cell numbers are 0-based indices into the notebook. Notebooks are distributed with outputs cleared; run a notebook to regenerate the plot. Final figures are in the paper.
Figure 1: Discovery of mdSAMs
Panel
Content
Notebook (cell)
1D
RF classifier test-set performance (amyloid vs non-amyloid)
01_train_waltzdb_classifier.ipynb (cell 26)
1F
Dot matrix: membrane proteins with predicted mdSAMs
Panels that are schematics, microscopy or EM images, NMR or mass-photometry data, or were produced outside these notebooks are not listed.
Running the notebooks
The notebooks are distributed with their outputs cleared.
The notebooks were written for an interactive session and read three shared tables from files/ (dSAM_MPs_v_paper_v2_new_locs.pkl, hTMs_uniprot_v1.pkl, AF2_with_ENSG.pkl); see files/README.md. Run each notebook with notebooks/ as the working directory. Some notebooks still read other intermediate files that are not in this repository. Public inputs are WALTZ-DB 2.0, the AlphaFold human-proteome table of N. Davey (github.com/normandavey/ProcessedAlphafold), UniProt, the hyperLOPIT data (Thul et al., 2017), BioGRID 4.4.x, PANTHER 17 and GTEx v8. Supplementary data files accompany the paper.
Python packages imported by these notebooks (pip names can differ from import names): Bio, Levenshtein, PIL, PyPDF2, adjustText, bokeh, cmasher, fcsparser, geopandas, gseapy, holoviews, intersect, iupred2a_lib, joblib, localcider, logomaker, matplotlib, matplotlib_venn, mycolorpy, networkx, numpy, pandas, plotly, pyaaisc, pycanal, pydeseq2, radialtree, rdfpy, ripleyk, sanbomics, scanpy, scipy, seaborn, shapely, sklearn, statsmodels, ternary, tqdm, umap, uncertainties, upsetplot. iupred2a_lib, pyaaisc and intersect are local modules rather than PyPI packages.