Skip to content

Instantly share code, notes, and snippets.

@cbkmephisto
Last active December 19, 2016 00:26
Show Gist options
  • Save cbkmephisto/3a6260ad57b224a8e195dbfdf112ae64 to your computer and use it in GitHub Desktop.
Save cbkmephisto/3a6260ad57b224a8e195dbfdf112ae64 to your computer and use it in GitHub Desktop.
Get SNP_ID list from a ab-genotype file
#!/bin/bash
[ ! $# -eq 1 ] && echo $0 ab-genotype_file \# print SNP_IDs of the abg to screen. && exit
head -n1 $1 | awk -F\# '{for(i=3;i<=NF;++i)print $i}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment