|
11 | 11 | </requirements>
|
12 | 12 | <version_command>compleasm --version</version_command>
|
13 | 13 | <command><![CDATA[
|
14 |
| - |
15 |
| - mkdir -p galaxy_db && |
16 |
| - cp -r '${busco_database.fields.path}/lineages/${lineage_dataset}/' 'galaxy_db/' && |
| 14 | + mkdir -p 'galaxy_db/' && |
| 15 | + ln -s '${busco_database.fields.path}/lineages/${lineage_dataset}/' 'galaxy_db/${lineage_dataset}' && |
| 16 | + touch 'galaxy_db/${lineage_dataset}.done' && |
17 | 17 |
|
18 | 18 | compleasm run
|
19 | 19 | -a '$input'
|
20 | 20 | -o galaxy_output
|
21 | 21 | --mode $mode
|
22 | 22 | -L 'galaxy_db'
|
23 | 23 | -l '$lineage_dataset'
|
24 |
| - -t "\${GALAXY_SLOTS:-1}" |
| 24 | + -t "\${GALAXY_SLOTS:-1}" |
25 | 25 |
|
26 | 26 | #if str($specified_contigs) != '':
|
27 | 27 | --specified_contigs '$specified_contigs'
|
|
43 | 43 | </sanitizer>
|
44 | 44 | <validator type="regex">[0-9a-zA-Z_ ]+</validator>
|
45 | 45 | </param>
|
46 |
| - |
| 46 | + |
47 | 47 | <param name="outputs" type="select" multiple="true" label="Which outputs should be generated">
|
48 | 48 | <option value="full_table_busco" selected="true">full busco table</option>
|
49 | 49 | <option value="full_table">full table</option>
|
|
72 | 72 | </data>
|
73 | 73 | <data name='translated_protein' format='fasta' label="${tool.name} on ${on_string}: Translated protein" from_work_dir="galaxy_output/*_odb10/translated_protein.fasta">
|
74 | 74 | <filter>outputs and 'translated_protein' in outputs</filter>
|
75 |
| - </data> |
| 75 | + </data> |
76 | 76 | </outputs>
|
77 | 77 |
|
78 | 78 | <tests>
|
79 | 79 | <test expect_num_outputs="4">
|
80 | 80 | <param name="input" value="small_genome.fasta"/>
|
81 | 81 | <param name="mode" value="busco"/>
|
82 | 82 | <param name="outputs" value="full_table_busco,full_table,miniprot,translated_protein"/>
|
83 |
| - <param name="busco_database" value="eukaryota_odb10"/> |
84 |
| - <param name="lineage_dataset" value="eukaryota_odb10"/> |
| 83 | + <param name="busco_database" value="entomoplasmatales_odb10"/> |
| 84 | + <param name="lineage_dataset" value="entomoplasmatales_odb10"/> |
85 | 85 | <output name="full_table_busco">
|
86 | 86 | <assert_contents>
|
87 | 87 | <has_text text="Busco id"/>
|
88 |
| - <has_text text="Missing"/> |
| 88 | + <has_text text="496at186328	Missing"/> |
| 89 | + <has_text text="165at186328	Complete"/> |
| 90 | + <has_text text="421at186328	Complete"/> |
| 91 | + <has_text text="90at186328	Complete"/> |
89 | 92 | </assert_contents>
|
90 | 93 | </output>
|
91 | 94 | <output name="full_table">
|
92 | 95 | <assert_contents>
|
93 |
| - <has_text text="Gene"/> |
94 |
| - <has_text text="Missing"/> |
| 96 | + <has_text text="Gene	Status"/> |
| 97 | + <has_text text="496at186328	Missing"/> |
| 98 | + <has_text text="165at186328	Single"/> |
| 99 | + <has_text text="421at186328	Single"/> |
| 100 | + <has_text text="90at186328	Single"/> |
95 | 101 | </assert_contents>
|
96 | 102 | </output>
|
97 | 103 | <output name="miniprot">
|
|
101 | 107 | </output>
|
102 | 108 | <output name="translated_protein">
|
103 | 109 | <assert_contents>
|
104 |
| - <has_text text="GGWLIGNGGAGGSGAAGVNGGAGGNGGAGGNGGAGG"/> |
105 |
| - <has_text text="AAVFADRGAHVVLAVRNLEKGNAARARIMAARPGAHVTLQQLDLCSLDSVRAAADALRTAYPRIDVLINNAGVMW"/> |
| 110 | + <has_text text="EKDFYQELGVSSDASPEEIKRAYRKLARDLHPDANPGNPAA"/> |
| 111 | + <has_text text="AASITILEGLEAVRKRPGMYIGSTGERGLHHLIWEVVD"/> |
106 | 112 | </assert_contents>
|
107 | 113 | </output>
|
| 114 | + <assert_stdout> |
| 115 | + <has_text text="S:1.20%, 4"/> |
| 116 | + </assert_stdout> |
108 | 117 | </test>
|
109 | 118 | </tests>
|
110 | 119 | <help><![CDATA[
|
111 | 120 |
|
112 |
| - compleasm_ assesses genome completeness based on genome assembly. |
| 121 | + compleasm_ assesses genome completeness based on genome assembly. |
113 | 122 |
|
114 | 123 | .. _compleasm: https://github.com/huangnengCSU/compleasm
|
115 | 124 |
|
116 |
| - ]]> |
| 125 | + ]]> |
117 | 126 | </help>
|
118 | 127 | <expand macro="citation"/>
|
119 | 128 | </tool>
|
0 commit comments