| 
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>
 | 
| 
19
 | 
     6         <requirement type="package" version="0.2.6">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"
 | 
| 
12
 | 
    38                     output="."
 | 
| 
8
 | 
    39                     temp="./tmp"
 | 
| 
1
 | 
    40     ]]></command>
 | 
| 
23
 | 
    41     <inputs>
 | 
| 
1
 | 
    42  <!-- FASTQ input(s) and options specifically for paired-end data. -->
 | 
| 
 | 
    43         <conditional name="singlePaired">
 | 
| 
 | 
    44             <param name="sPaired" type="select" label="Single-end or paired-end reads">
 | 
| 
 | 
    45                 <option value="single" selected="true">Single-end</option>
 | 
| 
 | 
    46                 <option value="paired">Paired-end (as individual datasets)</option>
 | 
| 
 | 
    47                 <option value="paired_collection">Paired-end (as collection)</option>
 | 
| 
 | 
    48             </param>
 | 
| 
 | 
    49             <when value="single">
 | 
| 
 | 
    50                 <param format="fastq,fastq.gz" name="input1" type="data" label="RNA-Seq FASTQ file"/>
 | 
| 
 | 
    51             </when>
 | 
| 
 | 
    52             <when value="paired">
 | 
| 
 | 
    53                 <param format="fastq,fastq.gz" name="input1" type="data" label="RNA-Seq FASTQ file, forward reads"/>
 | 
| 
 | 
    54                 <param format="fastq,fastq.gz" name="input2" type="data" label="RNA-Seq FASTQ file, reverse reads"/>
 | 
| 
 | 
    55             </when>
 | 
| 
 | 
    56             <when value="paired_collection">
 | 
| 
 | 
    57                 <param format="fastq,fastq.gz" name="input" type="data_collection" collection_type="paired" label="RNA-Seq FASTQ paired reads"/>
 | 
| 
 | 
    58             </when>
 | 
| 
 | 
    59         </conditional>
 | 
| 
 | 
    60        
 | 
| 
 | 
    61         <!-- 
 | 
| 
 | 
    62         <param name="refGenomeSource" type="select" label="Select reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
 | 
| 
 | 
    63                             <options from_data_table="rnastar_index2">
 | 
| 
 | 
    64                                 <filter type="static_value" column="4" value="0"/>
 | 
| 
 | 
    65                                 <filter type="sort_by" column="2" />
 | 
| 
 | 
    66                                 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
 | 
| 
 | 
    67                             </options>
 | 
| 
 | 
    68         </param>
 | 
| 
 | 
    69         -->
 | 
| 
 | 
    70 
 | 
| 
 | 
    71  <!-- Genome source. -->
 | 
| 
24
 | 
    72                         <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
 | 
    73                             <options from_data_table="monorail_index">
 | 
| 
23
 | 
    74                                 <filter type="sort_by" column="2" />
 | 
| 
1
 | 
    75                                 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
 | 
| 
 | 
    76                             </options>
 | 
| 
 | 
    77                         </param>
 | 
| 
23
 | 
    78     </inputs>
 | 
| 
8
 | 
    79     <outputs>
 | 
| 
 | 
    80         <data format="txt" name="auc" label="${tool.name} on ${on_string}: AUC" from_work_dir="bamcount_auc.tsv"/>
 | 
| 
 | 
    81         <!-- 
 | 
| 
6
 | 
    82         <data format="txt" name="output_log" label="${tool.name} on ${on_string}: log" from_work_dir="Log.final.out"/>
 | 
| 
7
 | 
    83         <data format="txt" name="auc" label="${tool.name} on ${on_string}: AUC" from_work_dir="bc.auc.tsv"/>
 | 
| 
 | 
    84         <data format="txt" name="bc_log" label="${tool.name} on ${on_string}: bamcount log" from_work_dir="bc.log"/>
 | 
| 
6
 | 
    85         <data format="interval" name="chimeric_junctions" label="${tool.name} on ${on_string}: chimeric junctions" from_work_dir="Chimeric.out.junction"/>
 | 
| 
 | 
    86         <data format="interval" name="splice_junctions" label="${tool.name} on ${on_string}: splice junctions.bed" from_work_dir="SJ.out.tab"/>
 | 
| 
 | 
    87         <data name="mapped_reads" format="bam" label="${tool.name} on ${on_string}: mapped.bam" from_work_dir="sorted.bam"/>
 | 
| 
 | 
    88         <data name="mapped_reads_index" format="bai" label="${tool.name} on ${on_string}: mapped.bam.bai" from_work_dir="sorted.bam.bai"/>
 | 
| 
 | 
    89         -->
 | 
| 
1
 | 
    90     </outputs>
 | 
| 
 | 
    91     <help>
 | 
| 
 | 
    92         Run the Monorail RNA-seq analysis pipeline
 | 
| 
 | 
    93     </help>
 | 
| 
 | 
    94 </tool>
 |