1
|
1 <tool id="monorail" name="Run the Monorail RNA-seq analysis pipeline" version="0.1.0">
|
|
2 <requirements>
|
|
3 <requirement type="package" version="1.9">samtools</requirement>
|
|
4 <requirement type="package" version="2.6.0b">star</requirement>
|
|
5 <!-- <requirement type="package" version="5.4.0">snakemake-minimal</requirement> -->
|
|
6 </requirements>
|
|
7 <!-- /bin/bash -x monorail.slim.sh ../ath10 4 10 ../ath10/gtf/exons.bed ./tmp2 ../fastqs/SRR8505407_1_100.fastq.gz ../fastqs/SRR8505407_2_100.fastq.gz -->
|
|
8 <command detect_errors="aggressive"><![CDATA[
|
|
9 /bin/bash -x "$__tool_directory__/monorail.sh"
|
|
10 $refGenomeSource.GTFconditional.genomeDir.fields.path
|
|
11 \${GALAXY_SLOTS:-4}
|
|
12 $min_uniq_qual
|
|
13 $exons
|
|
14 ./
|
|
15 #if str($singlePaired.sPaired) == "paired_collection"
|
|
16 '$singlePaired.input.forward' '$singlePaired.input.reverse'
|
|
17 #else
|
|
18 '$singlePaired.input1'
|
|
19 #if str($singlePaired.sPaired) == "paired"
|
|
20 '$singlePaired.input2'
|
|
21 #end if
|
|
22 #end if
|
|
23 ]]></command>
|
|
24 <inputs>
|
|
25 <!-- FASTQ input(s) and options specifically for paired-end data. -->
|
|
26 <conditional name="singlePaired">
|
|
27 <param name="sPaired" type="select" label="Single-end or paired-end reads">
|
|
28 <option value="single" selected="true">Single-end</option>
|
|
29 <option value="paired">Paired-end (as individual datasets)</option>
|
|
30 <option value="paired_collection">Paired-end (as collection)</option>
|
|
31 </param>
|
|
32 <when value="single">
|
|
33 <param format="fastq,fastq.gz" name="input1" type="data" label="RNA-Seq FASTQ file"/>
|
|
34 </when>
|
|
35 <when value="paired">
|
|
36 <param format="fastq,fastq.gz" name="input1" type="data" label="RNA-Seq FASTQ file, forward reads"/>
|
|
37 <param format="fastq,fastq.gz" name="input2" type="data" label="RNA-Seq FASTQ file, reverse reads"/>
|
|
38 </when>
|
|
39 <when value="paired_collection">
|
|
40 <param format="fastq,fastq.gz" name="input" type="data_collection" collection_type="paired" label="RNA-Seq FASTQ paired reads"/>
|
|
41 </when>
|
|
42 </conditional>
|
|
43
|
|
44 <!--
|
|
45 <param name="refGenomeSource" type="select" label="Select reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
|
|
46 <options from_data_table="rnastar_index2">
|
|
47 <filter type="static_value" column="4" value="0"/>
|
|
48 <filter type="sort_by" column="2" />
|
|
49 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
50 </options>
|
|
51 </param>
|
|
52 -->
|
|
53
|
|
54 <!-- Genome source. -->
|
|
55 <conditional name="refGenomeSource">
|
|
56 <param name="geneSource" type="select" label="Custom or built-in reference genome" help="Built-ins were indexed using default options">
|
|
57 <option value="indexed" selected="True">Use a built-in index</option>
|
|
58 <option value="history">Use reference genome from history and create temporary index</option>
|
|
59 </param>
|
|
60 <when value="indexed">
|
|
61 <conditional name="GTFconditional">
|
|
62 <param name="GTFselect" type="select" label="Reference genome with or without an annotation" help="Must the index have been created WITH a GTF file (if not you can specify one afterward).">
|
|
63 <option value="without-gtf">use genome reference without builtin gene-model</option>
|
|
64 <option value="with-gtf">use genome reference with builtin gene-model</option>
|
|
65 </param>
|
|
66 <when value="with-gtf">
|
|
67 <param name="genomeDir" argument="--genomeDir" type="select" label="Select reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
|
|
68 <options from_data_table="rnastar_index2">
|
|
69 <filter type="static_value" column="4" value="1"/>
|
|
70 <filter type="sort_by" column="2" />
|
|
71 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
72 </options>
|
|
73 </param>
|
|
74 </when>
|
|
75 <when value="without-gtf">
|
|
76 <param name="genomeDir" argument="--genomeDir" type="select" label="Select reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
|
|
77 <options from_data_table="rnastar_index2">
|
|
78 <filter type="static_value" column="4" value="0"/>
|
|
79 <filter type="sort_by" column="2" />
|
|
80 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
81 </options>
|
|
82 </param>
|
|
83 </when>
|
|
84 </conditional>
|
|
85 </when>
|
|
86 <when value="history">
|
|
87 <param argument="--genomeFastaFiles" type="data" format="fasta" label="Select a reference genome" />
|
|
88 </when>
|
|
89 </conditional>
|
|
90
|
|
91 <param name="exons" type="data" format="bed" label="Exon annotation BED file" help="Upload/use a BED formatted list of exon intervals for quantifying"/>
|
|
92 <!-- <param name="exon_annotation" type="select" label="Select an exon annotation BED file" help="If your exon annotation is not listed, contact the Galaxy team">
|
|
93 <options from_data_table="exon_annotations">
|
|
94 <filter type="static_value" column="4" value="0"/>
|
|
95 <filter type="sort_by" column="2" />
|
|
96 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
97 </options>
|
|
98 </param> -->
|
|
99 <param name="min_uniq_qual" type="integer" value="10" label="Minimum mapping quality for unique alignments" help="Set this to an appropriate integer value to filter out non-unique alignments"/>
|
|
100 </inputs>
|
|
101
|
|
102
|
|
103 <!-- <expand macro="dbKeyActions" /> -->
|
|
104 <outputs>
|
|
105 <data format="txt" name="output_log" label="${tool.name} on ${on_string}: log" from_work_dir="Log.final.out">
|
|
106 </data>
|
|
107 <data format="interval" name="chimeric_junctions" label="${tool.name} on ${on_string}: chimeric junctions" from_work_dir="Chimeric.out.junction">
|
|
108 </data>
|
|
109
|
|
110 <data format="interval" name="splice_junctions" label="${tool.name} on ${on_string}: splice junctions.bed" from_work_dir="SJ.out.tab">
|
|
111 </data>
|
|
112 <data name="mapped_reads" format="bam" label="${tool.name} on ${on_string}: mapped.bam" from_work_dir="sorted.bam">
|
|
113 </data>
|
|
114 <data name="mapped_reads_index" format="bai" label="${tool.name} on ${on_string}: mapped.bam.bai" from_work_dir="sorted.bam.bai">
|
|
115 </data>
|
|
116 </outputs>
|
|
117 <help>
|
|
118 Run the Monorail RNA-seq analysis pipeline
|
|
119 </help>
|
|
120 </tool>
|