Created
April 8, 2019 11:06
-
-
Save vidboda/13ccb064792642b0fb12d49b641ceef2 to your computer and use it in GitHub Desktop.
add chr to a vcf file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zcat file1.vcf.gz | awk -F"\t" '{if ($0 !~ /^#/) {print "chr"$0} else{print $0}}' | bgzip -c >file1chr.vcf.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!