$ curl "https://raw.githubusercontent.com/ekg/vcflib/master/samples/sample.vcf" |\ grep -vE "^##" |\ verticalize >>> 2 $1 #CHROM : 19 $2 POS : 111 $3 ID : . $4 REF : A $5 ALT : C $6 QUAL : 9.6 $7 FILTER : . $8 INFO : . $9 FORMAT : GT:HQ $10 NA00001 : 0|0:10,10 $11 NA00002 : 0|0:10,10 $12 NA00003 : 0/1:3,3 <<< 2 >>> 3 $1 #CHROM : 19 $2 POS : 112 $3 ID : . $4 REF : A $5 ALT : G $6 QUAL : 10 $7 FILTER : . $8 INFO : . $9 FORMAT : GT:HQ $10 NA00001 : 0|0:10,10 $11 NA00002 : 0|0:10,10 $12 NA00003 : 0/1:3,3 <<< 3
.
That's it,
Pierre
love it - need better tools for columnar data files. hope its okay if i post some feature requests on github?
ReplyDelete