comparison data_manager/macros.xml @ 6:64deddb6a8ec draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_star_index_builder commit 57f71aa633a43ab02bbf05acd0c6d7f406e01f1e"
author iuc
date Thu, 28 Nov 2019 15:48:56 -0500
parents f5eb9afa8f8a
children 6c6c6df09e64
comparison
equal deleted inserted replaced
5:f5eb9afa8f8a 6:64deddb6a8ec
1 <macros> 1 <macros>
2 <!-- REMEMBER to bump the version of rna_star_index_builder_data_manager 2 <!-- REMEMBER to bump the version of rna_star_index_builder_data_manager
3 whenever you make changes to the following two version tokens! 3 whenever you make changes to the following two version tokens!
4 The data manager uses a symlink to this macro file to keep the versions in 4 The data manager uses a symlink to this macro file to keep the STAR and
5 sync. --> 5 the index versions in sync, but you should manually adjust the +galaxy
6 version number. -->
6 <!-- STAR version to be used --> 7 <!-- STAR version to be used -->
7 <token name="@VERSION@">2.7.2a</token> 8 <token name="@VERSION@">2.7.2b</token>
8 <!-- STAR index version compatible with this version of STAR 9 <!-- STAR index version compatible with this version of STAR
9 This is the STAR version that introduced the index structure expected 10 This is the STAR version that introduced the index structure expected
10 by the current version. 11 by the current version.
11 It can be found for any specific version of STAR with: 12 It can be found for any specific version of STAR with:
12 STAR -h | grep versionGenome 13 STAR -h | grep versionGenome
16 17
17 <xml name="requirements"> 18 <xml name="requirements">
18 <requirements> 19 <requirements>
19 <requirement type="package" version="@VERSION@">star</requirement> 20 <requirement type="package" version="@VERSION@">star</requirement>
20 <requirement type="package" version="1.9">samtools</requirement> 21 <requirement type="package" version="1.9">samtools</requirement>
22 <yield />
21 </requirements> 23 </requirements>
22 </xml> 24 </xml>
23 25
24 <xml name="index_selection" token_with_gene_model="1"> 26 <xml name="index_selection" token_with_gene_model="0">
25 <param argument="--genomeDir" name="genomeDir" type="select" 27 <param argument="--genomeDir" name="genomeDir" type="select"
26 label="Select reference genome" 28 label="Select reference genome"
27 help="If your genome of interest is not listed, contact the Galaxy team"> 29 help="If your genome of interest is not listed, contact the Galaxy team">
28 <options from_data_table="rnastar_index2_versioned"> 30 <options from_data_table="rnastar_index2_versioned">
29 <filter type="static_value" column="4" value="@WITH_GENE_MODEL@" /> 31 <filter type="static_value" column="4" value="@WITH_GENE_MODEL@" />
86 #end if 88 #end if
87 --runThreadN \${GALAXY_SLOTS:-4} 89 --runThreadN \${GALAXY_SLOTS:-4}
88 && 90 &&
89 #end if 91 #end if
90 ]]></token> 92 ]]></token>
91 <token name="@REFGENOMEHANDLING" ><![CDATA[ 93 <token name="@REFGENOMEHANDLING@" ><![CDATA[
92 --runThreadN \${GALAXY_SLOTS:-4} 94 --runThreadN \${GALAXY_SLOTS:-4}
93 --genomeLoad NoSharedMemory 95 --genomeLoad NoSharedMemory
94 --genomeDir 96 --genomeDir
95 #if str($refGenomeSource.geneSource) == 'history': 97 #if str($refGenomeSource.geneSource) == 'history':
96 tempstargenomedir 98 tempstargenomedir
97 #else: 99 #else:
98 '${refGenomeSource.GTFconditional.genomeDir.fields.path}' 100 '${refGenomeSource.GTFconditional.genomeDir.fields.path}'
99 ## Handle difference between indices with/without annotations 101 ## Handle difference between indices with/without annotations
100 #if str($refGenomeSource.GTFconditional.GTFselect) == 'with-gtf': 102 #if str($refGenomeSource.GTFconditional.GTFselect) == 'without-gtf':
101 #if $refGenomeSource.GTFconditional.sjdbGTFfile: 103 #if $refGenomeSource.GTFconditional.sjdbGTFfile:
102 --sjdbOverhang $refGenomeSource.GTFconditional.sjdbOverhang 104 --sjdbOverhang $refGenomeSource.GTFconditional.sjdbOverhang
103 --sjdbGTFfile '${refGenomeSource.GTFconditional.sjdbGTFfile}' 105 --sjdbGTFfile '${refGenomeSource.GTFconditional.sjdbGTFfile}'
104 #if str($refGenomeSource.GTFconditional.sjdbGTFfile.ext) == 'gff3': 106 #if str($refGenomeSource.GTFconditional.sjdbGTFfile.ext) == 'gff3':
105 --sjdbGTFtagExonParentTranscript Parent 107 --sjdbGTFtagExonParentTranscript Parent
112 <stdio> 114 <stdio>
113 <regex match="FATAL error" source="both" level="fatal"/> 115 <regex match="FATAL error" source="both" level="fatal"/>
114 <regex match="EXITING: FATAL INPUT ERROR:" source="both" level="fatal"/> 116 <regex match="EXITING: FATAL INPUT ERROR:" source="both" level="fatal"/>
115 <regex match="EXITING: fatal error trying to allocate genome arrays, exception thrown: std::bad_alloc" source="both" level="fatal"/> 117 <regex match="EXITING: fatal error trying to allocate genome arrays, exception thrown: std::bad_alloc" source="both" level="fatal"/>
116 <regex match="\[sam_read1\] missing header\? Abort!" source="both" level="fatal"/> 118 <regex match="\[sam_read1\] missing header\? Abort!" source="both" level="fatal"/>
119 <yield />
117 </stdio> 120 </stdio>
118 </xml> 121 </xml>
119 <xml name="refgenomehandling" > 122 <xml name="refgenomehandling" >
120 <conditional name="refGenomeSource"> 123 <conditional name="refGenomeSource">
121 <param name="geneSource" type="select" label="Custom or built-in reference genome" help="Built-ins were indexed using default options"> 124 <param name="geneSource" type="select" label="Custom or built-in reference genome" help="Built-ins were indexed using default options">
125 <when value="indexed"> 128 <when value="indexed">
126 <conditional name="GTFconditional"> 129 <conditional name="GTFconditional">
127 <param name="GTFselect" type="select" 130 <param name="GTFselect" type="select"
128 label="Reference genome with or without an annotation" 131 label="Reference genome with or without an annotation"
129 help="Select the '... with builtin gene-model' option to select from the list of available indexes that were built with splice junction information. Select the '... without builtin gene-model' option to select from the list of available indexes without annotated splice junctions."> 132 help="Select the '... with builtin gene-model' option to select from the list of available indexes that were built with splice junction information. Select the '... without builtin gene-model' option to select from the list of available indexes without annotated splice junctions.">
130 <option value="without-gtf">use genome reference with builtin gene-model</option> 133 <option value="without-gtf" selected='true'>use genome reference without builtin gene-model</option>
131 <option value="with-gtf">use genome reference without builtin gene-model</option> 134 <option value="with-gtf">use genome reference with builtin gene-model</option>
132 </param> 135 </param>
133 <when value="with-gtf"> 136 <when value="with-gtf">
137 <expand macro="index_selection" with_gene_model="1" />
138 </when>
139 <when value="without-gtf">
134 <expand macro="index_selection" with_gene_model="0" /> 140 <expand macro="index_selection" with_gene_model="0" />
135 <expand macro="@SJDBOPTIONS@" /> 141 <expand macro="@SJDBOPTIONS@" />
136 </when>
137 <when value="without-gtf">
138 <expand macro="index_selection" with_gene_model="1" />
139 </when> 142 </when>
140 </conditional> 143 </conditional>
141 </when> 144 </when>
142 <when value="history"> 145 <when value="history">
143 <param argument="--genomeFastaFiles" type="data" format="fasta" label="Select a reference genome" /> 146 <param argument="--genomeFastaFiles" type="data" format="fasta" label="Select a reference genome" />