annotate skesa.xml @ 19:abb622c228c4 draft

planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
author cstrittmatter
date Mon, 27 Aug 2018 08:59:02 -0400
parents 53d82924230b
children a368d48a4562
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
1 <tool id="skesa" name="skesa" version="0.1">
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
2 <requirements>
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
3 <requirement type="package" version="2.2">skesa</requirement>
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
4 <requirement type="package" >python</requirement>
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
5 </requirements>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
7
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
8
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
9 #if $jobtype.select != "cl"
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
10 skesa
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
11 #if $jobtype.select == "asm"
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
12 --fasta $draft
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
13 #else if $jobtype.select == "se"
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
14 --fastq $fastq1
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
15 #else if $jobtype.select == "pe"
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
16 --fastq $fastq1,$fastq2 --use_paired_ends
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
17 #else if $jobtype.select == "rp"
18
53d82924230b Uploaded
estrain
parents: 17
diff changeset
18 --fastq $jobtype.pairedf.forward,$jobtype.pairedf.reverse --use_paired_ends
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
19 #if $cores != 0
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
20 --cores $cores
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
21 #end if
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
22 --memory $memory > results.skesa.fasta
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
23 #end if
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
24
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
25
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
26 #if $jobtype.select == "cl"
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
27
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
28 #set $pathOuput = 0
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
29 mkdir temp_data;
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
30 #for $collection_file in $jobtype.collection_files
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
31 #silent sys.stderr.write($collection_file+"\n")
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
32 cp $collection_file temp_data/.;
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
33
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
34 #end for
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
35
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
36
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
37 #end if
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
38
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
39 ]]></command>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
40 <inputs>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
41 <conditional name="jobtype">
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
42 <param name="select" type="select" label="Assembly or FASTQ Reads?">
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
43 <option value="asm">Genome Assembly</option>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
44 <option value="se">Single-End Reads</option>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
45 <option value="pe">Paired-End Reads (Separate Files)</option>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
46 <option value="rp">Paired-End Reads (Paired Data Set)</option>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
47 <option value="cl">Collection of Reads</option>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
48 </param>
18
53d82924230b Uploaded
estrain
parents: 17
diff changeset
49 <when value="srr">
53d82924230b Uploaded
estrain
parents: 17
diff changeset
50 <param name="srrnum" type="text" label="Sra run number"/>
53d82924230b Uploaded
estrain
parents: 17
diff changeset
51 </when>
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
52 <when value="asm">
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
53 <param name="draft" type="data" format="fasta" label="FASTA" />
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
54 </when>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
55 <when value="se">
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
56 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
57 </when>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
58 <when value="pe">
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
59 <param name="fastq1" type="data" format="fastq" label="FASTQ" />
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
60 <param name="fastq2" type="data" format="fastq" label="FASTQ" />
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
61 </when>
18
53d82924230b Uploaded
estrain
parents: 17
diff changeset
62 <when value="cl">
19
abb622c228c4 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents: 18
diff changeset
63 <param name="collection_files" type="data_collection" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz,fastq.bz2,fastqsanger.bz2" collection_type="paired" label="FASTQS: Must be a Data Set list built from multiple fastq files" />
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
64 </when>
18
53d82924230b Uploaded
estrain
parents: 17
diff changeset
65 <when value="rp">
53d82924230b Uploaded
estrain
parents: 17
diff changeset
66 <param name="pairedf" type="data_collection" collection_type="paired" format="fastq" label="FASTQS: Must be a paired set of forward and reverse fastq files" />
14
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
67 </when>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
68 </conditional>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
69 <param name="memory" type="integer" label="Memory available (GB) [integer]" value="16" />
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
70 <param name="cores" type="integer" label="Number of cores to use (default all) [integer]" value="0" />
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
71
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
72 </inputs>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
73 <outputs>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
74 <data format="fasta" label="skesa Results" name="${input.name}.skesa.fasta" from_work_dir="*.fasta"/>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
75 </outputs>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
76
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
77 <help><![CDATA[
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
78
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
79 **Usage: skesa**
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
80
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
81 **INPUT**
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
82
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
83 A fasta assembly or single or paired end reads test or data set list of fastqs
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
84
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
85 **Memory available**
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
86
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
87 --memory arg (=32) Memory available (GB) [integer]
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
88
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
89
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
90 **Number of cores**
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
91
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
92 --cores arg (=0) Number of cores to use (default all) [integer]
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
93
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
94 https://github.com/ncbi/ngs-tools/tree/master/tools/skesa/
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
95
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
96 ]]></help>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
97 <citations>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
98 <citation type="bibtex">
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
99 @misc{pope_dashnow_zobel_holt_raven_schultz_inouye_tomita_2014,
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
100 title={skesa: eSKESA is a de-novo sequence read assembler for cultured single isolate genomes
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
101 based on DeBruijn graphs. It uses conservative heuristics and is designed to
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
102 create breaks at repeat regions in the genome. This leads to excellent sequence
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
103 quality but not necessarily a large N50 statistic. It is a multi-threaded
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
104 application that scales well with the number of processors. For different runs
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
105 with the same inputs, including the order of reads, the order and orientation
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
106 of contigs in the output is deterministic. },
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
107 url={https://github.com/ncbi/ngs-tools/tree/master/tools/skesa/},
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
108 author={National Center for Biotechnology Information },
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
109 }</citation>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
110 </citations>
1581b4e8d993 Uploaded
estrain
parents:
diff changeset
111 </tool>