Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# TReconLM synthetic test sets
|
2 |
+
|
3 |
+
This dataset contains the synthetic test sets used to evaluate TReconLM, a transformer-based model for trace reconstruction of noisy DNA sequences (see [our paper](https://arxiv.org/abs/XXXX.XXXXX)).
|
4 |
+
|
5 |
+
The real-world datasets used for fine-tuning are available here:
|
6 |
+
|
7 |
+
- [Microsoft Clustered Nanopore Reads](https://github.com/microsoft/clustered-nanopore-reads-dataset)
|
8 |
+
- [Noisy DNA Dataset](https://figshare.com/s/cd611884b34a8c89f4b4)
|
9 |
+
|
10 |
+
The corresponding test sets used in the paper can be reproduced using the preprocessing scripts in our GitHub repository under [`data/`](https://github.com/MLI-lab/TReconLM/tree/main/data).
|
11 |
+
|
12 |
+
## Synthetic Dataset Generation
|
13 |
+
|
14 |
+
Synthetic datasets are generated using [`data_generation.py`](https://github.com/MLI-lab/TReconLM/blob/main/src/data_pkg/data_generation.py). Each test set is created by:
|
15 |
+
|
16 |
+
- Sampling a ground-truth sequence of length *L*
|
17 |
+
- Introducing insertions, deletions, and substitutions with rates sampled uniformly from *[0.01, 0.1]*
|
18 |
+
- Randomly selecting the number of noisy reads *N* between *2* and *10*
|
19 |
+
|
20 |
+
|
21 |
+
### Files Included
|
22 |
+
|
23 |
+
- **`ground_truth.txt`**
|
24 |
+
Contains the original DNA sequences, one per line
|
25 |
+
|
26 |
+
- **`reads.txt`**
|
27 |
+
Contains the noisy traces (corrupted copies of the ground-truth sequences)
|
28 |
+
- Each line is a single read
|
29 |
+
- Clusters are separated by: `===============================`
|
30 |
+
- The *i*-th cluster corresponds to the *i*-th line in `ground_truth.txt`
|
31 |
+
|
32 |
+
- **`test_x.pt`**
|
33 |
+
A PyTorch tensor containing tokenized and padded input sequences used as model input, formatted as: read1|read2|...|readN : ground_truth
|
34 |
+
|
35 |
+
## Usage
|
36 |
+
|
37 |
+
Instructions for running inference using these datasets and our pretrained models are provided in the [`trace_reconstruction.ipynb`](https://github.com/MLI-lab/TReconLM/blob/main/trace_reconstruction.ipynb) notebook in our GitHub repository.
|