upstream-variant-alignment-cases.json
1{
2 "references": {
3 "bcftools": "Debian 1.19-1build2 (htslib 1.19)",
4 "samtools": "Debian 1.19.2-1build2 (htslib 1.19)"
5 },
6 "cases": [
7 {
8 "operator": "vcf_missing_to_ref",
9 "tool": "bcftools 1.19",
10 "command": [
11 "+missing2ref",
12 "<input>",
13 "--no-version"
14 ],
15 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/1:8\t./.:0\n",
16 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/1:8\t0/0:0\n",
17 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/1:8\t0/0:0\n",
18 "params": {}
19 },
20 {
21 "operator": "vcf_missing_to_ref",
22 "tool": "bcftools 1.19",
23 "command": [
24 "+missing2ref",
25 "<input>",
26 "--no-version"
27 ],
28 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|0:5\t1:6\n",
29 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|0:5\t1:6\n",
30 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|0:5\t1:6\n",
31 "params": {}
32 },
33 {
34 "operator": "vcf_missing_to_ref",
35 "tool": "bcftools 1.19",
36 "command": [
37 "+missing2ref",
38 "<input>",
39 "--no-version"
40 ],
41 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/.:7\t1|1:9\n",
42 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/0:7\t1|1:9\n",
43 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/0:7\t1|1:9\n",
44 "params": {}
45 },
46 {
47 "operator": "vcf_set_missing_genotypes",
48 "tool": "bcftools 1.19",
49 "command": [
50 "+setGT",
51 "<input>",
52 "--no-version",
53 "--",
54 "-t",
55 "a",
56 "-n",
57 "."
58 ],
59 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/1:8\t./.:0\n",
60 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t./.:8\t./.:0\n",
61 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t./.:8\t./.:0\n",
62 "params": {},
63 "normalization": "Preserve input GT phase separators; native setGT resets missing calls to unphased."
64 },
65 {
66 "operator": "vcf_set_missing_genotypes",
67 "tool": "bcftools 1.19",
68 "command": [
69 "+setGT",
70 "<input>",
71 "--no-version",
72 "--",
73 "-t",
74 "a",
75 "-n",
76 "."
77 ],
78 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|0:5\t1:6\n",
79 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t./.:5\t.:6\n",
80 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t.|.:5\t.:6\n",
81 "params": {},
82 "normalization": "Preserve input GT phase separators; native setGT resets missing calls to unphased."
83 },
84 {
85 "operator": "vcf_set_missing_genotypes",
86 "tool": "bcftools 1.19",
87 "command": [
88 "+setGT",
89 "<input>",
90 "--no-version",
91 "--",
92 "-t",
93 "a",
94 "-n",
95 "."
96 ],
97 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/.:7\t1|1:9\n",
98 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t./.:7\t./.:9\n",
99 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t./.:7\t.|.:9\n",
100 "params": {},
101 "normalization": "Preserve input GT phase separators; native setGT resets missing calls to unphased."
102 },
103 {
104 "operator": "vcf_fix_ploidy",
105 "tool": "bcftools 1.19",
106 "command": [
107 "+fixploidy",
108 "<input>",
109 "--no-version",
110 "--",
111 "-f",
112 "1"
113 ],
114 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/1:8\t./.:0\n",
115 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0:8\t.:0\n",
116 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0:8\t.:0\n",
117 "params": {}
118 },
119 {
120 "operator": "vcf_fix_ploidy",
121 "tool": "bcftools 1.19",
122 "command": [
123 "+fixploidy",
124 "<input>",
125 "--no-version",
126 "--",
127 "-f",
128 "1"
129 ],
130 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|0:5\t1:6\n",
131 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1:5\t1:6\n",
132 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1:5\t1:6\n",
133 "params": {}
134 },
135 {
136 "operator": "vcf_fix_ploidy",
137 "tool": "bcftools 1.19",
138 "command": [
139 "+fixploidy",
140 "<input>",
141 "--no-version",
142 "--",
143 "-f",
144 "1"
145 ],
146 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/.:7\t1|1:9\n",
147 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0:7\t1:9\n",
148 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0:7\t1:9\n",
149 "params": {}
150 },
151 {
152 "operator": "vcf_select_samples",
153 "tool": "bcftools 1.19",
154 "command": [
155 "view",
156 "-s",
157 "B",
158 "-I",
159 "--no-version",
160 "<input>"
161 ],
162 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/1:8\t./.:0\n",
163 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t./.:0\n",
164 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t./.:0\n",
165 "params": {}
166 },
167 {
168 "operator": "vcf_select_samples",
169 "tool": "bcftools 1.19",
170 "command": [
171 "view",
172 "-s",
173 "B",
174 "-I",
175 "--no-version",
176 "<input>"
177 ],
178 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|0:5\t1:6\n",
179 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1:6\n",
180 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1:6\n",
181 "params": {}
182 },
183 {
184 "operator": "vcf_select_samples",
185 "tool": "bcftools 1.19",
186 "command": [
187 "view",
188 "-s",
189 "B",
190 "-I",
191 "--no-version",
192 "<input>"
193 ],
194 "data": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t0/.:7\t1|1:9\n",
195 "native_output": "##fileformat=VCFv4.2\n##FILTER=<ID=PASS,Description=\"All filters passed\">\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|1:9\n",
196 "expected": "##fileformat=VCFv4.2\n##contig=<ID=1,length=100>\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Depth\">\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tB\n1\t10\t.\tA\tG\t30\tPASS\t.\tGT:DP\t1|1:9\n",
197 "params": {}
198 },
199 {
200 "operator": "sam_depth",
201 "tool": "samtools 1.19.2",
202 "command": [
203 "depth",
204 "<input>"
205 ],
206 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\n",
207 "native_output": "chr1\t2\t1\nchr1\t3\t1\nchr1\t4\t1\n",
208 "expected": "chr1\t2\t1\nchr1\t3\t1\nchr1\t4\t1\n",
209 "params": {},
210 "normalization": "Sparse nonzero positions only; omit native zero-depth rows inside alignments."
211 },
212 {
213 "operator": "sam_depth",
214 "tool": "samtools 1.19.2",
215 "command": [
216 "depth",
217 "<input>"
218 ],
219 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t16\tchr1\t2\t60\t1S2M1I1M\t*\t0\t0\tTACGT\tIIIII\n",
220 "native_output": "chr1\t2\t1\nchr1\t3\t1\nchr1\t4\t1\n",
221 "expected": "chr1\t2\t1\nchr1\t3\t1\nchr1\t4\t1\n",
222 "params": {},
223 "normalization": "Sparse nonzero positions only; omit native zero-depth rows inside alignments."
224 },
225 {
226 "operator": "sam_depth",
227 "tool": "samtools 1.19.2",
228 "command": [
229 "depth",
230 "<input>"
231 ],
232 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t1M1D2M\t*\t0\t0\tACG\tIII\n",
233 "native_output": "chr1\t2\t1\nchr1\t3\t0\nchr1\t4\t1\nchr1\t5\t1\n",
234 "expected": "chr1\t2\t1\nchr1\t4\t1\nchr1\t5\t1\n",
235 "params": {},
236 "normalization": "Sparse nonzero positions only; omit native zero-depth rows inside alignments."
237 },
238 {
239 "operator": "sam_depth",
240 "tool": "samtools 1.19.2",
241 "command": [
242 "depth",
243 "<input>"
244 ],
245 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t1M2N2M\t*\t0\t0\tACG\tIII\n",
246 "native_output": "chr1\t2\t1\nchr1\t3\t0\nchr1\t4\t0\nchr1\t5\t1\nchr1\t6\t1\n",
247 "expected": "chr1\t2\t1\nchr1\t5\t1\nchr1\t6\t1\n",
248 "params": {},
249 "normalization": "Sparse nonzero positions only; omit native zero-depth rows inside alignments."
250 },
251 {
252 "operator": "sam_reference_counts",
253 "tool": "samtools 1.19.2",
254 "command": [
255 "idxstats",
256 "<input>"
257 ],
258 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\n",
259 "native_output": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
260 "expected": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
261 "params": {}
262 },
263 {
264 "operator": "sam_reference_counts",
265 "tool": "samtools 1.19.2",
266 "command": [
267 "idxstats",
268 "<input>"
269 ],
270 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t16\tchr1\t2\t60\t1S2M1I1M\t*\t0\t0\tTACGT\tIIIII\n",
271 "native_output": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
272 "expected": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
273 "params": {}
274 },
275 {
276 "operator": "sam_reference_counts",
277 "tool": "samtools 1.19.2",
278 "command": [
279 "idxstats",
280 "<input>"
281 ],
282 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t1M1D2M\t*\t0\t0\tACG\tIII\n",
283 "native_output": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
284 "expected": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
285 "params": {}
286 },
287 {
288 "operator": "sam_reference_counts",
289 "tool": "samtools 1.19.2",
290 "command": [
291 "idxstats",
292 "<input>"
293 ],
294 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t1M2N2M\t*\t0\t0\tACG\tIII\n",
295 "native_output": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
296 "expected": "chr1\t20\t1\t0\n*\t0\t0\t0\n",
297 "params": {}
298 },
299 {
300 "operator": "sam_to_fastq",
301 "tool": "samtools 1.19.2",
302 "command": [
303 "fastq",
304 "-n",
305 "<input>"
306 ],
307 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\n",
308 "native_output": "@r1\nACG\n+\nIII\n",
309 "expected": "@r1\nACG\n+\nIII\n",
310 "params": {}
311 },
312 {
313 "operator": "sam_to_fastq",
314 "tool": "samtools 1.19.2",
315 "command": [
316 "fastq",
317 "-n",
318 "<input>"
319 ],
320 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t16\tchr1\t2\t60\t1S2M1I1M\t*\t0\t0\tTACGT\tIIIII\n",
321 "native_output": "@r1\nACGTA\n+\nIIIII\n",
322 "expected": "@r1\nACGTA\n+\nIIIII\n",
323 "params": {}
324 },
325 {
326 "operator": "sam_to_fastq",
327 "tool": "samtools 1.19.2",
328 "command": [
329 "fastq",
330 "-n",
331 "<input>"
332 ],
333 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t1M1D2M\t*\t0\t0\tACG\tIII\n",
334 "native_output": "@r1\nACG\n+\nIII\n",
335 "expected": "@r1\nACG\n+\nIII\n",
336 "params": {}
337 },
338 {
339 "operator": "sam_to_fastq",
340 "tool": "samtools 1.19.2",
341 "command": [
342 "fastq",
343 "-n",
344 "<input>"
345 ],
346 "data": "@HD\tVN:1.6\tSO:coordinate\n@SQ\tSN:chr1\tLN:20\nr1\t0\tchr1\t2\t60\t1M2N2M\t*\t0\t0\tACG\tIII\n",
347 "native_output": "@r1\nACG\n+\nIII\n",
348 "expected": "@r1\nACG\n+\nIII\n",
349 "params": {}
350 },
351 {
352 "operator": "sam_calmd",
353 "tool": "samtools 1.19.2",
354 "command": [
355 "calmd",
356 "<input>",
357 "<ref.fa>"
358 ],
359 "data": "@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\n",
360 "native_output": "@SQ\tSN:chr1\tLN:10\n@PG\tID:samtools\tPN:samtools\tVN:1.19.2\tCL:/tmp/galaxy-bcftools-native/usr/bin/samtools calmd /tmp/tmph8waw893/input /tmp/tmph8waw893/ref.fa\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\tNM:i:0\tMD:Z:3\n",
361 "expected": "@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tACG\tIII\tNM:i:0\tMD:Z:3\n",
362 "params": {}
363 },
364 {
365 "operator": "sam_calmd",
366 "tool": "samtools 1.19.2",
367 "command": [
368 "calmd",
369 "<input>",
370 "<ref.fa>"
371 ],
372 "data": "@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tATG\tIII\n",
373 "native_output": "@SQ\tSN:chr1\tLN:10\n@PG\tID:samtools\tPN:samtools\tVN:1.19.2\tCL:/tmp/galaxy-bcftools-native/usr/bin/samtools calmd /tmp/tmp8piaekg4/input /tmp/tmp8piaekg4/ref.fa\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tATG\tIII\tNM:i:1\tMD:Z:1C1\n",
374 "expected": "@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tATG\tIII\tNM:i:1\tMD:Z:1C1\n",
375 "params": {}
376 },
377 {
378 "operator": "sam_calmd",
379 "tool": "samtools 1.19.2",
380 "command": [
381 "calmd",
382 "<input>",
383 "<ref.fa>"
384 ],
385 "data": "@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tNCG\tIII\n",
386 "native_output": "@SQ\tSN:chr1\tLN:10\n@PG\tID:samtools\tPN:samtools\tVN:1.19.2\tCL:/tmp/galaxy-bcftools-native/usr/bin/samtools calmd /tmp/tmp2lty4bod/input /tmp/tmp2lty4bod/ref.fa\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tNCG\tIII\tNM:i:1\tMD:Z:0A2\n",
387 "expected": "@SQ\tSN:chr1\tLN:10\nr1\t0\tchr1\t2\t60\t3M\t*\t0\t0\tNCG\tIII\tNM:i:1\tMD:Z:0A2\n",
388 "params": {}
389 }
390 ]
391}