/snpy

A wrapper-library for reading openSNP data

Primary LanguagePythonDo What The F*ck You Want To Public LicenseWTFPL

   _____ _   _ _____
  / ____| \ | |  __ \
 | (___ |  \| | |__) |   _
  \___ \| . ` |  ___/ | | |
  ____) | |\  | |   | |_| |
 |_____/|_| \_|_|    \__, |
                      __/ |
                     |___/

An easy to use wrapper-library for working with openSNP data. The current implementation only supports local or downloaded files, but JSON API interaction is planned.

All you need to remember at this point is a single function:

>>> import sn
>>> snps = sn.parse("72.ftdna-illumina.36")
>>> sns
>>> snps[:1]
[_SNP(name='rs3094315', variation=None, chromosome='1', position=742429, strand=None, genotype='AA')]