|
1 |
| -<tool id="snpEff_build_gb" name="SnpEff build:" version="@WRAPPER_VERSION@.galaxy5"> |
| 1 | +<tool id="snpEff_build_gb" name="SnpEff build:" version="@WRAPPER_VERSION@.galaxy6" profile="22.01"> |
2 | 2 | <description> database from Genbank or GFF record</description>
|
3 | 3 | <macros>
|
4 | 4 | <import>snpEff_macros.xml</import>
|
|
14 | 14 | python3 '$__tool_directory__/gbk2fa.py' '${input_type.input}' '${output_fasta}' ${input_type.remove_version} &&
|
15 | 15 | #end if
|
16 | 16 |
|
17 |
| - mkdir -p '${snpeff_output.files_path}'/'${genome_version}' && |
| 17 | + mkdir -p '${snpeff_output.files_path}/${genome_version}' && |
| 18 | + mkdir -p snpeff_output/'${genome_version}' && |
18 | 19 |
|
19 | 20 | #if str($input_type.input_type_selector) == "gb":
|
20 | 21 | #if $input_type.input.is_of_type("genbank"):
|
21 |
| - ln -s '${input_type.input}' '${snpeff_output.files_path}/${genome_version}/genes.gbk' && |
| 22 | + ln -s '${input_type.input}' 'snpeff_output/${genome_version}/genes.gbk' && |
22 | 23 | #elif $input_type.input.is_of_type("genbank.gz"):
|
23 |
| - ln -s '${input_type.input}' '${snpeff_output.files_path}/${genome_version}/genes.gbk.gz' && |
| 24 | + ln -s '${input_type.input}' 'snpeff_output/${genome_version}/genes.gbk.gz' && |
24 | 25 | #end if
|
25 | 26 | #else:
|
26 | 27 | #if $input_type.reference_source.reference_source_selector == "history":
|
27 | 28 | #if $input_type.reference_source.input_fasta.is_of_type("fasta"):
|
28 |
| - ln -s '${input_type.reference_source.input_fasta}' '${snpeff_output.files_path}/${genome_version}/sequences.fa' && |
| 29 | + ln -s '${input_type.reference_source.input_fasta}' 'snpeff_output/${genome_version}/sequences.fa' && |
29 | 30 | #elif $input_type.reference_source.input_fasta.is_of_type("fasta.gz"):
|
30 |
| - ln -s '${input_type.reference_source.input_fasta}' '${snpeff_output.files_path}/${genome_version}/sequences.fa.gz' && |
| 31 | + ln -s '${input_type.reference_source.input_fasta}' 'snpeff_output/${genome_version}/sequences.fa.gz' && |
31 | 32 | #end if
|
32 | 33 | #elif $input_type.reference_source.reference_source_selector == "cached":
|
33 |
| - ln -s '${input_type.reference_source.ref_file.fields.path}' '${snpeff_output.files_path}/${genome_version}/sequences.fa' && |
| 34 | + ln -s '${input_type.reference_source.ref_file.fields.path}' 'snpeff_output/${genome_version}/sequences.fa' && |
34 | 35 | #end if
|
35 |
| - ln -s '${input_type.input}' '${snpeff_output.files_path}/${genome_version}/genes.${input_type.input_type_selector}' && |
| 36 | + ln -s '${input_type.input}' 'snpeff_output/${genome_version}/genes.${input_type.input_type_selector}' && |
36 | 37 | #end if
|
37 | 38 |
|
38 | 39 | snpEff @JAVA_OPTIONS@ build -v
|
|
45 | 46 | #elif str($input_type.input_type_selector) == "gtf":
|
46 | 47 | -gtf22
|
47 | 48 | #end if
|
48 |
| - -dataDir '${snpeff_output.files_path}' '${genome_version}' && |
| 49 | + -dataDir "\$(pwd)/snpeff_output" '${genome_version}' && |
| 50 | + mv snpeff_output/'${genome_version}'/*.bin '${snpeff_output.files_path}/${genome_version}' && |
49 | 51 | echo '${genome_version}.genome : ${genome_version}' >> '${snpeff_output.files_path}'/snpEff.config &&
|
50 | 52 | echo '${genome_version}.codonTable : ${codon_table}' >> '${snpeff_output.files_path}'/snpEff.config
|
51 | 53 | ]]></command>
|
|
0 commit comments