Mercurial > repos > smarthey > paqmir_mirdeep2_quantifier
comparison paqmir_quantifier/quantifier.xml @ 0:bf20f97162f7 draft default tip
Uploaded
author | smarthey |
---|---|
date | Mon, 18 Mar 2019 09:36:28 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bf20f97162f7 |
---|---|
1 <tool id="paqmir_mirdeep2_quantifier" name="PAQmiR MiRDeep2 Quantifier" version="2.1.0"> | |
2 <description>fast quantitation of reads mapping to known miRBase precursors</description> | |
3 <requirements> | |
4 <requirement type="package" version="2.0.0.8">mirdeep2</requirement> | |
5 </requirements> | |
6 <stdio> | |
7 <!-- Anything other than zero is an error --> | |
8 <exit_code range="1:" /> | |
9 <exit_code range=":-1" /> | |
10 <!-- In case the return code has not been set propery check stderr too --> | |
11 <regex match="Error:" /> | |
12 <regex match="Exception:" /> | |
13 </stdio> | |
14 <command> | |
15 <![CDATA[ | |
16 #import subprocess | |
17 #set $mature_file = $subprocess.check_output(["basename",$mature.file_name]) | |
18 #set $mature_file = $mature_file.rstrip() | |
19 quantifier.pl | |
20 | |
21 -p $precursors | |
22 | |
23 -m $mature | |
24 | |
25 -r $reads | |
26 | |
27 #if $species.value != 'all' | |
28 -t $species | |
29 #end if | |
30 | |
31 #if $option.choice | |
32 | |
33 #if $option.star_sequences | |
34 -s $option.star_sequences | |
35 #end if | |
36 | |
37 $option.sortReadsInPDF | |
38 $option.flexibleIdMapping | |
39 $option.skipFileConversion | |
40 $option.wholePrecursAsMature | |
41 $option.discardReadMultiMap | |
42 | |
43 -e $option.upstreamNtides | |
44 -f $option.downstreamNtides | |
45 -g $option.allowedMismatches | |
46 | |
47 $option.identifiers_supv18 | |
48 | |
49 #end if | |
50 | |
51 -y galaxy | |
52 | |
53 ## html output | |
54 ; | |
55 cp expression_galaxy.html $html 2> /dev/null | |
56 | |
57 ## move pdf directory to be accessible from the new index.html | |
58 ; | |
59 mkdir -p $html.files_path 2> /dev/null | |
60 ; | |
61 cp -R pdfs_galaxy $html.files_path 2> /dev/null | |
62 ; | |
63 cp expression_analyses/expression_analyses_galaxy/${mature_file}_mapped.arf expression_analyses/expression_analyses_galaxy/mature_mapped.arf | |
64 ]]> | |
65 </command> | |
66 <inputs> | |
67 <param name="reads" format="fasta" type="data" label="Collapsed deep sequencing reads" help="Reads in fasta format. (-r)"/> | |
68 <param name="precursors" format="fasta" type="data" label="Precursor sequences" help="miRNA precursor sequences from miRBase. (-p)"/> | |
69 <param name="mature" format="fasta" type="data" label="Mature miRNA sequences" help="Mature miRNA sequences from miRBase. (-m)"/> | |
70 <param name="species" type="select" label="Search in species" help="If not searching in a specific species all species in your files will be analyzed. (-t) [ If you don't find the specie you need you can use 'All species' or contact the administrator to update the list ] "> | |
71 <option value="all">All species</option> | |
72 <option value="hsa">Human</option> | |
73 <option value="ptr">Chimp</option> | |
74 <option value="na">Orangutan</option> | |
75 <option value="na">Rhesus</option> | |
76 <option value="na">Marmoset</option> | |
77 <option value="mmu">Mouse</option> | |
78 <option value="rno">Rat</option> | |
79 <option value="na">GuineaPig</option> | |
80 <option value="lca">Cat</option> | |
81 <option value="cfa">Dog</option> | |
82 <option value="eca">Horse</option> | |
83 <option value="bta">Cow</option> | |
84 <option value="na">Opossum</option> | |
85 <option value="na">Platypus</option> | |
86 <option value="gga">Chicken</option> | |
87 <option value="na">Zebrafinch</option> | |
88 <option value="na">Lizard</option> | |
89 <option value="xtr">X.tropicalis</option> | |
90 <option value="dre">Zebrafish</option> | |
91 <option value="tni">Tetraodon</option> | |
92 <option value="fru">Fugu</option> | |
93 <option value="na">Stickleback</option> | |
94 <option value="na">Medaka</option> | |
95 <option value="na">Lamprey</option> | |
96 <option value="bfl">Lancelet</option> | |
97 <option value="cin">C.intestinalis</option> | |
98 <option value="spu">S.purpuratus</option> | |
99 <option value="cel">C.elegans</option> | |
100 <option value="na">C.brenneri</option> | |
101 <option value="cbr">C.briggsae</option> | |
102 <option value="na">C.remanei</option> | |
103 <option value="sja">C.japonica</option> | |
104 <option value="na">P.pacificus</option> | |
105 <option value="dme">D.melanogaster</option> | |
106 <option value="dsi">D.simulans</option> | |
107 <option value="dse">D.sechellia</option> | |
108 <option value="dya">D.yakuba</option> | |
109 <option value="der">D.erecta</option> | |
110 <option value="dan">D.ananassae</option> | |
111 <option value="dps">D.pseudoobscura</option> | |
112 <option value="dpe">D.persimilis</option> | |
113 <option value="dvi">D.virilis</option> | |
114 <option value="dmo">D.mojavensis</option> | |
115 <option value="dgr">D.grimshawi</option> | |
116 <option value="aga">A.gambiae</option> | |
117 <option value="ame">A.mellifera</option> | |
118 <option value="na">S.cerevisiae</option> | |
119 <option value="cel">Worm</option> | |
120 </param> | |
121 | |
122 <conditional name="option"> | |
123 <param name="choice" type="boolean" truevalue="yes" falsevalue="no" label="More options?"/> | |
124 <when value="no"> | |
125 </when> | |
126 <when value="yes"> | |
127 <param name="identifiers_supv18" type="boolean" truevalue="-P" falsevalue="" label="Mature miRNA reference contain miRBase v>=18 identifiers" help="Use this switch if Mature miRNA reference contain miRBase v18 (or more recent) identifiers (5p and 3p) instead of previous ids from v17. (-P)"/> | |
128 <param name="star_sequences" format="fasta" type="data" optional="true" label="Star sequences" help="From miRBase in fasta format (optional) (-s)"/> | |
129 <!-- <param name="generatePDFs" type="boolean" checked="true" truevalue="" falsevalue="-d" label="Generate PDFs" help="(-d)"/> --> | |
130 <param name="sortReadsInPDF" type="boolean" checked="true" truevalue="" falsevalue="-o" label="Sort reads by sample in PDF" help="(-o)"/> | |
131 <param name="flexibleIdMapping" type="boolean" checked="false" truevalue="-k" falsevalue="" label="Include ID-flexible mapping" help="Also considers precursor-mature mappings that have different ids, eg let7c would be allowed to map to pre-let7a. (-k)"/> | |
132 <param name="skipFileConversion" type="boolean" checked="false" truevalue="-n" falsevalue="" label="Skip file conversion" help="(-n)"/> | |
133 <param name="skipPrecursMapping" type="boolean" checked="false" truevalue="-x" falsevalue="" label="Skip mapping against precursor" help="(-x)"/> | |
134 <!-- <param name="noMrdPDF" type="boolean" checked="false" truevalue="-j" falsevalue="" label="Do not create output.mrd file or PDFs" help="(-j)"/> --> | |
135 <param name="wholePrecursAsMature" type="boolean" checked="false" truevalue="-w" falsevalue="" label="Consider the whole precursor as the 'mature sequence'" help="(-w)"/> | |
136 <param name="discardReadMultiMap" type="boolean" checked="false" truevalue="-U" falsevalue="" label="Discard all read multimapper" help="(-U)"/> | |
137 | |
138 <param name="upstreamNtides" type="integer" value="2" min="0" label="Upstream nucleotides" help="Number of nucleotides upstream of the mature sequence to consider. (-e)"/> | |
139 <param name="downstreamNtides" type="integer" value="5" min="0" label="Downstream nucleotides" help="Number of nucleotides downstream of the mature sequence to consider. (-f)"/> | |
140 <param name="allowedMismatches" type="integer" value="1" min="0" label="Allowed mismatches" help="Number of allowed mismatches when mapping reads to precursors. (-g)"/> | |
141 </when> | |
142 </conditional> | |
143 </inputs> | |
144 <outputs> | |
145 <data name="miRNAsExpressed" format="tabular" from_work_dir="miRNAs_expressed_all_samples_galaxy.csv" label="output of ${tool.name} on ${on_string}"/> | |
146 <data format="html" name="html" label="${tool.name} on ${on_string} (html report)"/> | |
147 <data name="miRBase" format="tabular" from_work_dir="expression_analyses/expression_analyses_galaxy/miRBase.mrd" label="miRBase.mrd of ${tool.name} on ${on_string}"/> | |
148 <data name="mature_and_new_mapped" format="tabular" from_work_dir="expression_analyses/expression_analyses_galaxy/mature_mapped.arf" label="${mature.name}_mapped.arf of ${tool.name} on ${on_string}"/> | |
149 </outputs> | |
150 <tests> | |
151 <test> | |
152 <param name="reads" value="reads_collapsed.fa"/> | |
153 <param name="precursors" value="precursors_ref_this_species.fa"/> | |
154 <param name="mature" value="mature_ref_this_species.fa"/> | |
155 <param name="species" value="cel"/> | |
156 <output name="miRNAsExpressed" file="miRNAs_expressed_all_samples.csv"/> | |
157 <output name="html" file="expression_galaxy.html"/> | |
158 </test> | |
159 </tests> | |
160 <help> | |
161 <![CDATA[ | |
162 | |
163 | This tool is part of the workflow **PAQmiR** for the *Prediction Annotation and Quantification of miRNA with miRDeep2* | |
164 | | |
165 | *This wrapper was forked from the rbc_mirdeep2_quantifier wrapper of the RNA-Bioinformatics network* | |
166 | ==> https://www.denbi.de/network/rna-bioinformatics-center-rbc | |
167 | ==> https://github.com/bgruening | |
168 | | |
169 | Modifications are the product of Valentin Marcon & Sylvain Marthey (Thanks to INRA Migale, IFB ressources & INRA GABI) | |
170 | |
171 **What it does** | |
172 | |
173 | The module maps the deep sequencing reads to predefined miRNA precursors and determines by that the expression of the corresponding miRNAs. | |
174 | First, the predefined mature miRNA sequences are mapped to the predefined precursors. Optionally, predefined star sequences can be mapped to the precursors too. | |
175 | By that the mature and star sequence in the precursors are determined. Second, the deep sequencing reads are mapped to the precursors. | |
176 | The number of reads falling into an interval 2nt upstream and 5nt downstream of the mature/star sequence is determined. | |
177 | |
178 **Input** | |
179 | |
180 A FASTA file with precursor sequences, a FASTA file with mature miRNA sequences, a FASTA file with deep sequencing reads and optionally a FASTA file with star sequences and the 3 letter code of the species of interest. | |
181 | |
182 **Output** | |
183 | |
184 A tab separated file with miRNA identifiers and its read count, a signature file, a html file that gives an overview of all miRNAs the input data and a pdfs that contains for each miRNA a pdf file showing its signature and structure. | |
185 | |
186 **Dependency** | |
187 | |
188 MiRDeep2_ 2.0.0.8, Conda version | |
189 | |
190 .. _mirdeep2: https://anaconda.org/bioconda/mirdeep2 | |
191 | |
192 ]]> | |
193 </help> | |
194 <citations> | |
195 <citation type="doi">10.1093/nar/gkr688</citation> | |
196 <citation type="doi">10.1002/0471250953.bi1210s36</citation> | |
197 </citations> | |
198 </tool> |