|
1
|
1 <tool id="rsem_prepare_reference" name="RSEM prepare reference" version="EBA2016-v1">
|
|
0
|
2 <description></description>
|
|
|
3 <requirements>
|
|
|
4 <requirement type="package" version="1.2.28">rsem</requirement>
|
|
|
5 <requirement type="package" version="1.1.2">bowtie</requirement>
|
|
|
6 <requirement type="package" version="2.2.6">bowtie2</requirement>
|
|
|
7 </requirements>
|
|
|
8 <command>
|
|
|
9 echo $reference_name " " | tee $reference_file &&
|
|
|
10 mkdir $reference_file.files_path &&
|
|
|
11 cd $reference_file.files_path &&
|
|
|
12 rsem-prepare-reference
|
|
|
13 #if $polya.polya_use == 'add':
|
|
|
14 #if $polya.polya_length:
|
|
2
|
15 --polyA --polyA-length $polya.polya_length
|
|
0
|
16 #end if
|
|
|
17 #elif $polya.polya_use == 'subset':
|
|
|
18 --no-polyA-subset $polya.no_polya_subset
|
|
|
19 #if $polya.polya_length:
|
|
|
20 --polyA-length $polya.polya_length
|
|
|
21 #end if
|
|
3
|
22 #end if
|
|
0
|
23 $ntog
|
|
1
|
24 $bowtie
|
|
|
25 $bowtietwo
|
|
0
|
26 #if $transcript_to_gene_map:
|
|
|
27 --transcript-to-gene-map $transcript_to_gene_map
|
|
|
28 #end if
|
|
|
29 #if $reference.ref_type == 'transcripts':
|
|
|
30 $reference.reference_fasta_file
|
|
|
31 #else:
|
|
1
|
32 #if $reference.gtf.extension == 'gtf':
|
|
0
|
33 --gtf $reference.gtf
|
|
1
|
34 #elif $reference.gtf.extension == 'gff3':
|
|
|
35 --gff3 $reference.gtf
|
|
|
36 #end if
|
|
0
|
37 $reference.reference_fasta_file
|
|
|
38 #end if
|
|
|
39 $reference_name
|
|
|
40 > ${reference_name}.log
|
|
|
41 </command>
|
|
|
42 <inputs>
|
|
|
43 <conditional name="reference">
|
|
|
44 <param name="ref_type" type="select" label="Reference transcript source">
|
|
|
45 <option value="transcripts">transcript fasta</option>
|
|
|
46 <option value="genomic">reference genome and gtf</option>
|
|
|
47 </param>
|
|
|
48 <when value="transcripts">
|
|
|
49 <param name="reference_fasta_file" type="data" format="fasta" label="reference fasta file"
|
|
|
50 help="The files should contain the sequences of transcripts."/>
|
|
|
51 </when>
|
|
|
52 <when value="genomic">
|
|
|
53 <param name="reference_fasta_file" type="data" format="fasta" label="reference fasta file"
|
|
|
54 help="The file should contain the sequence of an entire genome."/>
|
|
1
|
55 <param name="gtf" type="data" format="gtf,gff3" label="gtf or gff3 file"
|
|
|
56 help="extract transcript reference sequences using the gene annotations specified in this GTF or GFF3 file" />
|
|
0
|
57 </when>
|
|
|
58 </conditional>
|
|
|
59 <param name="transcript_to_gene_map" type="data" format="tabular" optional="true" label="Map of gene ids to transcript (isoform) ids" >
|
|
|
60 <help>
|
|
|
61 Each line of should be of the form: gene_id transcript_id ( with the two fields separated by a tab character )
|
|
|
62 The map can be obtained from the UCSC table browser
|
|
|
63 group: Genes and Gene Prediction Tracks
|
|
|
64 table: knownIsoforms
|
|
|
65 Without a map:
|
|
|
66 If a reference genome and gtf is used, then RSEM uses the "gene_id" and "transcript_id" attributes in the GTF file.
|
|
|
67 Otherwise, RSEM assumes that each sequence in the reference sequence files is a separate gene.
|
|
|
68 </help>
|
|
|
69 </param>
|
|
|
70 <param name="reference_name" type="text" value="rsem_ref_name" label="reference name">
|
|
|
71 <help>A one word name for this RSEM reference containing only letters, digits, and underscore characters</help>
|
|
|
72 <validator type="regex" message="Use only letters, digits, and underscore characters">^\w+$</validator>
|
|
|
73 </param>
|
|
|
74 <conditional name="polya">
|
|
|
75 <param name="polya_use" type="select" label="PolyA ">
|
|
2
|
76 <option value="add">Add poly(A) tails to all transcripts</option>
|
|
0
|
77 <option value="subset">Exclude poly(A) tails from selected transcripts</option>
|
|
2
|
78 <option value="none" selected="true">Do not add poly(A) tails to any transcripts</option>
|
|
0
|
79 </param>
|
|
|
80 <when value="add">
|
|
|
81 <param name="polya_length" type="integer" value="125" optional="true" label="The length of the poly(A) tails to be added. (Default: 125)">
|
|
|
82 <validator type="in_range" message="must be positive " min="1"/>
|
|
|
83 </param>
|
|
|
84 </when>
|
|
|
85 <when value="subset">
|
|
|
86 <param name="no_polya_subset" type="data" format="tabular" optional="true" label="List of transcript IDs (one per line) that should should not have polyA tails added."/>
|
|
|
87 <param name="polya_length" type="integer" value="125" optional="true" label="The length of the poly(A) tails to be added. (Default: 125)">
|
|
|
88 <validator type="in_range" message="must be positive " min="1"/>
|
|
|
89 </param>
|
|
|
90 </when>
|
|
|
91 <when value="none"/>
|
|
|
92 </conditional>
|
|
1
|
93 <param name="bowtie" type="boolean" truevalue="--bowtie" falsevalue="" checked="false" label="Use bowtie" />
|
|
|
94 <param name="bowtietwo" type="boolean" truevalue="--bowtie2" falsevalue="" checked="false" label="Use bowtie2" />
|
|
0
|
95 <param name="ntog" type="boolean" truevalue="--no-ntog" falsevalue="" checked="false" label="Disable the conversion of 'N' characters to 'G' characters in the reference sequences" help="Bowite uses the automatic N to G conversion to to align against all positions in the reference."/>
|
|
|
96 </inputs>
|
|
|
97 <stdio>
|
|
|
98 <exit_code range="1:" level="fatal" description="Error Running RSEM" />
|
|
|
99 </stdio>
|
|
|
100 <outputs>
|
|
|
101 <data format="rsem_ref" name="reference_file" label="RSEM ${reference_name} reference"/>
|
|
|
102 </outputs>
|
|
|
103 <tests>
|
|
|
104 <test>
|
|
|
105 <param name="ref_type" value="genomic"/>
|
|
|
106 <param name="reference_fasta_file" value="ref.fasta" ftype="fasta"/>
|
|
|
107 <param name="gtf" value="ref.gtf" ftype="gtf"/>
|
|
|
108 <param name="reference_name" value="ref"/>
|
|
|
109 <output name="rsem_ref">
|
|
|
110 <assert_contents>
|
|
|
111 <has_text text="ref.grp" />
|
|
|
112 </assert_contents>
|
|
|
113 </output>
|
|
|
114 </test>
|
|
|
115 </tests>
|
|
|
116 <help>
|
|
|
117
|
|
|
118 RSEM HOME PAGE - http://deweylab.biostat.wisc.edu/rsem/
|
|
|
119
|
|
|
120 NAME
|
|
|
121 rsem-prepare-reference
|
|
|
122
|
|
|
123 SYNOPSIS
|
|
|
124 rsem-prepare-reference [options] reference_fasta_file(s) reference_name
|
|
|
125
|
|
|
126 DESCRIPTION
|
|
|
127 The rsem-prepare-reference program extracts/preprocesses the reference sequences and builds Bowtie indices using default parameters.
|
|
|
128 This program is used in conjunction with the 'rsem-calculate-expression' program.
|
|
|
129
|
|
|
130 INPUTS
|
|
|
131 A fasta file of transcripts
|
|
|
132 or
|
|
|
133 A genome sequence fasta file and a GTF gene annotation file. (When using UCSC data, include the related knownIsoforms.txt)
|
|
|
134
|
|
|
135 </help>
|
|
|
136 </tool>
|