Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,45 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: transformers
|
4 |
+
pipeline_tag: text-generation
|
5 |
+
tags:
|
6 |
+
- biology
|
7 |
+
- text-generation-inference
|
8 |
+
---
|
9 |
+
|
10 |
+
## AptaGPT
|
11 |
+
|
12 |
+
AptaGPT is a generative pre-trained language model for aptamer design. The model focuses on the generation of a new sequence space of aptamers, trained and fine-tuned using the third and sixth round of SELEX data for B cell maturation antigen (BCMA).
|
13 |
+
|
14 |
+
## Dataset
|
15 |
+
|
16 |
+
AptaGPT was pre-trained using a large dataset consisting of 108,229,900 sequences from the third round of the SELEX process targeting BCMA. This extensive dataset provided a robust foundation for learning generalized patterns in aptamer sequences. For fine-tuning, the model utilized 9,350 sequences from the sixth round of SELEX. All aptamer sequences used for both pre-training and fine-tuning are 35 nucleotides in length.
|
17 |
+
|
18 |
+
## Requirements
|
19 |
+
|
20 |
+
Before running the AptaGPT model, the following Python dependencies need to be installed:
|
21 |
+
```bash
|
22 |
+
pip install transformers sentencepiece
|
23 |
+
```
|
24 |
+
|
25 |
+
## Usage Examples
|
26 |
+
|
27 |
+
To load the model form hugging face:
|
28 |
+
|
29 |
+
```python
|
30 |
+
from transformers import pipeline
|
31 |
+
model = pipeline('text-generation', model="tmbj-aidd/aptagpt-bcma")
|
32 |
+
```
|
33 |
+
|
34 |
+
To generate aptamer sequences:
|
35 |
+
|
36 |
+
```python
|
37 |
+
sequences = model("<|endoftext|>",
|
38 |
+
max_length=15,
|
39 |
+
do_sample=True,
|
40 |
+
top_k=700,
|
41 |
+
repetition_penalty=1.2,
|
42 |
+
num_return_sequences=10,
|
43 |
+
)
|
44 |
+
print(sequences)
|
45 |
+
```
|