Skip to content

Instantly share code, notes, and snippets.

@drj11
Last active June 19, 2017 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drj11/5da4e8dfb76f8dd75379f528ae636ee4 to your computer and use it in GitHub Desktop.
Save drj11/5da4e8dfb76f8dd75379f528ae636ee4 to your computer and use it in GitHub Desktop.
Messing around with 3DSNP API

Lots of SNPs from 1 chromosome:

curl 'http://biotech.bmi.ac.cn/3dsnp/api.do?chrom=chr1&position=1000000-2000000&format=json&type=basic'

Probably a good idea to save that in a file while you are messing around.

With that saved in file j:

pretty print the result

jq < j .

Get the EUR value for all results:

jq < -r j .[].EUR

Only returns 100 results at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment