Question: Undocumented Tags For Tool Configuration
gravatar for Jelle Scholtalbers
8.2 years ago by
Jelle Scholtalbers360 wrote:
Hey, I was looking through the bowtie_wrapper.xml to get some information about how to use the tool_data_table_conf.xml. There I also noticed in the output section the tag <actions>. Is there any information on this tag as is does seem to be used a lot? Cheers, Jelle
alignment bowtie • 868 views
ADD COMMENTlink modified 8.2 years ago by Kelly Vincent340 • written 8.2 years ago by Jelle Scholtalbers360
gravatar for Kelly Vincent
8.2 years ago by
Kelly Vincent340
Kelly Vincent340 wrote:
Jelle, (I've copied this to galaxy-dev since it's more appropriate to that one) The data table approach is fairly new, so there aren't too many examples yet, although more tools are being converted and will be available soon in the distribution. Basically, there are 3 steps to using it: 1. Modify tool_data_table_conf.xml to specify: - the bowtie data table - the column types in the loc file - It should look something like this: <columns>name, value</columns> <file path="tool-data/bowtie_indices.loc"/>
2. Create/modify the loc file to correspond with the column types specified in tool_data_table_conf.xml (in this example, the loc file doesn't have to be changed), though we are going to be changing the specification to <columns>value, dbkey, name, path</columns> 3. Modify the Bowtie wrapper to use the data table instead of the loc file directly, replacing this: <options from_file="bowtie_indices.loc"> <column name="value" index="1"/> <column name="name" index="0"/> </options> - with this: <options from_data_table="bowtie_indexes"/> The <actions> in the Bowtie wrapper is used in lieu of the deprecated tag to set the dbkey of the output dataset. In bowtie_wrapper.xml, according to the first action block, if the refGenomeSource.genomeSource is "indexed" (not "history"), then it will assign the dbkey of the output file to be the same as that of the reference file. It does this by looking at through the loc file and finding the line that has the value that's been selected in the index dropdown box as column 1 of the loc file entry and using the dbkey, in column 0 (ignoring comment lines (starting with #) along the way). If refGenomeSource.genomeSource is "history", it resorts to default behavior for Galaxy, which is that the output is assigned the same value as the first input that has a dbkey specified. The second block would not be needed for most cases--it is required here to handle the specific case of a small reference file we use for functional testing. It says that if the dbkey has been set to "equCab2chrM" (that's what the <filter type="metadata_value" ...="" column="1"/> tag) does then it should be changed to "equCab2" (the <option type="from_param" ...="" column="0" ...=""> tag does). If you need more information than this, let us know. Regards, Kelly
ADD COMMENTlink written 8.2 years ago by Kelly Vincent340
Hi Kelly, thank you. I added this info also to the wiki for further reference. Cheers, Jelle
ADD REPLYlink written 8.2 years ago by Jelle Scholtalbers360
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 168 users visited in the last hour