Mercurial > repos > fubar > jbrowse2
annotate conc.awk @ 135:21bb464c1d53 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
author | fubar |
---|---|
date | Sun, 15 Dec 2024 23:47:40 +0000 |
parents | |
children |
rev | line source |
---|---|
135
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
1 #!/bin/awk -f |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
2 # input must be paf |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
3 # pipe to sort -n -r -k2 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
4 # few duplicates in a 14M row paf converted from a paired bam from VGP mUroPar1 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
5 { |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
6 if (($1,$3,$6,$8) in concordance) |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
7 { concordance[$1,$3,$6,$8]++ } |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
8 else |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
9 { concordance[$1,$3,$6,$8] = 1 } |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
10 } |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
11 END { |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
12 for (k in concordance) {print k, concordance[k]} |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
13 } |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
14 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
15 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
16 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
17 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
18 ## PAF specification |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
19 ## |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
20 ## Col Type Description |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
21 ## 1 string Query sequence name |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
22 ## 2 int Query sequence length |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
23 ## 3 int Query start (0-based) |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
24 ## 4 int Query end (0-based) |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
25 ## 5 char Relative strand: "+" or "-" |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
26 ## 6 string Target sequence name |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
27 ## 7 int Target sequence length |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
28 ## 8 int Target start on original strand (0-based) |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
29 ## 9 int Target end on original strand (0-based) |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
30 ## 10 int Number of residue matches |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
31 ## 11 int Alignment block length |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
32 ## 12 int Mapping quality (0-255; 255 for missing) |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
33 ## |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
34 ## |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
35 ## chr10 135711693 0 410000 + chr10 135912142 60 410218 18 410158 32 id:f:0.999395 kc:f:1.01221 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
36 ## chr10 135711693 415000 1305000 + chr10 135912142 412798 1295808 17 890000 28 id:f:0.998493 kc:f:0.971423 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
37 ## chr10 135711693 1310000 2395000 + chr10 135912142 1300732 2385827 15 1085095 30 id:f:0.998896 kc:f:1.02767 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
38 ## chr10 135711693 2400000 25440000 + chr10 135912142 2385341 25429367 18 23044026 29 id:f:0.998716 kc:f:1.04082 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
39 ## chr10 135711693 25445000 26735000 + chr10 135912142 25429997 26720864 13 1290867 28 id:f:0.998239 kc:f:1.05397 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
40 ## chr10 135711693 26740000 37190000 + chr10 135912142 26722183 37175820 20 10453637 29 id:f:0.998842 kc:f:1.0341 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
41 ## chr10 135711693 37185000 37195000 - chr10 135912142 37175523 37185020 13 10000 22 id:f:0.993765 kc:f:1.02691 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
42 ## chr10 135711693 37195000 37285000 + chr10 135912142 37181742 37271716 18 90000 27 id:f:0.998021 kc:f:1.02883 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
43 ## chr10 135711693 37285000 38650000 + chr10 135912142 37283684 38647751 18 1365000 33 id:f:0.999466 kc:f:1.03306 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
44 ## |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
45 ## #E00526:120:HYYLYCCXY:8:1206:18842:33182 179 chr10:0-100000H1 23129 0 150M chr11:0-100000H2 88118 0 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
46 ## #ATTATCTCAGCAGATGCAGAAAAGGCCTTCAATAAAAGACAACACCCCTTCAGGTTAAAAACACTCAATTAACTAGGTGTTCATGGGACATACCTCAAAATAATAAGAGCCATTTATGACAAACCCACAGACAATATCATGCTGAATGGG |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
47 ## #<<F7---<<JJJFJJF-7<FFJAA7A--<<F<-A7AAA-<F777--F<-77<F--7A-AAJA-<-JJ-JFFA<-<<JAJFF<FF--AJF7FFJ<-JJFFJ7F--AA--J<F-A<JF7<AFFF-<<<FAFF-AFA7F-JF7FJAJJF<AA< NM:i:19 MD:Z:9A28T5T7T2C6T6A6C1A2G1A2A0T2C21C0A16C9A7A1 AS:i:58 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
48 ## #XS:i:58 XA:Z:chr10:0-100000H2,-22753,150M,19;chr14:0-100000H1,+33583,150M,19;chr13:0-100000H1,+48625,150M,19;chr13:0-100000H2,+35689,150M,20; E00526:120:HYYLYCCXY:8:2223:11495:36241 147 chr10:0-100000H1 30113 0 150M |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
49 ## #chr10:0-100000H2 29642 0 AGAGCGCCTCTCCTCCTCCAAAGGAACACAGTTCCTCACCAGCAACAGAACAAAGCTGGACGGAGAATGACTTTGACGAGTTGAGAGAAGAAGGCTTCAGACGATCAAACTACTCCGAGCTACAGGAGGAAATTCAAACCAAAGGCAAAC |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
50 ## #-<A-FF7--7-<7-A-AJJJAF7JJJFAA-FF-AFFFJJJFJJJFFAAAFJAJJJFJJJJFJFJA7AAFJF<<<A<JF7FJAAAFJJ<JJJ7<JJJJAAJJJFJJFJF<<F7JAAJJFJFJJ<AJAFJJJJJJAJJ7AJF<<-AFFF<A< NM:i:13 MD:Z:26T0G17T0G13T6C11A0C28T5T7G6C18G0 AS:i:89 XS:i:89 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
51 ## #XA:Z:chr10:0-100000H2,-29737,150M,13; ... |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
52 ## #columns: readID chr1 pos1 chr2 pos2 strand1 strand2 |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
53 ## #EAS139:136:FC706VJ:2:2104:23462:197393 chr1 10000 chr1 20000 + + |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
54 ## #EAS139:136:FC706VJ:2:8762:23765:128766 chr1 50000 chr1 70000 + + |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
55 ## #EAS139:136:FC706VJ:2:2342:15343:9863 chr1 60000 chr2 10000 + + |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
56 ## #EAS139:136:FC706VJ:2:1286:25:275154 chr1 30000 chr3 40000 + - |
21bb464c1d53
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
fubar
parents:
diff
changeset
|
57 ## |