annotate load_ref_data.xml @ 0:faeb871ac76d draft

Uploaded
author ieguinoa
date Tue, 25 May 2021 21:51:27 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
1 <tool id="load_reference_datasets" name="Load built-in reference data to history" version="0.0.1" >
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
2 <command><![CDATA[
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
3 #if $input_source.table_type_selector == "gff":
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
4 out_name=\$(sed 's/ /_/g' <<< "$input_source.gff.fields.name");
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
5 cp $input_source.gff.fields.path \$out_name.gff;
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
6 #else:
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
7 out_name=\$(sed 's/ /_/g' <<< "$input_source.fasta.fields.name");
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
8 cp $input_source.fasta.fields.path \$out_name.fasta;
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
9 #end if
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
10 ]]></command>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
11 <inputs>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
12 <conditional name="input_source">
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
13 <param name="table_type_selector" type="select" label="Select the type of file you want to access">
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
14 <option value="gff" selected='True'>Annotations (GFF/GTF) files</option>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
15 <option value="fasta">FASTA Files (Genomes files / cDNA / etc)</option>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
16 </param>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
17 <when value="full">
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
18 <param name="gff" type="select" label="Select the annotation file from the list" help="If your genome of interest is not listed contact the Galaxy admin">
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
19 <options from_data_table="all_gff"/>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
20 </param>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
21 </when>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
22 <when value="fasta">
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
23 <param name="fasta" type="select" label="Select the FASTA file from the list" help="if your genome of interest is not listed contact the Galaxy admin">
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
24 <options from_data_table="all_fasta"/>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
25 </param>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
26
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
27 </when>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
28 </conditional>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
29 </inputs>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
30 <outputs>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
31 <data name="copied_file" label="">
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
32 <discover_datasets pattern="__designation_and_ext__" visible="true" />
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
33 </data>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
34 </outputs>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
35 <help>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
36 **What it does**
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
37
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
38 This tool allows loading different built-in datasets into your history using the same data tables access that any other tool uses.
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
39
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
40
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
41 </help>
faeb871ac76d Uploaded
ieguinoa
parents:
diff changeset
42 </tool>