Commit 2b975849 by Andrea Mancini

rename file and readme update

parent 4057261d
# folders # folders
test test
datasets
notebooks notebooks
results results
misc misc
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
## 🚀 Overview ## 🚀 Overview
We implemented SPIN, a Transformer model inspired by ESM-2, for functionally classify proteins and predicting domain span from homologous sequences. We implemented SPIN, a Transformer model inspired by ESM-2, for functionally classify proteins and predicting domain span from homologous sequences.
We experimented with two Protein families: Thioredoxin (TRX) and Cryptochrome/photolyase (CPF). We identify functional classes and subclasses with ProfileView (https://doi.org/10.1101/717249), handling thousands of sequences at a time to create comprehensive groups. We experimented with two Protein families: Thioredoxin (TRX) and SH3. We identify functional classes and subclasses with ProfileView (https://doi.org/10.1101/717249), handling thousands of sequences at a time to create comprehensive groups.
Our goal is to achieve large-scale classification of millions of proteins from extensive databases and ongoing high-throughput sequencing efforts. Moreover, it identifies conserved residues that are crucial for subfamilies, providing insights into the functional nuances of protein subclasses. Our goal is to achieve large-scale classification of millions of proteins from extensive databases and ongoing high-throughput sequencing efforts. Moreover, it identifies conserved residues that are crucial for subfamilies, providing insights into the functional nuances of protein subclasses.
**Architecture**: **Architecture**:
...@@ -19,8 +19,8 @@ Train 80%, Val 10 %, Test 10% ...@@ -19,8 +19,8 @@ Train 80%, Val 10 %, Test 10%
| | Sequences | Classes | Train Accuracy | Train F1 | Val Accuracy | Val F1 | Test Accuracy | Test F1 | Dom Start (± 3) | Dom End (± 3) | | | Sequences | Classes | Train Accuracy | Train F1 | Val Accuracy | Val F1 | Test Accuracy | Test F1 | Dom Start (± 3) | Dom End (± 3) |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| TRX | 28601 | 8 | 0.957 ± 0.03 | 0.957 ± 0.03 | 0.906 ± 0.01 | 0.906 ± 0.01 | 0.895 ± 0.01 | 0.895 ± 0.01 | 0.823 | 0.819 | | TRX | 28601 | 8 | 0.985 ± 0.03 | 0.985 ± 0.03 | 0.912 ± 0.0 | 0.912 ± 0.0 | 0.905 ± 0.01 | 0.905 ± 0.01 | 0.823 | 0.819 |
| CPF | 14295 | 8 | 0.987 ± 0.004 | 0.987 ± 0.004 | 0.982 ± 0.002 | 0.982 ± 0.002 | 0.976 ± 0.004 | 0.976 ± 0.004 | 0.963 | 0.909 | | SH3 | 11148 | 7 | 0.869 ± 0.01 | 0.856 ± 0.01 | 0.867 ± 0.0 | 0.855 ± 0.0 | 0.825 ± 0.01 | 0.832 ± 0.01 | 0.978 | 0.980 |
--- ---
## 🛠️ Usage ## 🛠️ Usage
...@@ -43,9 +43,9 @@ Get started with just a few steps: ...@@ -43,9 +43,9 @@ Get started with just a few steps:
### 3️⃣ Download pretrained models ### 3️⃣ Download pretrained models
| Model | # Classes | # tokens | # Epoch | #Val F1 score | # Checkpoint | | Model | # Classes | # tokens | # Epoch | #Val F1 score | # Checkpoint |
|-----------|-----------|----------|---------|---------------|--------------| |:---:|:---:|:---:|:---:|:---:|:---:|
| TRX model | 8 | 1024 | 7 | 0.92 | [🔗 Download](https://.pt) | | TRX model | 8 | 1024 | 7 | 0.92 | [🔗 Download](https://.pt) |
| CPF model | 8 | 1024 | 4 | 0.98 | [🔗 Download](https://.pt) | | SH3 model | 7 | 1024 | 5 | 0.86 | [🔗 Download](https://.pt) |
### 4️⃣ Create dataset from ProfileView tree ### 4️⃣ Create dataset from ProfileView tree
...@@ -69,6 +69,6 @@ Example of dataset.csv: ...@@ -69,6 +69,6 @@ Example of dataset.csv:
predict.py -f path_to_csv --ckptpath checkpoint.tar predict.py -f path_to_csv --ckptpath checkpoint.tar
``` ```
### Example Jupyter nb <!---### Example Jupyter nb
Open demo.ipynb for an example of inference with TRX Open demo.ipynb for an example of inference with TRX--->
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment