4
4
"""
5
5
File : BtInput.py
6
6
Version : 0.1
7
- Author : Dominik R. Laetsch, dominik.laetsch at gmail dot com
7
+ Author : Dominik R. Laetsch, dominik.laetsch at gmail dot com
8
8
Bugs : ?
9
9
To do : ?
10
10
"""
19
19
20
20
def validate_input_create (main_dir , args ):
21
21
'''
22
- Accepts:
22
+ Accepts:
23
23
- main_dir
24
24
- docopt args
25
25
Returns:
@@ -32,7 +32,7 @@ def validate_input_create(main_dir, args):
32
32
- taxrules
33
33
- out_f
34
34
'''
35
- ASSEMBLY_TYPES = [None , 'spades' , 'soap' , 'abyss' , 'velvet' ]
35
+ ASSEMBLY_TYPES = [None , 'spades' , 'soap' , 'abyss' , 'velvet' , 'platanus' ]
36
36
37
37
fasta_f = args ['--infile' ]
38
38
fasta_type = args ['--type' ]
@@ -51,7 +51,7 @@ def validate_input_create(main_dir, args):
51
51
nodes_f = args ['--nodes' ]
52
52
taxrules = args ['--taxrule' ]
53
53
title = args ['--title' ] if (args ['--title' ]) else out_f
54
-
54
+
55
55
# Do files exist ?
56
56
files = [x for x in list ([fasta_f ] + sam_fs + bam_fs + cov_fs + cas_fs + [names_f ] + [nodes_f ] + hit_fs ) if x is not None ]
57
57
for f in files :
@@ -74,11 +74,11 @@ def validate_input_create(main_dir, args):
74
74
cov_libs = [bt .CovLibObj ('bam' + str (idx ), 'bam' , lib_f ) for idx , lib_f in enumerate (bam_fs )] + \
75
75
[bt .CovLibObj ('sam' + str (idx ), 'sam' , lib_f ) for idx , lib_f in enumerate (sam_fs )] + \
76
76
[bt .CovLibObj ('cas' + str (idx ), 'cas' , lib_f ) for idx , lib_f in enumerate (cas_fs )] + \
77
- [bt .CovLibObj ('cov' + str (idx ), 'cov' , lib_f ) for idx , lib_f in enumerate (cov_fs )]
77
+ [bt .CovLibObj ('cov' + str (idx ), 'cov' , lib_f ) for idx , lib_f in enumerate (cov_fs )]
78
78
79
79
hit_libs = [bt .hitLibObj ('tax' + str (idx ), 'tax' , lib_f ) for idx , lib_f in enumerate (hit_fs )]
80
80
81
81
return title , fasta_f , fasta_type , cov_libs , hit_libs , taxrules , nodesDB_f , nodes_f , names_f , out_f
82
82
83
- if __name__ == "__main__" :
83
+ if __name__ == "__main__" :
84
84
pass
0 commit comments