annotate DESeq.xml @ 0:6f94b4b9de44 draft

planemo upload
author mingchen0919
date Tue, 27 Feb 2018 23:57:53 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
1 <tool name="DESeq2: Analysis" id='deseq2' version="2.0.1">
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
2 <description>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
3 perform differential expression analysis
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
4 </description>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
5 <requirements>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
6 <requirement type="package" version="1.15.0.6-0">pandoc</requirement>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
7 <requirement type="package" version="1.20.0">r-getopt</requirement>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
8 <requirement type="package" version="1.6">r-rmarkdown</requirement>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
9 <requirement type="package" version="1.14.1">bioconductor-deseq2</requirement>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
10 <requirement type="package" version="0.2">r-dt</requirement>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
11 <requirement type="package" version="1.0.8">r-pheatmap</requirement>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
12 </requirements>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
13 <stdio>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
14 <regex match="XXX" source="stderr" level="warning"
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
15 description="Check the warnings_and_errors.txt file for more details."/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
16 </stdio>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
17 <command><![CDATA[
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
18
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
19
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
20 Rscript '${__tool_directory__}/DESeq_render.R'
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
21
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
22 -e $echo
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
23
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
24 -o $report
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
25 -d $report.files_path
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
26 -s $sink_message
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
27 -t '${__tool_directory__}'
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
28
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
29
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
30 ##----- code chunk to get file paths and raw file names for a multiple inputs data field ----
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
31 #set $sep = ''
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
32 #set $count_file_paths = ''
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
33 #set $count_file_names = ''
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
34 #for $count_file in $count_files:
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
35 #set $count_file_paths += $sep + str($count_file)
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
36 #set $count_file_names += $sep + str($count_file.name)
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
37 #set $sep = ','
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
38 #end for
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
39 ##----------------- end for getting file names and file paths ------------------------------
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
40 -P '$count_file_paths'
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
41 -N '$count_file_names'
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
42 -S $sample_table
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
43 -p '$design_formula'
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
44 -w $deseq_workspace
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
45
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
46
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
47 ]]></command>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
48 <inputs>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
49 <param type="boolean" name="echo" truevalue="TRUE" falsevalue="FALSE" checked="false"
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
50 label="Display analysis code in report?"/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
51 <param type="data" name="count_files" format="txt" multiple="true" label="Count files from htseq-count"/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
52 <param type="data" name="sample_table" format="txt" multiple="false" label="sample table file"
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
53 help="The sample table file contains a table. The first column is the sample name, the second column is
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
54 the count file name and the rest of columns are treatment columns. The file names in this table have
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
55 to be in the same order as the count files uploaded in the previous step. "/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
56 <param type="text" name="design_formula" value="~ condition_1 + condition_2" label="Design formula"
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
57 help="The simplest design formula for differential expression would be ~ condition, where condition
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
58 is a column in colData(dds) that specifies which of two (or more groups) the samples belong to">
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
59 <sanitizer>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
60 <valid initial="default">
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
61 <add preset="string.printable"/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
62 <add value="~"/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
63 </valid>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
64 </sanitizer>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
65 </param>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
66 </inputs>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
67 <outputs>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
68 <data name="report" format="html" label="DESeq Analysis on ${on_string}"/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
69 <data format="txt" name="sink_message" label="Warnings and Errors on"
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
70 from_work_dir="warnings_and_errors.txt"/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
71 <data name="deseq_workspace" format="rdata" label="R workspace: DESeq analysis on ${on_string}"/>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
72 </outputs>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
73 <citations>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
74 <citation type="bibtex">
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
75 @article{love2014moderated,
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
76 title={Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
77 author={Love, Michael I and Huber, Wolfgang and Anders, Simon},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
78 journal={Genome biology},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
79 volume={15},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
80 number={12},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
81 pages={550},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
82 year={2014},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
83 publisher={BioMed Central}
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
84 }
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
85 </citation>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
86 <citation type="bibtex"><![CDATA[
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
87 @article{allaire2016rmarkdown,
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
88 title={rmarkdown: Dynamic Documents for R, 2016},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
89 author={Allaire, J and Cheng, Joe and Xie, Yihui and McPherson, Jonathan and Chang, Winston and Allen, Jeff
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
90 and Wickham, Hadley and Atkins, Aron and Hyndman, Rob},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
91 journal={R package version 0.9},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
92 volume={6},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
93 year={2016}
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
94 }
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
95 ]]></citation>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
96 <citation type="bibtex"><![CDATA[
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
97 @book{xie2015dynamic,
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
98 title={Dynamic Documents with R and knitr},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
99 author={Xie, Yihui},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
100 volume={29},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
101 year={2015},
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
102 publisher={CRC Press}
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
103 }
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
104 ]]></citation>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
105 </citations>
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
106 </tool>