Last active
August 29, 2015 14:02
-
-
Save nuada/7a0327a001349c0d2c78 to your computer and use it in GitHub Desktop.
Convert BED file to PLINK/SEQ REG format
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/bash | |
echo -e "#CHR\tBP1\tBP2\tID" | |
awk -F '\t' '{ print $1 FS $2+1 FS $3 FS NR }' | sed -e 's/^\([0-9]\+\)/chr\1/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment