duckduckgo/zeroclickinfo-spice — pull request #108 by drsnuggles (2012-10-30 01:21:34+00:00)
Title: Integration of the openSNP-API - find information on Single Nucleotide Polymorphisms

I added support for search of Single Nucleotide Polymorphisms (SNPs) ([Wikipedia](en.wikipedia.org/wiki/Single-nucleotide_polymorphism)) based on the openSNP.org JSON API.

The openSNP-API lists all information that PLOS, Mendeley and SNPedia have stored on that relevant SNP. The SNPedia-table is reproduced because it's short and easy to understand for laymen. PLOS and Mendeley might report too many papers so I just put the counter for these into the output, plus links to the sources.

All search-terms starting with "rs" followed by _n_ numbers without any letters are assumed to be SNP-names, for example ```rs1234``` triggers, while ```rsWhyHelloThere``` does not.

To do: Right now the output is based on ugly string-concatenation, not really sure how to "properly" do that using JS.

Any feedback greatly appreciated, this is my first proper time working with JavaScript.

Here's an example with a properly annotated SNP: http://i.imgur.com/Gypy3.png