Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/mummer-3.23/scripts/tandem-repeat.awk @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 # Usage: awk -f tandem-repeat.awk | |
2 # Outputs tandem repeat regions based on repeat matches found | |
3 # by repeat-match program. That program should be run with | |
4 # the -t option (for tandem repeats) or at least the -f | |
5 # option (fo forward strand only), and the output | |
6 # sorted by first and then second column (with the first two | |
7 # header lines removed). | |
8 | |
9 BEGIN { | |
10 printf "%8s %8s %8s %10s\n", "Start", "Extent", "UnitLen", "Copies"; | |
11 } | |
12 | |
13 { | |
14 if ($1 + $3 < $2) | |
15 next; | |
16 if ($1 == prev) | |
17 next; | |
18 start = $1; | |
19 extent = $2 + $3 - $1; | |
20 unitlen = $2 - $1; | |
21 printf "%8d %8d %8d %10.1f\n", start, extent, unitlen, extent / unitlen; | |
22 prev = $1; | |
23 } |