-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgenedb.js
36 lines (30 loc) · 837 Bytes
/
genedb.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const commander = require('commander');
const {createSnps, createGenotypes, translateSnps, translateGenotypes} = require('./snpedia');
commander
.version('1.0.0')
.description('Create different genetic databases locally.');
commander
.command('createsnps')
.description('Create snps from snpedia if not exist.')
.action(()=>{
createSnps();
});
commander
.command('creategenotypes')
.description('Create all genotypes of a snp')
.action(()=>{
createGenotypes();
});
commander
.command('translatesnps')
.description('Translate snps into Chinese')
.action(()=>{
translateSnps();
});
commander
.command('translategenotypes')
.description('Translate genotypes into Chinese')
.action(()=>{
translateGenotypes();
});
commander.parse(process.argv);