comparison gene_family_classifier.xml @ 85:97f9b65d8e44 draft

Uploaded
author greg
date Thu, 23 Feb 2017 09:35:18 -0500
parents 2b9ceaf853cf
children 9548303eec2f
comparison
equal deleted inserted replaced
84:2b9ceaf853cf 85:97f9b65d8e44
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
115 #set out_file = $output_ptorthocs 115 #set out_file = $output_ptorthocs
116 #else: 116 #else:
117 #set out_file = $output_ptortho 117 #set out_file = $output_ptortho
118 #end if 118 #end if
119 && echo -e '<html>\n<head>\n<title>Galaxy - GeneFamilyClassifier Output</title>\n</head>\n<body>\n<p/>\n<ul>\n' > $out_file 119 && echo -e '<html>\n<head>\n<title>Galaxy - GeneFamilyClassifier Output</title>\n</head>\n<body>\n<p/>\n<ul>\n' > $out_file
120 #for $fname in sorted($os.listdir($orthogroups_fasta_src_dir)): 120 #for $fname in $os.listdir($orthogroups_fasta_src_dir):
121 && echo -e '<li><a href="$fname">$fname</a></li>\n' >> $out_file 121 && echo -e '<li><a href="$fname">$fname</a></li>\n' >> $out_file
122 #end for 122 #end for
123 && echo -e '</ul>\n</body>\n</html>\n' >> $out_file 123 && echo -e '</ul>\n</body>\n</html>\n' >> $out_file
124 && mv $orthogroups_fasta_src_dir/* $orthogroups_fasta_dest_dir || true 124 && mv $orthogroups_fasta_src_dir/* $orthogroups_fasta_dest_dir || true
125 #end if 125 #end if
126 126
127 #if $single_copy_orthogroup: 127 #if $single_copy_orthogroup:
128 #if $create_ortho_sequences: 128 #if $create_ortho_sequences:
129 && echo -e '<html>\n<head>\n<title>Galaxy - GeneFamilyClassifier Output</title>\n</head>\n<body>\n<p/>\n<ul>\n' > $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
130 #for $fname in sorted($os.listdir($single_copy_fasta_src_dir)): 130 #for $fname in $os.listdir($single_copy_fasta_src_dir):
131 && echo -e '<li><a href="$fname">$fname</a></li>\n' >> $output_ptsco 131 && echo -e '<li><a href="$fname">$fname</a></li>\n' >> $output_ptsco
132 #end for 132 #end for
133 && echo -e '</ul>\n</body>\n</html>\n' >> $output_ptsco 133 && echo -e '</ul>\n</body>\n</html>\n' >> $output_ptsco
134 && 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
135 #end if 135 #end if