Mercurial > repos > greg > gene_family_classifier
comparison gene_family_classifier.xml @ 80:f71d34c9e6fc draft
Uploaded
author | greg |
---|---|
date | Thu, 23 Feb 2017 08:39:30 -0500 |
parents | 887abff6ee25 |
children | d8975fc916e0 |
comparison
equal
deleted
inserted
replaced
79:887abff6ee25 | 80:f71d34c9e6fc |
---|---|
35 #set orthogroups_fasta_src_dir = $os.path.join('geneFamilyClassification_dir', 'orthogroups_fasta') | 35 #set orthogroups_fasta_src_dir = $os.path.join('geneFamilyClassification_dir', 'orthogroups_fasta') |
36 #set create_corresponding_coding_sequences_cond = $create_orthogroup_cond.create_corresponding_coding_sequences_cond | 36 #set create_corresponding_coding_sequences_cond = $create_orthogroup_cond.create_corresponding_coding_sequences_cond |
37 | 37 |
38 #if str($create_corresponding_coding_sequences_cond.create_corresponding_coding_sequences) == 'yes': | 38 #if str($create_corresponding_coding_sequences_cond.create_corresponding_coding_sequences) == 'yes': |
39 #set create_corresponding_coding_sequences = True | 39 #set create_corresponding_coding_sequences = True |
40 #set orthogroups_fasta_dest_dir = $output_ptorthocs.extra_files_path | 40 #set orthogroups_fasta_dest_dir = $output_ptorthocs.files_path |
41 #else: | 41 #else: |
42 #set create_corresponding_coding_sequences = False | 42 #set create_corresponding_coding_sequences = False |
43 #set orthogroups_fasta_dest_dir = $output_ptortho.extra_files_path | 43 #set orthogroups_fasta_dest_dir = $output_ptortho.files_path |
44 #end if | 44 #end if |
45 mkdir -p $orthogroups_fasta_dest_dir && | 45 mkdir -p $orthogroups_fasta_dest_dir && |
46 #else: | 46 #else: |
47 #set create_ortho_sequences = False | 47 #set create_ortho_sequences = False |
48 #set create_corresponding_coding_sequences = False | 48 #set create_corresponding_coding_sequences = False |
110 #end if | 110 #end if |
111 #end if | 111 #end if |
112 | 112 |
113 #if $create_ortho_sequences: | 113 #if $create_ortho_sequences: |
114 #if $create_corresponding_coding_sequences: | 114 #if $create_corresponding_coding_sequences: |
115 && echo -e "#Size\tName" > $output_ptorthocs | 115 # set out_file = $output_ptorthocs |
116 && ls -l $orthogroups_fasta_src_dir | grep f | awk -F ' ' '{print $5"\t"$9}' >> $output_ptorthocs | 116 #else: |
117 #else: | 117 # set out_file = $output_ptortho |
118 && echo -e "#Size\tName" > $output_ptortho | 118 #end if |
119 && ls -l $orthogroups_fasta_src_dir | grep f | awk -F ' ' '{print $5"\t"$9}' >> $output_ptortho | 119 && echo '<html>\n<head>\n<title>Galaxy - GeneFamilyClassifier Output</title>\n</head>\n<body>\n<p/>\n<ul>\n' > $out_file |
120 #end if | 120 #for $fname in sorted($os.listdir($orthogroups_fasta_src_dir)): |
121 && echo '<li><a href="$fname">$fname</a></li>\n' >> $out_file | |
122 #end for | |
123 && echo '</ul>\n</body>\n</html>\n' >> $out_file | |
121 && mv $orthogroups_fasta_src_dir/* $orthogroups_fasta_dest_dir || true | 124 && mv $orthogroups_fasta_src_dir/* $orthogroups_fasta_dest_dir || true |
122 #end if | 125 #end if |
123 | 126 |
124 #if $single_copy_orthogroup: | 127 #if $single_copy_orthogroup: |
125 #if $create_ortho_sequences: | 128 #if $create_ortho_sequences: |
126 && echo -e "#Size\tName" > $output_ptsco | 129 && echo '<html>\n<head>\n<title>Galaxy - GeneFamilyClassifier Output</title>\n</head>\n<body>\n<p/>\n<ul>\n' > $output_ptsco |
127 && ls -l $single_copy_fasta_src_dir | grep f | awk -F ' ' '{print $5"\t"$9}' >> $output_ptsco | 130 #for $fname in sorted($os.listdir($orthogroups_fasta_src_dir)): |
131 && echo '<li><a href="$fname">$fname</a></li>\n' >> $output_ptsco | |
132 #end for | |
133 && echo '</ul>\n</body>\n</html>\n' >> $output_ptsco | |
128 && mv $single_copy_fasta_src_dir/* $single_copy_fasta_dest_dir || true | 134 && mv $single_copy_fasta_src_dir/* $single_copy_fasta_dest_dir || true |
129 #end if | 135 #end if |
130 #end if | 136 #end if |
131 ]]> | 137 ]]> |
132 </command> | 138 </command> |