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