Datasets:

bilalsm commited on
Commit
fe8cc95
·
verified ·
1 Parent(s): 4c7391a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-nd-4.0
3
+ tags:
4
+ - spectravision
5
+ - msms
6
+ - proteomics
7
+ - vision
8
+ ---
9
+
10
+ # SpectraVision-Data
11
+ The paper is under review.
12
+
13
+ [[Github Repo](https://github.com/pcdslab/SpectraVision)] | [[Data Collection](https://huggingface.co/collections/SaeedLab/SpectraVision)] | [[Models](https://huggingface.co/SaeedLab/SpectraVision)]
14
+
15
+ ## Abstract
16
+
17
+ Converting irregularly spaced mass spectrometry (MS/MS) data into computable representation is a foundational architectural choice that sets the upper bound for both computational efficiency and model accuracy. Existing MS/MS representations for machine-learning (ML) models can be divided into two parts: (1) fine-grained binned vectors that preserve spectra resolution but are sparse; (2) transformer-sequence encoders that can avoid sparse binning but must process variable-length inputs with continuous, shift-sensitive m/z coordinates. Critically, both strategies trade computational efficiency for representation quality, creating significant time and memory bottlenecks. In this paper, we present SpectraVision, which encodes MS/MS spectra into compact image-tensors, preserves high-resolution m/z information and supports efficient learning. Efficacy of these image-tensors to extract spatial features from the spectrum image is demonstrated with a CNN model and a Vision Transformer to validate the ability of image-tensors to preserve long-range spectral dependencies. Both CNN and ViT models then exhibit superior Top-k peptide-retrieval accuracy when compared with binned-Vector and transformer-sequence encoders. An added advantage of SpectraVision based models, necessary for training large models, is usage of 87% fewer parameters (~6.4M versus 51.8M) than binned-vector approach. Zero-shot evaluation on multiple species, non-tryptic peptides, and immunopeptides showcases the robustness of vision-based models to extend and improve ML models for MS-based proteomics.
18
+
19
+ ## Dataset
20
+
21
+ - `training_data/`: 30 MassiveKB H5 files, 1,938,843 spectra.
22
+ - `inference_data/Massive-KB-v1_test_sorted.h5`: 107,713 held-out spectra.
23
+ - `inference_data/PXD017407_library_from_fdr_peptides_sorted.h5`: 2,301 additional spectra.
24
+
25
+ Each H5 file contains `peaks` (`[N, 200, 2]` m/z and intensity), `sequence`, `charge`, `precursor_mass` (precursor m/z), and `protein`. Peptide sequences can include the lowercase modification codes described in the code repository.
26
+
27
+ ## Download
28
+
29
+ With Python:
30
+
31
+ ```bash
32
+ python -m pip install huggingface_hub
33
+ python - <<'PY'
34
+ from huggingface_hub import snapshot_download
35
+
36
+ snapshot_download(
37
+ repo_id="SaeedLab/SpectraVision-Data",
38
+ repo_type="dataset",
39
+ local_dir="SpectraVision-Data",
40
+ )
41
+ PY
42
+ ```
43
+
44
+ Or with the [Hugging Face CLI](https://huggingface.co/docs/huggingface_hub/guides/cli):
45
+
46
+ ```bash
47
+ hf download SaeedLab/SpectraVision-Data --repo-type dataset --local-dir SpectraVision-Data
48
+ ```
49
+ ## License
50
+
51
+ This model and associated code are released under the CC-BY-NC-ND 4.0 license and may only be used for non-commercial, academic research purposes with proper attribution. Any commercial use, sale, or other monetization of this model and its derivatives, which include models trained on outputs from the model or datasets created from the model, is prohibited and requires prior approval. Downloading the model requires prior registration on Hugging Face and agreeing to the terms of use. By downloading this model, you agree not to distribute, publish or reproduce a copy of the model. If another user within your organization wishes to use the model, they must register as an individual user and agree to comply with the terms of use. Users may not attempt to re-identify the deidentified data used to develop the underlying model. If you are a commercial entity, please contact the corresponding author.
52
+
53
+
54
+ ## Cite
55
+ The paper is under review. As soon as it is accepted, we will update this section.
56
+
57
+ If you use Massive-KB data, please also cite:
58
+
59
+ ``Wang, Mingxun, Jian Wang, Jeremy Carver, Benjamin S. Pullman, Seong Won Cha, and Nuno Bandeira. Assembling the Community-Scale Discoverable Human Proteome. Cell systems (2018).``
60
+
61
+ If you use ``PXD017407_library_from_fdr_peptides_sorted.5`` data, please also cite:
62
+
63
+ ``Stopfer LE, Mesfin JM, Joughin BA, Lauffenburger DA, White FM. Multiplexed relative and absolute quantitative immunopeptidomics reveals MHC I repertoire alterations induced by CDK4/6 inhibition. Nat Commun. 2020 11(1):2760
64
+ DOI: 10.1038/s41467-020-16588-9``
65
+
66
+ ## Contact
67
+ For any additional questions or comments, contact Fahad Saeed (fsaeed@fiu.edu).