annotate nanostat.xml @ 0:e86d1c122ee7 draft

initial upload
author leomrtns
date Tue, 14 May 2019 05:36:34 -0400
parents
children 845458a694e0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
1 <tool id="nanostat" name="NanoStat" version="0.1.0">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
2 <description>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
3 Calculate various statistics from a long read sequencing dataset in fastq, bam or albacore sequencing summary format
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
4 </description>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
5 <requirements>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
6 <requirement type="package" version="1.1.2">nanostat</requirement>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
7 </requirements>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
9 #import re
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
10 ## Galaxy creates xyz.dat but nanostat relies on suffix to detect compressed fasta/fastq; otoh Galaxy provides 'element_identifier'
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
11 #if str($input_type.type) == "fastq" or str($input_type.type) == "fasta"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
12 #set $named_input_files = ''
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
13 #for $i_file in $input_type.file
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
14 ## Add single quotes around each input file identifier
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
15 #set $_input_file = "'{}'".format($i_file.element_identifier)
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
16 #set $named_input_files = $named_input_files + ' ' + $_input_file
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
17 ln -s '${i_file}' ${_input_file} &&
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
18 #end for
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
19 #end if
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
20 #### alternative would be something like: x=`file o.xyz.gz; if [[ $x == *gzip* ]]; then echo "found gzip"; fi
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
21
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
22 NanoStat
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
23 --threads \${GALAXY_SLOTS:-4}
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
24 #if str($input_type.type) == "fastq"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
25 --fastq ${named_input_files}
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
26 #else if str($input_type.type) == "fasta"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
27 --fasta "${named_input_files}"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
28 #else if str($input_type.type) == "bam"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
29 --bam "${input_type.file}"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
30 #else if str($input_type.type) == "summary"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
31 --readtype "${input_type.readtype}"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
32 --summary "${input_type.file}"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
33 #if $input_type.barcoded
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
34 --barcoded
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
35 #end if
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
36 #end if
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
37 -n "$output1"
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
38 ]]></command>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
39 <inputs>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
40 <conditional name="input_type">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
41 <param name="type" type="select" label="File type of input read files" help="It is not possible to mix distinct file types.">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
42 <option value="fastq" selected="true">fastq (compressed or not)</option>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
43 <option value="fasta">fasta (compressed or not)</option>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
44 <option value="bam">sorted bam</option>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
45 <option value="summary">Use albacore or guppy summary file for quality scores</option>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
46 </param>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
47 <when value="fastq">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
48 <param type="data" name="file" format="fastqsanger,fastqsanger.gz,fastqsanger.bz2, fastqsanger.bgz" multiple="true" label="One or more (compressed) fastq file(s)." optional="true"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
49 </when>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
50 <when value="fasta">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
51 <param type="data" name="file" format="fasta, fasta.gz, fasta.bz2, fasta.bgz" multiple="true" label="One or more (compressed) fasta file(s)." optional="true"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
52 </when>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
53 <when value="bam">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
54 <param type="data" name="file" format="bam" label="One or more sorted bam file(s)." multiple="true" optional="true"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
55 </when>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
56 <when value="summary">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
57 <param type="data" name="file" format="tabular" label="Summary file generated by albacore or guppy." multiple="true" optional="true"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
58 <param name="barcoded" argument="--barcoded" type="boolean" truevalue="--barcode" falsevalue="" checked="false" label="Do you want to split the summary file by barcode?" help="Default:No"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
59 <param name="readtype" argument="--readtype" type="select" label="Which read type to extract information about from summary?">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
60 <option value="1D" selected="true">1D</option>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
61 <option value="2D">2D</option>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
62 <option value="1D2">1D2</option>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
63 </param>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
64 </when>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
65 </conditional>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
66
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
67 </inputs>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
68 <outputs>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
69 <data name="output1" format="tabular" />
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
70 </outputs>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
71 <tests>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
72 <test>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
73 <param name="type" value="fastq"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
74 <param name="file" value="input_1.fq.gz,input_2.fq.bz2"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
75 <output name="output1" file="out.txt"/>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
76 </test>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
77 </tests>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
78 <help><![CDATA[
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
79 usage: NanoStat [-h] [-v] [-o OUTDIR] [-p PREFIX] [-n NAME] [-t N]
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
80 [--barcoded] [--readtype {1D,2D,1D2}]
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
81 (--fastq file [file ...] | --fasta file [file ...] | --summary file [file ...] | --bam file [file ...])
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
82
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
83 Calculate statistics of long read sequencing dataset.
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
84
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
85 EXAMPLE usage:
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
86 NanoStat --fastq reads.fastq.gz --outdir statreports
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
87
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
88 ]]> </help>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
89 <citations>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
90 <citation type="bibtex">
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
91 @misc{githubnanostat,
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
92 url = {https://github.com/wdecoster/nanostat}
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
93 }
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
94 @article{10.1093/bioinformatics/bty149,
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
95 author = {De Coster, Wouter and D’Hert, Svenn and Schultz, Darrin T and Cruts, Marc and Van Broeckhoven, Christine},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
96 title = "{NanoPack: visualizing and processing long-read sequencing data}",
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
97 journal = {Bioinformatics},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
98 volume = {34},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
99 number = {15},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
100 pages = {2666-2669},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
101 year = {2018},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
102 month = {03},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
103 abstract = "{Here we describe NanoPack, a set of tools developed for visualization and processing of long-read sequencing data from Oxford Nanopore Technologies and Pacific Biosciences.The NanoPack tools are written in Python3 and released under the GNU GPL3.0 License. The source code can be found at https://github.com/wdecoster/nanopack, together with links to separate scripts and their documentation. The scripts are compatible with Linux, Mac OS and the MS Windows 10 subsystem for Linux and are available as a graphical user interface, a web service at http://nanoplot.bioinf.be and command line tools.Supplementary data are available at Bioinformatics online.}",
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
104 issn = {1367-4803},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
105 doi = {10.1093/bioinformatics/bty149},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
106 url = {https://doi.org/10.1093/bioinformatics/bty149},
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
107 eprint = {http://oup.prod.sis.lan/bioinformatics/article-pdf/34/15/2666/25230836/bty149.pdf}
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
108 }
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
109 </citation>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
110 </citations>
e86d1c122ee7 initial upload
leomrtns
parents:
diff changeset
111 </tool>