-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline_config.py
51 lines (44 loc) · 1.01 KB
/
pipeline_config.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from moduleultra.pipeline_config_utils import *
from sys import stderr
from os import getenv
PIPE_DIR = fromPipelineDir('')
def scriptDir(fpath):
dname = PIPE_DIR + '/scripts/'
return dname + fpath
def which(tool):
cmd = 'which {}'.format(tool)
return resolveCmd(cmd)
config = {
'megahit_assembly': {
'threads': 16,
'time': 10,
'mem': 60,
'exc': {
'filepath': which('megahit'),
}
},
'concat_contigs': {
'min_length': 10 * 1000,
},
'self_align': {
'threads': 16,
'time': 10,
'mem': 20,
},
'gimmebio': {
'exc': {'filepath': which('gimmebio')}
},
'align_to_nt': {
'threads': 16,
'time': 10,
'mem': 20,
},
'blastn': {
'makedb': {'filepath': which('makeblastdb')},
'exc': {'filepath': which('blastn')},
'nt': {'filepath': getenv('BLAST_NT_DB')},
},
'group_assignments': {
'taxa_map': getenv('NCBI_TAXA_MAP'),
},
}