Skip to content

Commit 92acb0d

Browse files
author
edolzhenko
committed
Add readme
0 parents  commit 92acb0d

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# TRGT-instability
2+
3+
TRGT-instability is an add-tool for [TRGT](https://github.com/PacificBiosciences/trgt/)
4+
designed to quantify instability of each repeat allele.
5+
6+
## Availability
7+
8+
The latest binary can be found in the release page.
9+
10+
## Usage example
11+
12+
The tool can be run like so:
13+
14+
```bash
15+
./trgt-instability --repeats repeats.bed --spanning-reads sample.trgt.sorted.bam
16+
```
17+
18+
where
19+
20+
- `repeats.bed` is the BED file with repeat definitions; it must be the same file
21+
as the one used to run TRGT,
22+
- `sample.trgt.sorted.bam` is the BAM file generated by TRGT; it must be sorted
23+
and indexed.
24+
25+
The output will look like this:
26+
27+
```tsv
28+
trid allele motif motif_counts expansion_rate contraction_rate model_params
29+
FMR1 1 CGG 84,93,94,94,95,95,95,96,97,97,99,100,100,101,101,101,104,104,107,108,109,113,116,126 0.06 0.05 0.96:0.01:0.61:0.80
30+
```
31+
32+
where:
33+
34+
- `trid` is the tandem repeat identifier from `repeats.bed`
35+
- `allele` is the allele index
36+
- `motif` is the motif profiled
37+
- `motif_count` is the number of motifs identified in each read
38+
- `expansion_rate` is the estimated expansion rate (see below)
39+
- `contraction_rate` is the estimated contraction rate (see below)
40+
- `model_params` are the estimated parameters of the instability model
41+
42+
The expansion and contraction rate parameters are motivated by a simple
43+
model where mosaicism can occur due to slippage during DNA replication.
44+
An expansion rate of 0.01 means that an allele consisting of 100 motifs
45+
is expected to have a single motif expansion event during replication.

0 commit comments

Comments
 (0)