Update README.md
Browse files
README.md
CHANGED
@@ -16,6 +16,22 @@ The Plant Multi Species dataset was constructed by parsing plant genomes availab
|
|
16 |
This dataset has been used as a pre-training corpus for the AgroNT model. Each sequence is 6,200 base pase pairs long. If the dataset is iterated without being shuffled, the first 100 nucleotides of a sequence are the same as the last 100 base pairs of the previous sequence, and the last 100 nucleotides are the same as the first 100 base pairs of the next sequence. During training, this allows for randomly selecting a nucleotide between the first 200 nucleotides of the sequence and start the tokenization from this nucleotide. That way, all the chromosome is covered and the model sees different tokens for a given sequence at each epoch.
|
17 |
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
### Data Instances
|
20 |
|
21 |
For each instance, there is a string representing the sequence, a string indicating the description of the sequence, two integers representing the index of the first and last nucleotide respectively. An instance is shown below:
|
|
|
16 |
This dataset has been used as a pre-training corpus for the AgroNT model. Each sequence is 6,200 base pase pairs long. If the dataset is iterated without being shuffled, the first 100 nucleotides of a sequence are the same as the last 100 base pairs of the previous sequence, and the last 100 nucleotides are the same as the first 100 base pairs of the next sequence. During training, this allows for randomly selecting a nucleotide between the first 200 nucleotides of the sequence and start the tokenization from this nucleotide. That way, all the chromosome is covered and the model sees different tokens for a given sequence at each epoch.
|
17 |
|
18 |
|
19 |
+
## Example Usage
|
20 |
+
|
21 |
+
```python
|
22 |
+
|
23 |
+
from datasets import load_dataset
|
24 |
+
|
25 |
+
dataset = load_dataset('InstaDeepAI/plant-multi-species-genomes') ### Will use the default chunk length of 6000bp
|
26 |
+
|
27 |
+
# or
|
28 |
+
|
29 |
+
chunk_length = 10000
|
30 |
+
dataset = load_dataset('InstaDeepAI/plant-multi-species-genomes',chunk_length=chunk_length) ### Will use your desired chunk length(in this case 10000bp)
|
31 |
+
|
32 |
+
```
|
33 |
+
|
34 |
+
|
35 |
### Data Instances
|
36 |
|
37 |
For each instance, there is a string representing the sequence, a string indicating the description of the sequence, two integers representing the index of the first and last nucleotide respectively. An instance is shown below:
|