annotate cfsan_snp_pipeline_map_reads.xml @ 1:85e400e1f2dd draft default tip

Uploaded
author greg
date Thu, 23 Nov 2023 18:36:23 +0000
parents e589aadb5a80
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e589aadb5a80 Uploaded
greg
parents:
diff changeset
1 <tool id="cfsan_snp_pipeline_map_reads" name="CFSAN SNP Pipeline: map reads" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
2 <description></description>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
3 <macros>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
5 </macros>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
6 <expand macro="requirements"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
e589aadb5a80 Uploaded
greg
parents:
diff changeset
8 #set compressed =" False"
e589aadb5a80 Uploaded
greg
parents:
diff changeset
9 #if str($input_type_cond.input_type) == 'paired':
e589aadb5a80 Uploaded
greg
parents:
diff changeset
10 #set forward = $input_type_cond.reads_collection.forward
e589aadb5a80 Uploaded
greg
parents:
diff changeset
11 #set reverse = $input_type_cond.reads_collection.reverse
e589aadb5a80 Uploaded
greg
parents:
diff changeset
12 #end if
e589aadb5a80 Uploaded
greg
parents:
diff changeset
13 #if $forward.is_of_type("fastq.gz","fastqsanger.gz"):
e589aadb5a80 Uploaded
greg
parents:
diff changeset
14 ln -s '$forward' forward.gz &&
e589aadb5a80 Uploaded
greg
parents:
diff changeset
15 #set forward = 'forward.gz'
e589aadb5a80 Uploaded
greg
parents:
diff changeset
16 #set compressed = "GZ"
e589aadb5a80 Uploaded
greg
parents:
diff changeset
17 #else if $forward.is_of_type("fastq.bz2", "fastqsanger.bz2"):
e589aadb5a80 Uploaded
greg
parents:
diff changeset
18 ln -s '$forward' forward.bz2 &&
e589aadb5a80 Uploaded
greg
parents:
diff changeset
19 #set forward = 'forward.bz2'
e589aadb5a80 Uploaded
greg
parents:
diff changeset
20 #set compressed = "BZ2"
e589aadb5a80 Uploaded
greg
parents:
diff changeset
21 #end if
e589aadb5a80 Uploaded
greg
parents:
diff changeset
22 #if $reverse.is_of_type("fastq.gz","fastqsanger.gz"):
e589aadb5a80 Uploaded
greg
parents:
diff changeset
23 ln -s '$reverse' reverse.gz &&
e589aadb5a80 Uploaded
greg
parents:
diff changeset
24 #set reverse = 'reverse.gz'
e589aadb5a80 Uploaded
greg
parents:
diff changeset
25 #set compressed = "GZ"
e589aadb5a80 Uploaded
greg
parents:
diff changeset
26 #else if $reverse.is_of_type("fastq.bz2", "fastqsanger.bz2"):
e589aadb5a80 Uploaded
greg
parents:
diff changeset
27 ln -s '$reverse' reverse.bz2 &&
e589aadb5a80 Uploaded
greg
parents:
diff changeset
28 #set reverse = 'reverse.bz2'
e589aadb5a80 Uploaded
greg
parents:
diff changeset
29 #set compressed = "BZ2"
e589aadb5a80 Uploaded
greg
parents:
diff changeset
30 #end if
e589aadb5a80 Uploaded
greg
parents:
diff changeset
31 bowtie2-build '$reference' --threads \${GALAXY_SLOTS:-4} 'reference' &&
e589aadb5a80 Uploaded
greg
parents:
diff changeset
32 bowtie2 -q -x reference -1 '$forward' -2 '$reverse' -p \${GALAXY_SLOTS:-4} --reorder -X 1000 -S '$output'
e589aadb5a80 Uploaded
greg
parents:
diff changeset
33 ]]></command>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
34 <inputs>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
35 <conditional name="input_type_cond">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
36 <param name="input_type" type="select" label="Choose the category of the files to be analyzed">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
37 <option value="paired" selected="true">List of dataset pairs</option>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
38 <option value="pair">Dataset pair</option>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
39 </param>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
40 <when value="pair">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
41 <param name="forward" type="data" format="fastqsanger.gz,fastqsanger" label="Read1 fastq file"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
42 <param name="reverse" type="data" format="fastqsanger.gz,fastqsanger" label="Read2 fastq file"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
43 </when>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
44 <when value="paired">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
45 <param name="reads_collection" type="data_collection" format="fastqsanger,fastqsanger.gz" collection_type="paired" label="Collection of fastqsanger paired read files"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
46 </when>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
47 </conditional>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
48 <expand macro="reference_cond"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
49 </inputs>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
50 <outputs>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
51 <data name="output" format="sam"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
52 </outputs>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
53 <tests>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
54 <test>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
55 <param name="reference" value="lambda_virus.fasta" ftype="fasta"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
56 <param name="input_type" value="pair"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
57 <param name="forward" value="sample1_1.fastq.gz" ftype="fastqsanger.gz"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
58 <param name="reverse" value="sample1_2.fastq.gz" ftype="fastqsanger.gz"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
59 <output name="output" ftype="sam">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
60 <assert_contents>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
61 <has_size value="7285613" delta="1000"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
62 </assert_contents>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
63 </output>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
64 </test>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
65 <test>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
66 <param name="reference" value="lambda_virus.fasta" ftype="fasta"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
67 <param name="input_type" value="paired"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
68 <param name="reads_collection">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
69 <collection type="paired">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
70 <element name="forward" value="sample1_1.fastq.gz"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
71 <element name="reverse" value="sample1_2.fastq.gz"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
72 </collection>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
73 </param>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
74 <output name="output" ftype="sam">
e589aadb5a80 Uploaded
greg
parents:
diff changeset
75 <assert_contents>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
76 <has_size value="7285613" delta="1000"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
77 </assert_contents>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
78 </output>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
79 </test>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
80 </tests>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
81 <help><![CDATA[
e589aadb5a80 Uploaded
greg
parents:
diff changeset
82 **What it does**
e589aadb5a80 Uploaded
greg
parents:
diff changeset
83
e589aadb5a80 Uploaded
greg
parents:
diff changeset
84 Aligns the sequence reads for a specified sample to a specified reference genome. The reads are
e589aadb5a80 Uploaded
greg
parents:
diff changeset
85 sorted, duplicates marked, and realigned around indels.
e589aadb5a80 Uploaded
greg
parents:
diff changeset
86
e589aadb5a80 Uploaded
greg
parents:
diff changeset
87 **More information**
e589aadb5a80 Uploaded
greg
parents:
diff changeset
88
e589aadb5a80 Uploaded
greg
parents:
diff changeset
89 CFSAN SNP Pipeline `call consensus documentation <https://snp-pipeline.readthedocs.io/en/latest/cmd_ref.html#call-consensus>`_
e589aadb5a80 Uploaded
greg
parents:
diff changeset
90 ]]></help>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
91 <expand macro="citations"/>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
92 </tool>
e589aadb5a80 Uploaded
greg
parents:
diff changeset
93