annotate seqsero2.xml @ 11:f6f0702de3b4

planemo upload
author jpayne
date Tue, 13 Aug 2019 08:40:57 -0400
parents 00ed20576a29
children 4ac593d4b40f
rev   line source
jpayne@10 1 <tool id="seqsero_v2" name="SeqSero 2" version="2.0.1">
jpayne@0 2 <description>Salmonella serotype prediction</description>
jpayne@0 3 <requirements>
jpayne@1 4 <requirement type="package" version="3.6">python</requirement>
jpayne@1 5 <requirement type="package" version="1.70">biopython</requirement>
jpayne@1 6 <requirement type="package" version="2.7.1">blast</requirement>
jpayne@0 7 <requirement type="package" version="1.9">samtools</requirement>
jpayne@1 8 <requirement type="package" version="2.9.1">sra-tools</requirement>
jpayne@0 9 <requirement type="package" version="0.7.17">bwa</requirement>
jpayne@1 10 <requirement type="package" version="3.12.0">spades</requirement>
jpayne@0 11 <requirement type="package" version="2.27.1">bedtools</requirement>
jpayne@0 12 </requirements>
jpayne@0 13 <command detect_errors="exit_code"><![CDATA[
jpayne@10 14 echo "SeqSero 2 v. 1.0.0" ;
jpayne@3 15 #if $reads.reads_select == 'history'
jpayne@3 16 #set $name = $reads.forward.name.split('.')[0].replace(' ','_')
jpayne@3 17 #set $forward = $reads.forward
jpayne@3 18 #set $reverse = $reads.reverse
jpayne@0 19 #else
jpayne@3 20 #set $name = $reads.coll.name.replace(' ', '_')
jpayne@3 21 #set $forward = $reads.coll.forward
jpayne@3 22 #set $reverse = $reads.coll.reverse
jpayne@0 23 #end if
jpayne@2 24 echo $name ;
jpayne@2 25 echo "-=-=-=-=-" ;
jpayne@3 26 #if $forward.is_of_type('fastq.gz', 'fastqsanger.gz')
jpayne@2 27 gunzip -c $forward > forward.fastq;
jpayne@3 28 #set $forward = './forward.fastq'
jpayne@0 29 #end if
jpayne@3 30 #if $reverse.is_of_type('fastq.gz', 'fastqsanger.gz')
jpayne@2 31 gunzip -c $reverse > reverse.fastq;
jpayne@3 32 #set $reverse = './reverse.fastq'
jpayne@0 33 #end if
jpayne@3 34 ln -s $forward ${name}_1.fastq;
jpayne@3 35 ln -s $reverse ${name}_2.fastq;
jpayne@3 36 mkdir ./output;
jpayne@2 37 python $__tool_directory__/SeqSero2/SeqSero2_package.py
jpayne@2 38 -p \${GALAXY_SLOTS:-4}
jpayne@2 39 -t 2
jpayne@2 40 -m $mode
jpayne@2 41 -d ./output
jpayne@2 42 #if $mode == 'a':
jpayne@2 43 -b $maptype
jpayne@2 44 #end if
jpayne@2 45 -i ${name}_1.fastq ${name}_2.fastq &&
jpayne@2 46 echo "-=-=-=-=-" &&
jpayne@2 47 cat output/SeqSero_log.txt &&
jpayne@2 48 echo "-=-=-=-=-" &&
jpayne@2 49 ls -lah ./output
jpayne@0 50 ]]></command>
jpayne@0 51 <inputs>
jpayne@0 52
jpayne@0 53 <conditional name="reads">
jpayne@0 54 <param name="reads_select" type="select" label="Paired-end collection, or two datasets from your history">
jpayne@0 55 <option value="collection">Paired collection from your history</option>
jpayne@0 56 <option value="history">Two FASTQ datasets from your history</option>
jpayne@0 57 </param>
jpayne@0 58 <when value="collection">
jpayne@0 59 <param label="Paired reads" name="coll" type="data_collection" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" collection_type="paired" />
jpayne@0 60 </when>
jpayne@0 61 <when value="history">
jpayne@0 62 <param label="Forward reads" type="data" name="forward" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" />
jpayne@0 63 <param label="Reverse reads" type="data" name="reverse" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" />
jpayne@0 64 </when>
jpayne@0 65 </conditional>
jpayne@0 66
jpayne@0 67 <!-- <param name="fastq1" type="data" format="fastq" label="FASTQ paired end read 1" />
jpayne@0 68 <param name="fastq2" type="data" format="fastq" label="FASTQ paired end read 2" /> -->
jpayne@0 69 <!-- <param name="numofthr" type="select" label="Number of threads">
jpayne@0 70 <option value="1">1</option>
jpayne@0 71 <option value="2">2</option>
jpayne@0 72 <option value="3">3</option>
jpayne@0 73 <option value="4">4</option> -->
jpayne@0 74 <!-- </param> -->
jpayne@2 75
jpayne@2 76 <param label="Analysis mode" type="select" name="mode">
jpayne@2 77 <option value="k">k-mer mode</option>
jpayne@2 78 <option value="a">allele mode</option>
jpayne@2 79 </param>
jpayne@2 80
jpayne@2 81 <param name="maptype" type="select" label="Algorithms for BWA mapping">
jpayne@0 82 <option value="mem">mem</option>
jpayne@0 83 <option value="sam">sam</option>
jpayne@0 84 </param>
jpayne@2 85
jpayne@0 86
jpayne@0 87
jpayne@0 88 </inputs>
jpayne@0 89 <outputs>
jpayne@1 90 <data format="tabular" label="SeqSero Results" name="results" from_work_dir="output/Seqsero_result.tsv"/>
jpayne@0 91 </outputs>
jpayne@0 92 <tests>
jpayne@1 93 <!-- <test>
jpayne@1 94 <param name="reads_select" value="history" />
jpayne@1 95 <param name="forward" value="forward.fastq.gz" ftype="fastqsanger.gz" />
jpayne@1 96 <param name="reverse" value="reverse.fastq.gz" ftype="fastqsanger.gz" />
jpayne@1 97 <output name="results" file="Seqsero_result.tsv" />
jpayne@1 98 </test>
jpayne@0 99 <test>
jpayne@1 100 <param name="reads_select" value="collection" />
jpayne@1 101 <param name="coll">
jpayne@1 102 <collection type="paired">
jpayne@1 103 <element name="forward" value="forward.fastq.gz" ftype="fastqsanger.gz" />
jpayne@1 104 <element name="reverse" value="reverse.fastq.gz" ftype="fastqsanger.gz" />
jpayne@1 105 </collection>
jpayne@1 106 </param>
jpayne@1 107 <output name="results" file="Seqsero_result.tsv" />
jpayne@1 108 </test> -->
jpayne@1 109 <test>
jpayne@1 110 <param name="mode" value="k" />
jpayne@0 111 <param name="reads_select" value="history" />
jpayne@3 112 <param name="forward" value="forward_25k.fastq.gz" ftype="fastqsanger" />
jpayne@3 113 <param name="reverse" value="reverse_25k.fastq.gz" ftype="fastqsanger" />
jpayne@1 114 <output name="results" file="Seqsero_result_25k.tsv" />
jpayne@0 115 </test>
jpayne@0 116 <test>
jpayne@1 117 <param name="mode" value="k" />
jpayne@0 118 <param name="reads_select" value="collection" />
jpayne@0 119 <param name="coll">
jpayne@0 120 <collection type="paired">
jpayne@0 121 <element name="forward" value="forward_25k.fastq.gz" ftype="fastqsanger.gz" />
jpayne@0 122 <element name="reverse" value="reverse_25k.fastq.gz" ftype="fastqsanger.gz" />
jpayne@0 123 </collection>
jpayne@0 124 </param>
jpayne@1 125 <output name="results" file="Seqsero_result_25k_coll.tsv" />
jpayne@0 126 </test>
jpayne@11 127 <test>
jpayne@11 128 <param name="mode" value="a" />
jpayne@11 129 <param name="reads_select" value="history" />
jpayne@11 130 <param name="forward" value="forward_25k.fastq.gz" ftype="fastqsanger" />
jpayne@11 131 <param name="reverse" value="reverse_25k.fastq.gz" ftype="fastqsanger" />
jpayne@11 132 <output name="results" file="Seqsero_result_25k.tsv" />
jpayne@11 133 </test>
jpayne@1 134 <!-- <test>
jpayne@1 135 <param name="mode" value="a" />
jpayne@1 136 <param name="reads_select" value="collection" />
jpayne@1 137 <param name="coll">
jpayne@1 138 <collection type="paired">
jpayne@1 139 <element name="forward" value="forward_25k.fastq.gz" ftype="fastqsanger.gz" />
jpayne@1 140 <element name="reverse" value="reverse_25k.fastq.gz" ftype="fastqsanger.gz" />
jpayne@1 141 </collection>
jpayne@1 142 </param>
jpayne@1 143 <output name="results" file="Seqsero_result_allele.tsv" />
jpayne@1 144 </test> -->
jpayne@0 145 </tests>
jpayne@0 146 <help><![CDATA[
jpayne@0 147
jpayne@0 148 **Usage: SeqSero2.py**
jpayne@0 149
jpayne@0 150 **Algorithms for BWA mapping**
jpayne@0 151
jpayne@0 152 'mem' for mem, 'sam' for samse/sampe; default=mem; optional; for now SeqSero2 is only optimized for "mem" mode
jpayne@0 153
jpayne@0 154 ]]></help>
jpayne@0 155 <citations>
jpayne@0 156 <citation type="bibtex">
jpayne@0 157 @misc{zhang_yin_jones_zhang_deathrage_dinsmore_fitzgeral_fields_deng_2015,
jpayne@0 158 title={Salmonella serotype determination utilizing high-throughput genome sequencing data.},
jpayne@0 159 journal={J Clin Microbiol}, publisher={ASM},
jpayne@0 160 author={Zhang S, Yin Y, Jones MB, Zhang Z, Deatherage Kaiser BL, Dinsmore BA, Fitzgerald C, Fields PI, Deng X.},
jpayne@0 161 year={2015}, month={Max},
jpayne@0 162 url={http://http://jcm.asm.org/content/early/2015/03/05/JCM.00323-15}},
jpayne@0 163 }</citation>
jpayne@5 164 <citation type="bibtex">
jpayne@5 165 @misc{cfsan_biostatistics_group_2017,
jpayne@5 166 title={CFSAN Biostatistics Group fork of SeqSero2},
jpayne@5 167 url={https://github.com/CFSAN-Biostatistics/SeqSero2.git}},
jpayne@5 168 </citation>
jpayne@0 169 </citations>
jpayne@0 170
jpayne@0 171 </tool>