comparison nanofilt.xml @ 0:ff1cc05e789a draft

planemo upload
author leomrtns
date Tue, 14 May 2019 05:57:15 -0400
parents
children a2c318b04f49
comparison
equal deleted inserted replaced
-1:000000000000 0:ff1cc05e789a
1 <tool id="nanofilt" name="NanoFilt" version="0.1.0">
2 <description>Filtering and trimming of long read sequencing data</description>
3 <requirements>
4 <requirement type="package" version="2.3.0">nanofilt</requirement>
5 </requirements>
6 <command detect_errors="exit_code"><![CDATA[
7 NanoFilt
8 #if str($filter.quality) != ""
9 -q ${filter.quality}
10 #end if
11 #if str($filter.minlength) != ""
12 --length ${filter.minlength}
13 #end if
14 #if str($filter.maxlength) != ""
15 --maxlength ${filter.maxlength}
16 #end if
17 #if str($crop.head) != ""
18 --headcrop ${crop.head}
19 #end if
20 #if str($crop.tail) != ""
21 --tailcrop ${crop.tail}
22 #end if
23 #if $summary.selector
24 --readtype "${summary.readtype}"
25 --summary "${summary.summary_file}"
26 #end if
27 --logfile $logfile
28 "$input1" > "$output1"
29 ]]></command>
30 <inputs>
31 <param type="data" name="input1" format="fastqsanger" label="uncompressed fastq file" />
32 <section name="filter" title="Options for filtering reads based on length or quality">
33 <param name="quality" type="integer" label="Filter on a minimum average read quality score" value="30" min="0" max="255" help="(-q)" optional="true" />
34 <param name="maxlength" type="integer" label="Filter on a maximum read length" help="(--maxlength)" optional="true" />
35 <param name="minlength" type="integer" label="Filter on a minimum read length" help="(--length)" optional="true" />
36 </section>
37 <section name="crop" title="Options for trimming reads">
38 <param name="head" type="integer" label="Trim n nucleotides from start of read" help="(--headcrop)" optional="true" />
39 <param name="tail" type="integer" label="Trim n nucleotides from end of read" help="(--tailcrop)" optional="true" />
40 </section>
41 <conditional name="summary">
42 <param name="selector" type="boolean" checked="false" label="Use albacore or guppy summary file for quality scores"/>
43 <when value="true">
44 <param type="data" name="summary_file" format="tabular" label="Summary file generated by albacore or guppy."/>
45 <param name="readtype" argument="--readtype" type="select" label="Which read type to extract information about from summary">
46 <option value="1D" selected="true">1D</option>
47 <option value="2D">2D</option>
48 <option value="1D2">1D2</option>
49 </param>
50 </when>
51 <when value="false">
52 <param name="minGC" type="float" label="Sequences must have GC content higher than this" min="0.0" max="1.0" help="(--minGC)" optional="true" />
53 <param name="maxGC" type="float" label="Sequences must have GC content lower than this" min="0.0" max="1.0" help="(--maxGC)" optional="true" />
54 </when>
55 </conditional>
56 </inputs>
57 <outputs>
58 <data name="output1" format="fastq" />
59 <data name="logfile" format="tabular" label="Log file" from_work_dir="logfile.txt" />
60 </outputs>
61 <tests>
62 <test>
63 <param name="input1" value="input.fastq"/>
64 <output name="output1" file="output.fastq"/>
65 </test>
66 </tests>
67 <help><![CDATA[
68 usage: NanoFilt [-h] [-v] [--logfile LOGFILE] [-l LENGTH] [--maxlength MAXLENGTH]
69 [-q QUALITY] [--minGC MINGC] [--maxGC MAXGC] [--headcrop HEADCROP] [--tailcrop TAILCROP]
70 [-s SUMMARY] [--readtype {1D,2D,1D2}]
71
72 Perform quality and/or length and/or GC filtering of (long read) fastq data. Reads on stdin.
73
74 EXAMPLES:
75
76 gunzip -c reads.fastq.gz | NanoFilt -q 10 -l 500 --headcrop 50 | minimap2 genome.fa - | samtools sort -O BAM -@24 -o alignment.bam -
77
78 gunzip -c reads.fastq.gz | NanoFilt -q 12 --headcrop 75 | gzip > trimmed-reads.fastq.gz
79
80
81 ]]></help>
82 <citations>
83 <citation type="bibtex">
84 @misc{githubnanofilt,
85 title = {nanofilt},
86 publisher = {GitHub},
87 journal = {GitHub repository},
88 url = {https://github.com/wdecoster/nanofilt}
89 }
90 @article{10.1093/bioinformatics/bty149,
91 author = {De Coster, Wouter and D’Hert, Svenn and Schultz, Darrin T and Cruts, Marc and Van Broeckhoven, Christine},
92 title = "{NanoPack: visualizing and processing long-read sequencing data}",
93 journal = {Bioinformatics},
94 volume = {34},
95 number = {15},
96 pages = {2666-2669},
97 year = {2018},
98 month = {03},
99 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.}",
100 issn = {1367-4803},
101 doi = {10.1093/bioinformatics/bty149},
102 url = {https://doi.org/10.1093/bioinformatics/bty149},
103 eprint = {http://oup.prod.sis.lan/bioinformatics/article-pdf/34/15/2666/25230836/bty149.pdf},
104 }
105 </citation>
106 </citations>
107 </tool>