{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Example: genoset-norovirus","type":"basic","slug":"example-genoset-norovirus","excerpt":"","body":"In this example we will write some code to determine if you are immune to norovirus:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"var dna = require('./your-dna.json');\\n\\nif (dna.rs601338.genotype == 'AA') {\\n  // congrats you are immune!\\n}\",\n      \"language\": \"javascript\"\n    },\n    {\n      \"code\": \"dna = require './your-dna.json'\\n\\nif dna.rs601338.genotype is 'AA'\\n  # congrats you are immune!\",\n      \"language\": \"coffeescript\"\n    }\n  ]\n}\n[/block]\nSimple as that! Here's the whole project published as a module [if you want to check it out](https://github.com/genomejs/genoset-norovirus).","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56735538f79ca90d00ad2eb6","category":{"sync":{"isSync":false,"url":""},"pages":["56735538f79ca90d00ad2eb6","567358274b2a680d00524e17","56735913f79ca90d00ad2eba","56735b4b4b2a680d00524e1d","56735b6b58c4890d00bb54af","56735b8d4b2a680d00524e22","56735ba358c4890d00bb54b1","56735bbff79ca90d00ad2ebd","56735bfd4b2a680d00524e25","56735c188565060d009a8667","56735ca54b2a680d00524e27","56735cbbf65d9c0d002e3cae"],"title":"GQL","slug":"gql","order":3,"from_sync":false,"reference":false,"_id":"5673512458c4890d00bb54a5","version":"5505855aae827939002fca6e","__v":12,"project":"55058559ae827939002fca6b","createdAt":"2015-12-18T00:19:48.195Z"},"user":"54ee2c053749bf0d00c7653c","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5505855aae827939002fca6f","5673511f8565060d009a8659","5673512458c4890d00bb54a5","56736118f65d9c0d002e3cb2"],"_id":"5505855aae827939002fca6e","createdAt":"2015-03-15T13:12:58.366Z","project":"55058559ae827939002fca6b","__v":4,"releaseDate":"2015-03-15T13:12:58.366Z"},"__v":1,"githubsync":"","project":"55058559ae827939002fca6b","createdAt":"2015-12-18T00:37:12.437Z"}

Example: genoset-norovirus


In this example we will write some code to determine if you are immune to norovirus: [block:code] { "codes": [ { "code": "var dna = require('./your-dna.json');\n\nif (dna.rs601338.genotype == 'AA') {\n // congrats you are immune!\n}", "language": "javascript" }, { "code": "dna = require './your-dna.json'\n\nif dna.rs601338.genotype is 'AA'\n # congrats you are immune!", "language": "coffeescript" } ] } [/block] Simple as that! Here's the whole project published as a module [if you want to check it out](https://github.com/genomejs/genoset-norovirus).