comparison data_manager/rna_star_index_builder.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 <tool id="rna_star_index_builder_data_manager" name="rnastar index2" tool_type="manage_data" version="2.7.1a" profile="17.01"> 1 <tool id="rna_star_index_builder_data_manager" name="rnastar index2" tool_type="manage_data" version="@IDX_VERSION@+galaxy2" profile="19.05">
2 <description>builder</description> 2 <description>builder</description>
3 3
4 <macros> 4 <macros>
5 <import>macros.xml</import> 5 <import>macros.xml</import>
6 </macros> 6 </macros>
7 7
8 <expand macro="requirements" /> 8 <expand macro="requirements">
9 <requirement type="package" version="3.7">python</requirement>
10 </expand>
9 11
10 <command><![CDATA[ 12 <command><![CDATA[
11 if [ -z "\$GALAXY_MEMORY_MB" ] ; then 13 if [ -z "\$GALAXY_MEMORY_MB" ] ; then
12 GALAXY_MEMORY_BYTES=31000000000 ; 14 GALAXY_MEMORY_BYTES=31000000000 ;
13 else 15 else
14 GALAXY_MEMORY_BYTES=\$((GALAXY_MEMORY_MB * 1000000)) ; 16 GALAXY_MEMORY_BYTES=\$((GALAXY_MEMORY_MB * 1000000)) ;
15 fi ; 17 fi ;
16 18
17 #import json, os 19 #import os
18 #set params = json.loads(open(str($out_file)).read()) 20 #set $target_directory = str($out_file.extra_files_path)
19 #set target_directory = $params['output_data'][0]['extra_files_path'].encode('ascii', 'replace') 21 #set $subdir = os.path.basename($target_directory)
20 #set subdir = os.path.basename(target_directory)
21 22
22 mkdir -p '${target_directory}/${subdir}' && 23 mkdir '${target_directory}' &&
23 24
24 STAR 25 STAR
25 --runMode genomeGenerate 26 --runMode genomeGenerate
26 --genomeFastaFiles '${all_fasta_source.fields.path}' 27 --genomeFastaFiles '${all_fasta_source.fields.path}'
27 --genomeDir '${target_directory}/${subdir}' 28 --genomeDir '${target_directory}'
28 --limitGenomeGenerateRAM \${GALAXY_MEMORY_BYTES} 29 --limitGenomeGenerateRAM \${GALAXY_MEMORY_BYTES}
29 #if $GTFconditional.GTFselect == "withGTF": 30 #if $GTFconditional.GTFselect == "withGTF":
30 --sjdbGTFfile '${GTFconditional.sjdbGTFfile}' 31 --sjdbGTFfile '${GTFconditional.sjdbGTFfile}'
31 --sjdbOverhang ${GTFconditional.sjdbOverhang} 32 --sjdbOverhang ${GTFconditional.sjdbOverhang}
32 #end if 33 #end if
98 99
99 <outputs> 100 <outputs>
100 <data name="out_file" format="data_manager_json"/> 101 <data name="out_file" format="data_manager_json"/>
101 </outputs> 102 </outputs>
102 103
103 <!-- not available in planemo at the moment of writing
104 <tests> 104 <tests>
105 <test> 105 <test>
106 <param name="all_fasta_source" value="phiX.fa"/> 106 <param name="all_fasta_source" value="phiX174"/>
107 <param name="sequence_name" value="phiX"/> 107 <param name="sequence_name" value="phiX"/>
108 <param name="sequence_id" value="minimal-settings"/> 108 <param name="sequence_id" value="minimal-settings"/>
109 <param name="modelformat" value="None"/> 109 <param name="modelformat" value="None"/>
110 110
111 <output name="out_file" file="test_star_01.data_manager_json"/> 111 <output name="out_file" file="test_star_01.data_manager_json" compare="re_match"/>
112 </test> 112 </test>
113 </tests> 113 </tests>
114 -->
115 114
116 <help><![CDATA[ 115 <help><![CDATA[
117 .. class:: infomark 116 .. class:: infomark
118 117
119 *What it does* 118 *What it does*
120 119
121 This is a Galaxy datamanager for the rna STAR gap-aware RNA aligner. 120 This is a Galaxy data manager tool for the gap-aware RNA aligner STAR.
121
122 This version of the tool builds STAR indices of the format first introduced
123 with STAR version @IDX_VERSION@.
122 124
123 Please read the fine manual - that and the google group are the places to learn about the options above. 125 Please read the fine manual - that and the google group are the places to learn about the options above.
124 126
125 *Memory requirements* 127 *Memory requirements*
126 128