Mercurial > repos > iuc > qiime_count_seqs
annotate jackknifed_beta_diversity_output_management.py @ 5:448ee8099a65 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit c845cb240f57663cf1e2240c5c506ea0b294872c"
author | iuc |
---|---|
date | Thu, 05 Dec 2019 08:00:34 -0500 |
parents | 0b33f6fd92a3 |
children |
rev | line source |
---|---|
0
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
1 #!/usr/bin/env python |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
2 # -*- coding: utf-8 -*- |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
3 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
4 import argparse |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
5 import os |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
6 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
7 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
8 def generate_index_html(dir_list, args): |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
9 with open(args.html_file, 'w') as index_html_file: |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
10 s = '<html>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
11 s += '\t<head>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
12 s += '\t\t<title>Jackknifed beta diversity results</title>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
13 s += '\t</head>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
14 s += '\t<body>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
15 s += '\t\t<a href="http://www.qiime.org" target="_blank">' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
16 s += '<img src="http://qiime.org/_static/wordpressheader.png"' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
17 s += 'alt="www.qiime.org""/></a>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
18 s += '\t\t<p>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
19 s += '\t\t\tEmperor PCoA plot after jacknifed beta diversity\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
20 s += '\t\t\t<ul>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
21 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
22 for directory in dir_list: |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
23 if directory == 'rarefaction' or directory == 'unrarefied_bdiv': |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
24 continue |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
25 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
26 s += '\t\t\t\t<li><a href="' + directory |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
27 s += '/index.html">PCoA plots</a></td></li>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
28 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
29 s += '\t\t\t</ul>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
30 s += '\t\t</p>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
31 s += '\t</body>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
32 s += '</html>\n' |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
33 index_html_file.write(s) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
34 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
35 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
36 def build_html(args): |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
37 os.mkdir(args.html_dir) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
38 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
39 dir_list = [name for name in os.listdir(args.data_directory) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
40 if os.path.isdir(os.path.join( |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
41 args.data_directory, |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
42 name))] |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
43 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
44 generate_index_html(dir_list, args) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
45 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
46 os.mkdir(args.data_directory + '/pcoa') |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
47 os.mkdir(args.data_directory + '/rare_dm') |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
48 os.mkdir(args.data_directory + '/rare_upgma') |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
49 os.mkdir(args.data_directory + '/upgma_cmp') |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
50 os.mkdir(args.data_directory + '/rare_upgma_consensus') |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
51 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
52 for directory in dir_list: |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
53 if directory == 'rarefaction' or directory == 'unrarefied_bdiv': |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
54 continue |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
55 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
56 input_dir = os.path.join(args.data_directory, directory) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
57 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
58 input_path = os.path.join(input_dir, "emperor_pcoa_plots") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
59 output_path = os.path.join(args.html_dir, directory) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
60 cmd = 'cp -r ' + input_path + ' ' + output_path |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
61 os.system(cmd) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
62 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
63 input_path = os.path.join(input_dir, "pcoa/*") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
64 output_path = os.path.join(args.data_directory, "pcoa") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
65 cmd = 'cp -r ' + input_path + ' ' + output_path |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
66 os.system(cmd) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
67 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
68 input_path = os.path.join(input_dir, "rare_dm/*") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
69 output_path = os.path.join(args.data_directory, "rare_dm") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
70 cmd = 'cp -r ' + input_path + ' ' + output_path |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
71 os.system(cmd) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
72 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
73 input_path = os.path.join(input_dir, "rare_upgma/*") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
74 output_path = os.path.join(args.data_directory, "rare_upgma") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
75 cmd = 'cp -r ' + input_path + ' ' + output_path |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
76 os.system(cmd) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
77 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
78 input_path = os.path.join(input_dir, "upgma_cmp/*") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
79 output_path = os.path.join(args.data_directory, "upgma_cmp") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
80 cmd = 'cp -r ' + input_path + ' ' + output_path |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
81 os.system(cmd) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
82 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
83 input_path = os.path.join(input_dir, "rare_upgma_consensus.tre") |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
84 output_path = os.path.join( |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
85 args.data_directory, |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
86 "rare_upgma_consensus", |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
87 directory + '.tre') |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
88 cmd = 'cp ' + input_path + ' ' + output_path |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
89 os.system(cmd) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
90 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
91 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
92 if __name__ == '__main__': |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
93 parser = argparse.ArgumentParser() |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
94 parser.add_argument('--data_directory', required=True) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
95 parser.add_argument('--html_file', required=True) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
96 parser.add_argument('--html_dir', required=True) |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
97 args = parser.parse_args() |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
98 |
0b33f6fd92a3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
iuc
parents:
diff
changeset
|
99 build_html(args) |