$ ls -lh snp.vcf -rwxrwxrwx 1 eric eric 11M Nov 18 22:12 snp.vcf # 详细信息
$ wc -l snp.vcf 58314 snp.vcf # 行数,含注释行
$ head -5 snp.vcf ##fileformat=VCFv4.2 ##FILTER=<ID=PASS,Description="All filters passed"> ##ALT=<ID=NON_REF,Description="Represents any possible alternative allele not already represented at this location by REF and ALT"> ##FILTER=<ID=LowQual,Description="Low quality"> ##FORMAT=<ID=AD,Number=R,Type=Integer,Description="Allelic depths for the ref and alt alleles in the order listed"> # 查看前5行
# 由于VCF头部有大量的注释信息,因此,在实际的分析中,当我们需要查看主体内容时,需要把头部的注释信息过滤掉,可以使用grep+pipes "|"来实现, $ grep -v "^#" snp.vcf | head
chr1 16495 . G C 36.65 . AC=1;AF=0.5;AN=2;BaseQRankSum=-0.967;CNN_1D=-4.292;DP=3;ExcessHet=3.0103;FS=0;MLEAC=1;MLEAF=0.5;MQ=22;MQRankSum=0;QD=12.22;ReadPosRankSum=0.967;SOR=1.179 GT:AD:DP:GQ:PL 0/1:1,2:3:18:44,0,18 chr1 17614 . G A 54.64 . AC=1;AF=0.5;AN=2;BaseQRankSum=0;CNN_1D=-0.693;DP=5;ExcessHet=3.0103;FS=0;MLEAC=1;MLEAF=0.5;MQ=47.88;MQRankSum=-1.645;QD=10.93;ReadPosRankSum=1.04;SOR=1.179 GT:AD:DP:GQ:PL 0/1:2,3:5:35:62,0,35 chr1 19322 . C T 44.64 . AC=1;AF=0.5;AN=2;BaseQRankSum=0.703;CNN_1D=-3.724;DP=8;ExcessHet=3.0103;FS=0;MLEAC=1;MLEAF=0.5;MQ=38.66;MQRankSum=-0.956;QD=5.58;ReadPosRankSum=0.414;SOR=0.818 GT:AD:DP:GQ:PGT:PID:PL:PS 0|1:5,3:8:52:0|1:19322_C_T:52,0,140:19322 chr1 19342 . G A 58.64 . AC=1;AF=0.5;AN=2;BaseQRankSum=1.65;CNN_1D=-3.127;DP=5;ExcessHet=3.0103;FS=0;MLEAC=1;MLEAF=0.5;MQ=41.16;MQRankSum=-0.524;QD=11.73;ReadPosRankSum=-1.036;SOR=1.609 GT:AD:DP:GQ:PGT:PID:PL:PS 0|1:3,2:5:66:1|0:19322_C_T:66,0,116:19322 chr1 29443 . A G 41.32 . AC=2;AF=1;AN=2;CNN_1D=-3.532;DP=3;ExcessHet=3.0103;FS=0;MLEAC=1;MLEAF=0.5;MQ=22;QD=20.66;SOR=2.303 GT:AD:DP:GQ:PL 1/1:0,2:2:6:53,6,0 chr1 63268 . T C 39.64 . AC=1;AF=0.5;AN=2;BaseQRankSum=0.309;CNN_1D=-2.694;DP=11;ExcessHet=3.0103;FS=0;MLEAC=1;MLEAF=0.5;MQ=55.09;MQRankSum=-2.744;QD=3.6;ReadPosRankSum=-0.381;SOR=1.179 GT:AD:DP:GQ:PL 0/1:8,3:11:47:47,0,169 chr1 63643 . A G 31.64 . AC=1;AF=0.5;AN=2;BaseQRankSum=0.175;CNN_1D=-4.388;DP=14;ExcessHet=3.0103;FS=0;MLEAC=1;MLEAF=0.5;MQ=39.49;MQRankSum=-0.082;QD=2.26;ReadPosRankSum=0.468;SOR=1.093 GT:AD:DP:GQ:PL 0/1:11,3:14:39:39,0,290 chr1 69511 . A G 191.97 . AC=2;AF=1;AN=2;CNN_1D=2.198;DP=6;ExcessHet=3.0103;FS=0;MLEAC=2;MLEAF=1;MQ=43.45;QD=32;SOR=0.693 GT:AD:DP:GQ:PL 1/1:0,6:6:18:206,18,0 chr1 129285 . G A 131.64 . AC=1;AF=0.5;AN=2;BaseQRankSum=-0.074;CNN_1D=-4.923;DP=28;ExcessHet=3.0103;FS=1.617;MLEAC=1;MLEAF=0.5;MQ=35.11;MQRankSum=-1.595;QD=4.7;ReadPosRankSum=0.025;SOR=0.694 GT:AD:DP:GQ:PL 0/1:19,9:28:99:139,0,390 chr1 129315 . A G 44.64 . AC=1;AF=0.5;AN=2;BaseQRankSum=0;CNN_1D=-5.233;DP=24;ExcessHet=3.0103;FS=2.114;MLEAC=1;MLEAF=0.5;MQ=37.02;MQRankSum=-1.323;QD=1.86;ReadPosRankSum=1.92;SOR=0.768 GT:AD:DP:GQ:PL 0/1:19,5:24:52:52,0,415