|
| 1 | +<tool id="tiberius" name="Tiberius" version="@VERSION@+galaxy0" profile="24.1"> |
| 2 | + <description>deep learning-based ab initio gene structure prediction</description> |
| 3 | + <macros> |
| 4 | + <import>macros.xml</import> |
| 5 | + </macros> |
| 6 | + <expand macro="xrefs"/> |
| 7 | + <expand macro="requirements"/> |
| 8 | + <command detect_errors="exit_code"><![CDATA[ |
| 9 | +
|
| 10 | +ln -s '$genome' ./genome.fa && |
| 11 | +
|
| 12 | +TF_NUM_INTRAOP_THREADS="\${GALAXY_SLOTS}" |
| 13 | +tiberius.py |
| 14 | +--genome genome.fa |
| 15 | +--model_cfg '${model_cfg.fields.model_cfg}' |
| 16 | +--out output.gtf |
| 17 | +--batch_size '$batch_size' |
| 18 | +
|
| 19 | +#if $model_cfg.fields.softmasking == 'False': |
| 20 | +--no_softmasking |
| 21 | +#end if |
| 22 | +
|
| 23 | + ]]></command> |
| 24 | + <inputs> |
| 25 | + <param argument="--genome" type="data" format="fasta" label="Genome sequence file"/> |
| 26 | + <conditional name="masking"> |
| 27 | + <param name="softmasked" type="select" label="Has your genome been soft-masked?" help="The Tiberius developers recommend using unmasked models. Some models that were trained on soft-masked genomes are avaialable, but these are only appropriate for finding genes in genomes that were soft-masked in the same way as the training data."> |
| 28 | + <option value="unmasked" selected="true">No</option> |
| 29 | + <option value="softmasked">Yes</option> |
| 30 | + </param> |
| 31 | + <when value="unmasked"> |
| 32 | + <param argument="--model_cfg" type="select" label="Model"> |
| 33 | + <options from_data_table="tiberius_models"> |
| 34 | + <filter type="static_value" value="False" column="4"/> |
| 35 | + <filter type="static_value" column="1" value="@VERSION@"/> |
| 36 | + <filter type="sort_by" column="7"/> |
| 37 | + </options> |
| 38 | + </param> |
| 39 | + </when> |
| 40 | + <when value="softmasked"> |
| 41 | + <param argument="--model_cfg" type="select" label="Model"> |
| 42 | + <options from_data_table="tiberius_models"> |
| 43 | + <filter type="static_value" column="1" value="@VERSION@"/> |
| 44 | + <filter type="sort_by" column="7"/> |
| 45 | + </options> |
| 46 | + </param> |
| 47 | + </when> |
| 48 | + </conditional> |
| 49 | + <param argument="--batch_size" type="hidden" value="16"/> |
| 50 | + </inputs> |
| 51 | + <outputs> |
| 52 | + <data format="gtf" name="out_gtf" label="${tool.name} annotation with model ${model_cfg.fields.model_cfg}" from_work_dir="output.gtf"/> |
| 53 | + </outputs> |
| 54 | + <tests> |
| 55 | + <!-- test 1 --> |
| 56 | + <test expect_failure="true" maxseconds="15"> |
| 57 | + <param name="genome" value="KV860338_truncated.fasta.gz"/> |
| 58 | + <conditional name="masking"> |
| 59 | + <param name="model_cfg" value="Vertebrata version 1.1.7"/> |
| 60 | + </conditional> |
| 61 | + <param name="batch_size" value="2"/> |
| 62 | + <assert_command> |
| 63 | + <has_text text="no_softmasking"/> |
| 64 | + </assert_command> |
| 65 | + </test> |
| 66 | + <!-- test 2 --> |
| 67 | + <!-- <test expect_failure="true" maxseconds="30"> |
| 68 | + <param name="genome" value="KV860338_truncated.fasta.gz"/> |
| 69 | + <conditional name="masking"> |
| 70 | + <param name="softmasked" value="softmasked"/> |
| 71 | + <param name="model_cfg" value="Mammalia version 1.1.5 (Soft-masked)"/> |
| 72 | + </conditional> |
| 73 | + <param name="batch_size" value="2"/> |
| 74 | + <assert_command> |
| 75 | + <not_has_text text="no_softmasking"/> |
| 76 | + </assert_command> |
| 77 | + </test> --> |
| 78 | + </tests> |
| 79 | + <help><![CDATA[ |
| 80 | +
|
| 81 | +`Tiberius <https://github.com/Gaius-Augustus/Tiberius>`__ is a |
| 82 | +deep learning-based ab initio gene structure prediction tool. |
| 83 | +It predicts genes from genomic sequence only. |
| 84 | +
|
| 85 | +To run Tiberius, you need to provide a FASTA file containing |
| 86 | +the genomic sequences and choose a pre-trained model. |
| 87 | +
|
| 88 | +More information about the models is available on the |
| 89 | +Tiberius GitHub |
| 90 | +`page <https://github.com/Gaius-Augustus/Tiberius/tree/main/model_cfg>`__ |
| 91 | +
|
| 92 | +Tiberius end-to-end integrates convolutional and |
| 93 | +long short-term memory layers with a differentiable HMM layer. |
| 94 | +It can be used to predict gene structures from genomic |
| 95 | +sequences only (ab initio), while matching the accuracy of |
| 96 | +tools that use extrinsic evidence. |
| 97 | +
|
| 98 | +
|
| 99 | +
|
| 100 | + ]]></help> |
| 101 | + <expand macro="citation"/> |
| 102 | +</tool> |
0 commit comments