comparison sleuth.xml @ 0:5f1cb4c28d73 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sleuth commit 6b943159b4d68812dc6911309f23d54ec659282f
author iuc
date Thu, 01 Jun 2023 07:56:00 +0000
parents
children d3e447dd52c8
comparison
equal deleted inserted replaced
-1:000000000000 0:5f1cb4c28d73
1 <tool id="sleuth" name="Sleuth" version="@TOOL_VERSION@+galaxy@SUFFIX_VERSION@" profile="@PROFILE@">
2 <description>differential expression analysis</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro='xrefs'/>
7 <expand macro='requirements'/>
8 <stdio>
9 <regex match="Execution halted"
10 source="both"
11 level="fatal"
12 description="Execution halted." />
13 <regex match="Error in"
14 source="both"
15 level="fatal"
16 description="An undefined error occurred, please check your input carefully and contact your administrator." />
17 <regex match="Fatal error"
18 source="both"
19 level="fatal"
20 description="An undefined error occurred, please check your input carefully and contact your administrator." />
21 </stdio>
22 <version_command><![CDATA[echo $(R --version | grep version | grep -v GNU)", sleuth version" $(R --vanilla --slave -e "library(sleuth); cat(sessionInfo()\$otherPkgs\$sleuth\$Version)" 2> /dev/null | grep -v -i "WARNING: ")]]></version_command>
23 <command><![CDATA[
24 #set $factor_levels = list()
25 #set $cond_files = list()
26 #set $cond_n_files = list()
27 #for $level in $rep_factorLevel
28 $factor_levels.append(str($level.factorLevel))
29 $cond_n_files.append(len(str($level.countsFile).split(",")))
30 #for $i, $count in enumerate(str($level.countsFile).split(","))
31 #set $fname = str($level.factorLevel) + "_" + str($i) + '.h5'
32 ln -s '${count}' "${fname}" &&
33 $cond_files.append($fname)
34 #end for
35 #end for
36 Rscript '${__tool_directory__}/sleuth.R'
37 #for $i, $factor in enumerate($factor_levels)
38 --factorLevel $factor
39 --factorLevel_n $cond_n_files[$i]
40 #end for
41 #for $file in $cond_files
42 --factorLevel_counts $file
43 #end for
44 --cores \${GALAXY_SLOTS:-4}
45 $advanced_options.normalization
46 --nbins $advanced_options.nbins
47 --lwr $advanced_options.lwr
48 --upr $advanced_options.upr
49 ]]></command>
50 <inputs>
51 <repeat name="rep_factorLevel" title="Factor level" min="2" default="2">
52 <param name="factorLevel" type="text" value="FactorLevel" label="Specify a factor level, typical values could be 'tumor', 'normal', 'treated' or 'control'"
53 help="Only letters, numbers and underscores will be retained in this field">
54 <sanitizer>
55 <valid initial="string.letters,string.digits"><add value="_" /></valid>
56 </sanitizer>
57 </param>
58 <param name="countsFile" type="data" format="h5" multiple="true" label="Counts file(s)"/>
59 </repeat>
60 <section name="advanced_options" title="Advanced options" expanded="true">
61 <param argument="normalization" type="boolean" truevalue="--normalize" falsevalue="" checked="true" label="Normalize data"
62 help="If this is set to false, bootstraps will not be read and transformation of the data will not be done. This should
63 only be set to false if one desires to do a quick check of the raw data. " />
64 <param argument="nbins" type="integer" min="0" value="100" label="NBins" help="The number of bins that the data should be
65 split for the sliding window shrinkage using the mean-variance curve." />
66 <param argument="lwr" type="float" min="0" max="1" value="0.25" label="LWR" help="The lower range of variances within each
67 bin that should be included for the shrinkage procedure. " />
68 <param argument="upr" type="float" min="0" max="1" value="0.75" label="UPR" help="The upper range of variances within each
69 bin that should be included for the shrinkage procedure." />
70 </section>
71 </inputs>
72 <outputs>
73 <data name="sleuth_table" from_work_dir="sleuth_table.tab" format="tabular" label="${tool.name} on ${on_string}: DE table">
74 <actions>
75 <action name="column_names" type="metadata" default="target_id,pval,qval,test_stat,rss,degrees_free,mean_obs,var_obs,tech_var,sigma_sq,smooth_sigma_sq,final_sigma_sq" />
76 </actions>
77 </data>
78 <data name="pca_plot" from_work_dir="pca_plot.pdf" format="pdf" label="${tool.name} on ${on_string}: PCA plot"/>
79 <data name="density_plot" from_work_dir="group_density.pdf" format="pdf" label="${tool.name} on ${on_string}: density plot"/>
80 </outputs>
81 <tests>
82 <test expect_num_outputs="3">
83 <repeat name="rep_factorLevel">
84 <param name="factorLevel" value="Control"/>
85 <param name="countsFile" value="kallisto_output_01.h5,kallisto_output_02.h5"/>
86 </repeat>
87 <repeat name="rep_factorLevel">
88 <param name="factorLevel" value="Cancer"/>
89 <param name="countsFile" value="kallisto_output_03.h5,kallisto_output_04.h5"/>
90 </repeat>
91 <section name="advanced_options">
92 <param name="normalization" value="true"/>
93 <param name="nbins" value="100"/>
94 <param name="lwr" value="0.25"/>
95 <param name="upr" value="0.75"/>
96 </section>
97 <output name="sleuth_table" ftype="tabular">
98 <assert_contents>
99 <has_size value="689791" delta="100"/>
100 <has_text text="ENST00000281092.9"/>
101 <has_text text="ENST00000700211.1"/>
102 </assert_contents>
103 </output>
104 <output name="pca_plot" file="test01_pca.pdf" ftype="pdf" compare="sim_size"/>
105 <output name="density_plot" file="test01_density.pdf" ftype="pdf" compare="sim_size"/>
106 </test>
107 </tests>
108 <help><![CDATA[
109
110 .. class:: infomark
111
112 **Purpose**
113
114 Sleuth is a tool for the analysis and comparison of multiple related RNA-Seq experiments. Key features include:
115
116 - The ability to perform both transcript-level and gene-level analysis.
117 - Compatibility with kallisto enabling a fast and accurate workflow from reads to results.
118 - The use of bootstraps to ascertain and correct for technical variation in experiments.
119 - An interactive app for exploratory data analysis.
120
121 To use sleuth, RNA-Seq data must first be quantified with kallisto, which is a program for very fast RNA-Seq quantification based on
122 pseudo-alignment. An important feature of kallisto is that it outputs bootstraps along with the estimates of transcript abundances.
123 These can serve as proxies for technical replicates, allowing for an ascertainment of the variability in estimates due to the random
124 processes underlying RNA-Seq as well as the statistical procedure of read assignment.
125
126 ]]></help>
127 <expand macro="citations" />
128 </tool>