yzhouchen001 commited on
Commit
aaa4f05
Β·
1 Parent(s): cb1f3fc

updated readme

Browse files
Files changed (1) hide show
  1. README.md +41 -11
README.md CHANGED
@@ -1,6 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: Flare
3
- emoji: 🌍
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: streamlit
@@ -8,13 +47,4 @@ pinned: false
8
  python_version: 3.11.7
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12
- # FILIP-MS
13
- FILIP contrastive learning for metabolite annotation
14
-
15
- ## Magma preprocessing
16
- `python run_magma.py --data_pth '/r/hassounlab/spectra_data/msgym/MassSpecGym.tsv' --output_dir '/data/yzhouc01/FILIP-MS/data/magma/' --workers 50`
17
-
18
- ### test candidates
19
-
20
- `python run_fragmentation_only.py --d '/r/hassounlab/spectra_data/msgym/MassSpecGym.tsv' -c '/r/hassounlab/spectra_data/msgym/molecules/MassSpecGym_retrieval_candidates_mass.json' -o '/data/yzhouc01/FILIP-MS/data/msgym_mass_cands.pkl' -w 50`
 
1
+ # πŸ”₯ FLARE
2
+ Fine-grained Learning for Aligment of spectra-molecule REpresentation
3
+
4
+ ### Yan Zhou Chen, Soha Hassoun
5
+ #### Department of Computer Science, Tufts University
6
+ This repository provides the implementation of FALRE. Given a mass spectrum, FLARE can be used to rank a set of molecular candidates. Further, FLARE enables visualization of peak-to-node attribution.
7
+
8
+ ## πŸ›  Set up
9
+ ### Clone repository
10
+ ```
11
+ git clone https://github.com/hassounlab/flare
12
+ cd flare
13
+ ```
14
+ ### Set up environment and install dependencies
15
+ ```
16
+ conda create -n flare python=3.11
17
+ conda activate flare
18
+ pip install -r requirements.txt
19
+ ```
20
+
21
+ ## Usage
22
+ Modify params.yaml as necessary
23
+
24
+ ```
25
+ # preprocess data
26
+ python subformula_assign/assign_subformulae.py --spec-files ../data/sample/data.tsv --output-dir ../data/sample/subformulae --labels-file ../data/sample/data.tsv --max-formulae 60
27
+
28
+ # train
29
+ python train.py
30
+
31
+ # test
32
+ python test.py
33
+ ```
34
+ ## πŸ™ Acknowledgments
35
+ - **Loss Objective**: [FILIP](https://arxiv.org/abs/2111.07783)
36
+ - **Training Data**: [MassSpecGym](https://github.com/pluskal-lab/MassSpecGym)
37
+ - **Subformula Assigner Code**: [MIST](https://github.com/samgoldman97/mist/tree/main_v2)
38
+
39
+ ## APP Configuration
40
  ---
41
  title: Flare
42
+ emoji: πŸ”₯
43
  colorFrom: green
44
  colorTo: blue
45
  sdk: streamlit
 
47
  python_version: 3.11.7
48
  ---
49
 
50
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference