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