Hi Pierre,
Thanks for the quick response. I tried your grep method and it yielded the same results as vcf-sort. The variants are sorted lexicographically by id, but the chromosome, position, and ref information is gone:
##fileformat=VCFv4.1
#CHROM POS ID REF ALT QUAL FILTER INFO
rs10110847_dbSNP C 100 PASS
rs10130831_dbSNP G 100 PASS
rs10132024_dbSNP T 100 PASS
rs10133030_dbSNP A 100 PASS
rs10135051_dbSNP T 100 PASS
rs10136467_dbSNP C 100 PASS
rs10147247_dbSNP T 100 PASS
rs10149947_dbSNP T 100 PASS
rs10152678_dbSNP A 100 PASS
rs10188587_dbSNP T 100 PASS
rs10277675_dbSNP A 100 PASS
Is vcf-sort supposed to be doing this? I am using grep off of cygwin, so I am beginning to wonder if there is something wrong with my grep installation..
Parth
Could you please post the command again...I am having some issues with the following command. Thanks.
error as follows:
http://stackoverflow.com/questions/10627989/how-do-i-insert-a-tab-character-in-iterm
Use
$'\t'Oops... I got it. Thanks.
But the random chromosomes are really giving some problems...