Last active
June 10, 2016 02:53
-
-
Save purohit/9357274 to your computer and use it in GitHub Desktop.
awk script to parse i-prefixed SNPs from https://api.23andme.com/res/txt/snps.data to a BED 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
awk 'BEGIN{OFS="\t"}; NR>=5 { chrName=$3; if ($3 ~ "MT") chrName ="M"; if ($4 && $2 ~ "^i") print "chr" chrName, $4, $4, $2}' snps.data > BEDfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember, snps.data should come from https://api.23andme.com/res/txt/snps.data