Last active
February 19, 2016 17:24
-
-
Save cmdcolin/2e0eb785d8fdca4aa9ac to your computer and use it in GitHub Desktop.
Modify the names on a VCF file in a streaming fashion, in this case, prepend the string "chr" to them
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
#!/bin/sh | |
bgzip -dc $1 | sed -e 's/^\([^#].*\)/chr\1/' | bgzip -c > `basename $1 .vcf.gz`.mod.vcf.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment