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