Ming "Tommy" Tang@tangming2005
Never run plain sort on a VCF. It scrambles the header, and ##fileformat has to stay on line 1.
One awk line prints the header untouched, then sorts the variants by chromosome (chr1 < chr2 < chr10) and position. For big files: bcftools sort.
23131.3K














