Commit cf4d154
authored
VCF Annotator CLI support for reading/writing stdin/stdout (#531)
Closes #529
Tested with stdin/out and this vcf file:
```
$ curl -O https://raw.githubusercontent.com/c-BIG/NPM-sample-qc/refs/heads/master/tests/NA12878-chr14-AKT1_1000genomes-dragen-3.7.6/NA12878-chr14-AKT1.vcf.gz
$ export GA4GH_VRS_DATAPROXY_URI=seqrepo+file://$HOME/dev/data/seqrepo/2024-12-20
# existing functionality (file in, file out)
$ vrs-annotate vcf NA12878-chr14-AKT1.vcf.gz --vcf-out NA12878-chr14-AKT1.VRS-ANNOTATED.vcf.gz
# file in, stdout out
$ vrs-annotate vcf NA12878-chr14-AKT1.vcf.gz --vcf-out -
# stdin in, file out
$ cat NA12878-chr14-AKT1.vcf.gz | vrs-annotate vcf - --vcf-out NA12878-chr14-AKT1.VRS-ANNOTATED.vcf.gz
# stdin in, stdout out
$ cat NA12878-chr14-AKT1.vcf.gz | vrs-annotate vcf - --vcf-out -
```1 parent 884f905 commit cf4d154
2 files changed
Lines changed: 46 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
73 | 93 | | |
74 | 94 | | |
75 | 95 | | |
76 | 96 | | |
77 | 97 | | |
78 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
79 | 105 | | |
80 | 106 | | |
81 | 107 | | |
82 | 108 | | |
83 | | - | |
| 109 | + | |
84 | 110 | | |
85 | | - | |
| 111 | + | |
86 | 112 | | |
87 | 113 | | |
88 | 114 | | |
| |||
141 | 167 | | |
142 | 168 | | |
143 | 169 | | |
144 | | - | |
145 | | - | |
| 170 | + | |
| 171 | + | |
146 | 172 | | |
147 | 173 | | |
148 | 174 | | |
| |||
152 | 178 | | |
153 | 179 | | |
154 | 180 | | |
155 | | - | |
| 181 | + | |
156 | 182 | | |
157 | 183 | | |
158 | 184 | | |
| |||
186 | 212 | | |
187 | 213 | | |
188 | 214 | | |
189 | | - | |
190 | | - | |
| 215 | + | |
191 | 216 | | |
192 | 217 | | |
193 | | - | |
| 218 | + | |
194 | 219 | | |
195 | 220 | | |
196 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
| 205 | + | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | | - | |
225 | | - | |
| 227 | + | |
| 228 | + | |
226 | 229 | | |
| 230 | + | |
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| |||
0 commit comments