comparison gene_family_classifier.xml @ 87:2cb2c3349c57 draft

Uploaded
author greg
date Thu, 23 Feb 2017 14:34:56 -0500
parents 9548303eec2f
children aef4df6e8ee0
comparison
equal deleted inserted replaced
86:9548303eec2f 87:2cb2c3349c57
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
52 #set single_copy_orthogroup = True 52 #set single_copy_orthogroup = True
53 #set single_copy_cond = $specify_single_copy_cond.single_copy_cond 53 #set single_copy_cond = $specify_single_copy_cond.single_copy_cond
54 #set single_copy = $single_copy_cond.single_copy 54 #set single_copy = $single_copy_cond.single_copy
55 #if $create_ortho_sequences: 55 #if $create_ortho_sequences:
56 #set single_copy_fasta_src_dir = $os.path.join('geneFamilyClassification_dir', 'single_copy_fasta') 56 #set single_copy_fasta_src_dir = $os.path.join('geneFamilyClassification_dir', 'single_copy_fasta')
57 #set single_copy_fasta_dest_dir = $output_ptsco.extra_files_path 57 #set single_copy_fasta_dest_dir = $output_ptsco.files_path
58 mkdir -p $single_copy_fasta_dest_dir && 58 mkdir -p $single_copy_fasta_dest_dir &&
59 #end if: 59 #end if:
60 #else: 60 #else:
61 #set single_copy_orthogroup = False 61 #set single_copy_orthogroup = False
62 #end if 62 #end if
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 -e '<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 $os.listdir($orthogroups_fasta_src_dir):
121 && echo -e '<li><a href="$fname">$fname</a></li>\n' >> $out_file
122 #end for
123 && echo -e '</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 -e '<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 $os.listdir($single_copy_fasta_src_dir):
131 && echo -e '<li><a href="$fname">$fname</a></li>\n' >> $output_ptsco
132 #end for
133 && echo -e '</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>