在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:genomejs/dna2json开源软件地址:https://github.com/genomejs/dna2json开源编程语言:JavaScript 100.0%开源软件介绍:Information
TerminologySNPA SNP (Single-Nucleotide Polymorphism - pronounced snip) is a variation of a single nucleotide ( Personal genome vendors will typically produce an analysis that covers some of these attributes - but will also provide you with 'raw' data, should you wish to investigate further.Your 'raw' data from any vendor will be a list of several hundred thousand SNPs, located across the autosomes (chromosomes 1-22), the sex chromosomes (X and Y), and possibly the mitochondrial chromosome. Given that your genome contains two copies of each autosome, and either XX (female) or XY (male), the data contains a 'genotype' composed of the two variants at each location. Vendors
* 23andMe picing is 199 USD domestically and 99 USD abroad. CLI UsageUse this if you just want to convert your data to the correct format so you can start querying your genome.
Module Usagevar dna = require('dna2json');
var fs = require('fs');
var txt = fs.readFileSync('dna.txt');
dna.parse(txt, function(err, snps){
// snps = the object with your mutations
}); SNP-JSONEvery vendor has their own format for your DNA. I decided to make a standard format called SNP-JSON. This library will convert custom formats to this standard. SNP-JSON looks like this {
"rs4477212": {
"chromosome": 1,
"genotype": "AA"
},
"rs3094315": {
"chromosome": 1,
"genotype": "AA"
},
"rs3131972": {
"chromosome": 1,
"genotype": "GG"
},
"rs12124819": {
"chromosome": 1,
"genotype": "AA"
},
"rs11240777": {
"chromosome": 1,
"genotype": "GG"
},
"rs6681049": {
"chromosome": 1,
"genotype": "CC"
},
...
} Explanation:
Differences between formatsSNP-JSON, SNPedia and vendor formats use different notations to indicate indels and no-calls.
Using your SNP-JSONJust Write Code™In this example we will determine if you are immune to norovirus: var dna = require('./dna.json');
if (dna.rs601338.genotype == 'AA') {
// congrats you are immune!
} GenosetsOnce you have your data in the right format you can use the library of genosets by genomejs. You can view a list of these by searching npm for genoset You can also publish your own tools that analyze your DNA! Here is a tool that we recommend to get you started GQL LICENSE(MIT License) Copyright (c) 2013-2016 Fractal [email protected] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论