comparison htseq_count.xml @ 5:aacd5f53ac99 draft

v2.0.0
author mingchen0919
date Wed, 18 Apr 2018 13:17:28 -0400
parents 0fdb0d5f53ce
children 7c54fd452b8e
comparison
equal deleted inserted replaced
4:0fdb0d5f53ce 5:aacd5f53ac99
1 <tool id="aurora_htseq" name="Aurora htseq" version="1.0.0"> 1 <tool id="aurora_htseq" name="aurora_htseq" version="2.0.0">
2 <description>Counting reads in features.</description> 2 <description>Counting reads in features.</description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="1.15.0.6-0">pandoc</requirement> 4 <requirement type="package" version="1.15.0.6-0">pandoc</requirement>
5 <requirement type="package" version="1.20.0">r-getopt</requirement> 5 <requirement type="package" version="1.20.0">r-getopt</requirement>
6 <requirement type="package" version="1.6">r-rmarkdown</requirement> 6 <requirement type="package" version="1.6">r-rmarkdown</requirement>
9 </requirements> 9 </requirements>
10 <stdio> 10 <stdio>
11 <regex match="XXX" source="stderr" level="warning" 11 <regex match="XXX" source="stderr" level="warning"
12 description="Check the warnings_and_errors.txt file for more details."/> 12 description="Check the warnings_and_errors.txt file for more details."/>
13 </stdio> 13 </stdio>
14 <command><![CDATA[Rscript '${__tool_directory__}/htseq_count_render.R' 14 <command><![CDATA[
15 15
16 -e $echo 16 ######### each aurora tool generates a html file and have an files path directory associated with it.
17 mkdir -p $report.files_path &&
18
19 ######### three important paths:
20 ######### 1. path to tool installation directory
21 ######### 2. path to report html
22 ######### 3. path to files_path directory associated with the report output.
23 export TOOL_INSTALL_DIR='${__tool_directory__}' &&
24 export REPORT='$report' &&
25 export REPORT_FILES_PATH='$report.files_path' &&
26
27 ############ create a hidden file to store r markdown rendering log
28 echo '------ Rmd rendering log -------\n' > $report.files_path/.r_rendering.log.txt &&
29
30 echo echo 'R markdown rendering started.' &&
31
32 Rscript '${__tool_directory__}/htseq_count_render.R'
33
17 -o $report 34 -o $report
18 -d $report.files_path 35 -d $report.files_path
19 -s $sink_message 36
20 -t '${__tool_directory__}'
21
22 -A '$alignment_files' 37 -A '$alignment_files'
23 -B '$sample_names' 38 -B '$sample_names'
24 -G $gff 39 -G $gff
25 -f $format 40 -f $format
26 -r $order 41 -r $order
28 -a $minaqual 43 -a $minaqual
29 -T $feature_type 44 -T $feature_type
30 -i $idattr 45 -i $idattr
31 -m $mode 46 -m $mode
32 -c $count 47 -c $count
33 -O $count_rdata]]></command> 48 -O $count_rdata &&
49
50 echo 'R markdown rendering finished.'
51
52 ]]></command>
34 <inputs> 53 <inputs>
35 <param type="boolean" name="echo" truevalue="TRUE" falsevalue="FALSE" checked="false"
36 label="Display analysis code in report?"/>
37 <param type="data" name="alignment_files" label="Alignment file (SAM/BAM)" optional="False" format="sam,bam" 54 <param type="data" name="alignment_files" label="Alignment file (SAM/BAM)" optional="False" format="sam,bam"
38 multiple="True"/> 55 multiple="True"/>
39 <param type="text" name="sample_names" label="Sample names" 56 <param type="text" name="sample_names" label="Sample names"
40 help="sample names for each input SAM/BAM file. Use comma to separate multiple names, for example, sample_1, sample_2, sample_3. The number of sample names should be the same as the number of input SAM/BAM files." 57 help="sample names for each input SAM/BAM file. Use comma to separate multiple names, for example, sample_1, sample_2, sample_3. The number of sample names should be the same as the number of input SAM/BAM files."
41 optional="False" size="5x25"/> 58 optional="False" size="5x25"/>
71 <option value="intersection-strict" selected="false">Intersection (strict)</option> 88 <option value="intersection-strict" selected="false">Intersection (strict)</option>
72 <option value="intersection-nonempty" selected="false">Intersection (nonempty)</option> 89 <option value="intersection-nonempty" selected="false">Intersection (nonempty)</option>
73 </param> 90 </param>
74 </inputs> 91 </inputs>
75 <outputs> 92 <outputs>
76 <data name="report" format="html" label="Aurora htseq on ${on_string}" hidden="false"/> 93 <data name="report" format="html" label="${tool.name} report on ${on_string}" hidden="false"/>
77 <data format="txt" name="sink_message" label="Warnings and Errors" from_work_dir="warnings_and_errors.txt"/>
78 <data name="count" format="txt" label="Aurora htseq-count on ${on_string}" hidden="false"/> 94 <data name="count" format="txt" label="Aurora htseq-count on ${on_string}" hidden="false"/>
79 <data name="count_rdata" format="rdata" hidden="false"/> 95 <data name="count_rdata" format="rdata" label="${tool.name} count data on ${on_string}"/>
80 </outputs> 96 </outputs>
81 <citations> 97 <citations>
82 <citation type="bibtex"><![CDATA[ 98 <citation type="bibtex"><![CDATA[
83 @article{allaire2016rmarkdown, 99 @article{allaire2016rmarkdown,
84 title={rmarkdown: Dynamic Documents for R, 2016}, 100 title={rmarkdown: Dynamic Documents for R, 2016},