1
|
1 <tool id="monorail" name="Run the Monorail RNA-seq analysis pipeline" version="0.1.0">
|
15
|
2 <!-- much of this was based on https://github.com/galaxyproject/tools-iuc/blob/master/tools/rgrnastar/rg_rnaStar.xml -->
|
1
|
3 <requirements>
|
|
4 <requirement type="package" version="1.9">samtools</requirement>
|
17
|
5 <requirement type="package" version="2.7.3a">star</requirement>
|
32
|
6 <requirement type="package" version="0.4.0">bamcount</requirement>
|
16
|
7 <requirement type="package" version="5.4.0">snakemake-minimal</requirement>
|
|
8 <requirement type="package" version="1.3.3">zstd</requirement>
|
|
9 <requirement type="package" version="1.3">seqtk</requirement>
|
|
10 <!--
|
|
11 <requirement type="package" version="2.1.0">hisat2</requirement>
|
|
12 <requirement type="package" version="0.8">fastq-tools</requirement>
|
|
13 <requirement type="package" version="0.12.0">salmon</requirement>
|
|
14 <requirement type="package" version="0.5.0">regtools</requirement>
|
|
15 <requirement type="package" version="2.9.1">sra-tools</requirement>
|
|
16 -->
|
1
|
17 </requirements>
|
|
18 <!-- /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
|
19 <command detect_errors="aggressive"><![CDATA[
|
9
|
20 snakemake --snakefile "$__tool_directory__/Snakefile"
|
8
|
21 -j \${GALAXY_SLOTS:-4}
|
|
22 --config
|
1
|
23 #if str($singlePaired.sPaired) == "paired_collection"
|
8
|
24 inputs="$singlePaired.input.forward,$singlePaired.input.reverse"
|
15
|
25 #if $singlePaired.input.forward.is_of_type("fastq.gz"):
|
|
26 compressed=1
|
|
27 #end if
|
1
|
28 #else
|
8
|
29 inputs="$singlePaired.input1"
|
1
|
30 #if str($singlePaired.sPaired) == "paired"
|
8
|
31 inputs="$singlePaired.input1,$singlePaired.input2"
|
1
|
32 #end if
|
15
|
33 #if $singlePaired.input1.is_of_type("fastq.gz"):
|
|
34 compressed=1
|
|
35 #end if
|
1
|
36 #end if
|
24
|
37 ref="$index_source.fields.path"
|
30
|
38 exon_bed="$index_source.fields.path/$index_source.fields.name/gtf/exons.bed"
|
|
39 genome="$index_source.fields.name"
|
12
|
40 output="."
|
8
|
41 temp="./tmp"
|
1
|
42 ]]></command>
|
23
|
43 <inputs>
|
1
|
44 <!-- FASTQ input(s) and options specifically for paired-end data. -->
|
|
45 <conditional name="singlePaired">
|
|
46 <param name="sPaired" type="select" label="Single-end or paired-end reads">
|
|
47 <option value="single" selected="true">Single-end</option>
|
|
48 <option value="paired">Paired-end (as individual datasets)</option>
|
|
49 <option value="paired_collection">Paired-end (as collection)</option>
|
|
50 </param>
|
|
51 <when value="single">
|
|
52 <param format="fastq,fastq.gz" name="input1" type="data" label="RNA-Seq FASTQ file"/>
|
|
53 </when>
|
|
54 <when value="paired">
|
|
55 <param format="fastq,fastq.gz" name="input1" type="data" label="RNA-Seq FASTQ file, forward reads"/>
|
|
56 <param format="fastq,fastq.gz" name="input2" type="data" label="RNA-Seq FASTQ file, reverse reads"/>
|
|
57 </when>
|
|
58 <when value="paired_collection">
|
|
59 <param format="fastq,fastq.gz" name="input" type="data_collection" collection_type="paired" label="RNA-Seq FASTQ paired reads"/>
|
|
60 </when>
|
|
61 </conditional>
|
|
62
|
|
63 <!--
|
|
64 <param name="refGenomeSource" type="select" label="Select reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
|
|
65 <options from_data_table="rnastar_index2">
|
|
66 <filter type="static_value" column="4" value="0"/>
|
|
67 <filter type="sort_by" column="2" />
|
|
68 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
69 </options>
|
|
70 </param>
|
|
71 -->
|
|
72
|
|
73 <!-- Genome source. -->
|
24
|
74 <param name="index_source" type="select" label="Select reference genome index set" help="If your genome of interest is not listed, contact the Galaxy team">
|
26
|
75 <options from_data_table="monorail_index">
|
23
|
76 <filter type="sort_by" column="2" />
|
1
|
77 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
78 </options>
|
|
79 </param>
|
23
|
80 </inputs>
|
8
|
81 <outputs>
|
|
82 <data format="txt" name="auc" label="${tool.name} on ${on_string}: AUC" from_work_dir="bamcount_auc.tsv"/>
|
35
|
83 <data format="interval" name="splice_junctions" label="${tool.name} on ${on_string}: splice junctions" from_work_dir="SJ.out.tab"/>
|
|
84 <!--
|
32
|
85 <data format="txt" name="frag" label="${tool.name} on ${on_string}: Fragment Distribution" from_work_dir="bamcount_frag.tsv"/>
|
6
|
86 <data format="txt" name="output_log" label="${tool.name} on ${on_string}: log" from_work_dir="Log.final.out"/>
|
7
|
87 <data format="txt" name="auc" label="${tool.name} on ${on_string}: AUC" from_work_dir="bc.auc.tsv"/>
|
|
88 <data format="txt" name="bc_log" label="${tool.name} on ${on_string}: bamcount log" from_work_dir="bc.log"/>
|
6
|
89 <data format="interval" name="chimeric_junctions" label="${tool.name} on ${on_string}: chimeric junctions" from_work_dir="Chimeric.out.junction"/>
|
|
90 <data name="mapped_reads" format="bam" label="${tool.name} on ${on_string}: mapped.bam" from_work_dir="sorted.bam"/>
|
|
91 <data name="mapped_reads_index" format="bai" label="${tool.name} on ${on_string}: mapped.bam.bai" from_work_dir="sorted.bam.bai"/>
|
|
92 -->
|
1
|
93 </outputs>
|
|
94 <help>
|
|
95 Run the Monorail RNA-seq analysis pipeline
|
|
96 </help>
|
|
97 </tool>
|