Mercurial > repos > cstrittmatter > skesa
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 |
rev | line source |
---|---|
14 | 1 <tool id="skesa" name="skesa" version="0.1"> |
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 | 5 </requirements> |
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 | 10 skesa |
19
abb622c228c4
planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents:
18
diff
changeset
|
11 #if $jobtype.select == "asm" |
14 | 12 --fasta $draft |
19
abb622c228c4
planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents:
18
diff
changeset
|
13 #else if $jobtype.select == "se" |
14 | 14 --fastq $fastq1 |
19
abb622c228c4
planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e
cstrittmatter
parents:
18
diff
changeset
|
15 #else if $jobtype.select == "pe" |
14 | 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 | 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 | 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 | 37 #end if |
38 | |
39 ]]></command> | |
40 <inputs> | |
41 <conditional name="jobtype"> | |
42 <param name="select" type="select" label="Assembly or FASTQ Reads?"> | |
43 <option value="asm">Genome Assembly</option> | |
44 <option value="se">Single-End Reads</option> | |
45 <option value="pe">Paired-End Reads (Separate Files)</option> | |
46 <option value="rp">Paired-End Reads (Paired Data Set)</option> | |
47 <option value="cl">Collection of Reads</option> | |
48 </param> | |
18 | 49 <when value="srr"> |
50 <param name="srrnum" type="text" label="Sra run number"/> | |
51 </when> | |
14 | 52 <when value="asm"> |
53 <param name="draft" type="data" format="fasta" label="FASTA" /> | |
54 </when> | |
55 <when value="se"> | |
56 <param name="fastq1" type="data" format="fastq" label="FASTQ" /> | |
57 </when> | |
58 <when value="pe"> | |
59 <param name="fastq1" type="data" format="fastq" label="FASTQ" /> | |
60 <param name="fastq2" type="data" format="fastq" label="FASTQ" /> | |
61 </when> | |
18 | 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 | 64 </when> |
18 | 65 <when value="rp"> |
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 | 67 </when> |
68 </conditional> | |
69 <param name="memory" type="integer" label="Memory available (GB) [integer]" value="16" /> | |
70 <param name="cores" type="integer" label="Number of cores to use (default all) [integer]" value="0" /> | |
71 | |
72 </inputs> | |
73 <outputs> | |
74 <data format="fasta" label="skesa Results" name="${input.name}.skesa.fasta" from_work_dir="*.fasta"/> | |
75 </outputs> | |
76 | |
77 <help><![CDATA[ | |
78 | |
79 **Usage: skesa** | |
80 | |
81 **INPUT** | |
82 | |
83 A fasta assembly or single or paired end reads test or data set list of fastqs | |
84 | |
85 **Memory available** | |
86 | |
87 --memory arg (=32) Memory available (GB) [integer] | |
88 | |
89 | |
90 **Number of cores** | |
91 | |
92 --cores arg (=0) Number of cores to use (default all) [integer] | |
93 | |
94 https://github.com/ncbi/ngs-tools/tree/master/tools/skesa/ | |
95 | |
96 ]]></help> | |
97 <citations> | |
98 <citation type="bibtex"> | |
99 @misc{pope_dashnow_zobel_holt_raven_schultz_inouye_tomita_2014, | |
100 title={skesa: eSKESA is a de-novo sequence read assembler for cultured single isolate genomes | |
101 based on DeBruijn graphs. It uses conservative heuristics and is designed to | |
102 create breaks at repeat regions in the genome. This leads to excellent sequence | |
103 quality but not necessarily a large N50 statistic. It is a multi-threaded | |
104 application that scales well with the number of processors. For different runs | |
105 with the same inputs, including the order of reads, the order and orientation | |
106 of contigs in the output is deterministic. }, | |
107 url={https://github.com/ncbi/ngs-tools/tree/master/tools/skesa/}, | |
108 author={National Center for Biotechnology Information }, | |
109 }</citation> | |
110 </citations> | |
111 </tool> |