Mercurial > repos > iuc > raxml
annotate raxml.py @ 1:ba29b5e2a4be draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
author | iuc |
---|---|
date | Tue, 27 Jun 2017 16:27:39 -0400 |
parents | 6805e85573b8 |
children | a4b71be30c3c |
rev | line source |
---|---|
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
1 #!/usr/bin/env python |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
2 """ |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
3 Runs RAxML on a sequence file. |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
4 For use with RAxML version 8.2.4 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
5 """ |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
6 import fnmatch |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
7 import glob |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
8 import optparse |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
9 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
10 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
11 def getint(name): |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
12 basename = name.partition('RUN.') |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
13 if basename[2] != '': |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
14 num = basename[2] |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
15 return int(num) |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
16 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
17 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
18 def __main__(): |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
19 # Parse the primary wrapper's command line options |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
20 parser = optparse.OptionParser() |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
21 # (-b) |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
22 parser.add_option("--bootseed", action="store", type="int", dest="bootseed", help="Random number for non-parametric bootstrapping") |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
23 # (-N/#) |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
24 parser.add_option("--number_of_runs", action="store", type="int", dest="number_of_runs", default=1, help="Number of alternative runs") |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
25 # (-q) |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
26 parser.add_option("--multiple_model", action="store", type="string", dest="multiple_model", help="Multiple Model File") |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
27 # (-x) |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
28 parser.add_option("--rapid_bootstrap_random_seed", action="store", type="int", dest="rapid_bootstrap_random_seed", help="Rapid Boostrap Random Seed") |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
29 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
30 (options, args) = parser.parse_args() |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
31 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
32 # Multiple runs - concatenate |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
33 if options.number_of_runs > 1: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
34 if options.bootseed is None and options.rapid_bootstrap_random_seed is None: |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
35 runfiles = glob.glob('RAxML*RUN*') |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
36 runfiles.sort(key=getint) |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
37 # Logs |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
38 with open('RAxML_log.galaxy', 'w') as outfile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
39 for filename in runfiles: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
40 if fnmatch.fnmatch(filename, 'RAxML_log.galaxy.RUN.*'): |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
41 with open(filename, 'r') as infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
42 filename_line = "%s\n" % filename |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
43 outfile.write(filename_line) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
44 for line in infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
45 outfile.write(line) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
46 # Parsimony Trees |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
47 with open('RAxML_parsimonyTree.galaxy', 'w') as outfile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
48 for filename in runfiles: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
49 if fnmatch.fnmatch(filename, 'RAxML_parsimonyTree.galaxy.RUN.*'): |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
50 with open(filename, 'r') as infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
51 filename_line = "%s\n" % filename |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
52 outfile.write(filename_line) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
53 for line in infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
54 outfile.write(line) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
55 # Results |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
56 with open('RAxML_result.galaxy', 'w') as outfile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
57 for filename in runfiles: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
58 if fnmatch.fnmatch(filename, 'RAxML_result.galaxy.RUN.*'): |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
59 with open(filename, 'r') as infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
60 filename_line = "%s\n" % filename |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
61 outfile.write(filename_line) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
62 for line in infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
63 outfile.write(line) |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
64 # Multiple Model Partition Files |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
65 if options.multiple_model: |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
66 files = glob.glob('RAxML_bestTree.galaxy.PARTITION.*') |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
67 if len(files) > 0: |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
68 files.sort(key=getint) |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
69 # Best Tree Partitions |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
70 with open('RAxML_bestTreePartitions.galaxy', 'w') as outfile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
71 for filename in files: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
72 if fnmatch.fnmatch(filename, 'RAxML_bestTree.galaxy.PARTITION.*'): |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
73 with open(filename, 'r') as infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
74 filename_line = "%s\n" % filename |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
75 outfile.write(filename_line) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
76 for line in infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
77 outfile.write(line) |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
78 else: |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
79 with open('RAxML_bestTreePartitions.galaxy', 'w') as outfile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
80 outfile.write("No partition files were produced.\n") |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
81 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
82 # Result Partitions |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
83 files = glob.glob('RAxML_result.galaxy.PARTITION.*') |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
84 if len(files) > 0: |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
85 files.sort(key=getint) |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
86 with open('RAxML_resultPartitions.galaxy', 'w') as outfile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
87 for filename in files: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
88 if fnmatch.fnmatch(filename, 'RAxML_result.galaxy.PARTITION.*'): |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
89 with open(filename, 'r') as infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
90 filename_line = "%s\n" % filename |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
91 outfile.write(filename_line) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
92 for line in infile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
93 outfile.write(line) |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
94 else: |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
95 with open('RAxML_resultPartitions.galaxy', 'w') as outfile: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
96 outfile.write("No partition files were produced.\n") |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
97 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
98 # DEBUG options |
1
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
99 with open('RAxML_info.galaxy', 'a') as infof: |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
100 infof.write('\nOM: CLI options DEBUG START:\n') |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
101 infof.write(options.__repr__()) |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
102 infof.write('\nOM: CLI options DEBUG END\n') |
ba29b5e2a4be
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raxml commit b23553a3d29d50e05d8b37a5c5780e3ffc937069
iuc
parents:
0
diff
changeset
|
103 |
0
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
104 |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
105 if __name__ == "__main__": |
6805e85573b8
planemo upload for repository https://github.com/stamatak/standard-RAxML commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents:
diff
changeset
|
106 __main__() |