comparison discosnp_pp.xml @ 5:fd98c5af5a6c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/colibread commit 8d37fef93da141323cc120b5fec737432e497dcf"
author iuc
date Thu, 06 May 2021 12:45:52 +0000
parents 912d042e4f1e
children b3b0ce84e711
comparison
equal deleted inserted replaced
4:912d042e4f1e 5:fd98c5af5a6c
1 <?xml version='1.0' encoding='utf-8'?> 1 <tool id="discosnp_pp" name="DiscoSnp++" version="@DISCOSNP_VERSION@+galaxy0" profile="@PROFILE@">
2 <tool profile="16.04" id="discosnp_pp" name="DiscoSnp++" version="@DISCOSNP_VERSION@">
3 <description>is an efficient tool for detecting SNPs without a reference genome.</description> 2 <description>is an efficient tool for detecting SNPs without a reference genome.</description>
4 <macros> 3 <macros>
5 <import>macros.xml</import> 4 <import>macros.xml</import>
6 </macros> 5 </macros>
7 <expand macro="discosnp_requirements" /> 6 <expand macro="discosnp_requirements" />
8 <command><![CDATA[ 7 <command detect_errors="exit_code"><![CDATA[
9 ## simple option 8 #if str($input_type_options.input_type) == "single":
10 #if str( $input_type_options.input_type) == "single" 9 @discosnp_single_for@
11 @discosnp_single_reads@ 10 @single_reads@
12 ## paired option 11 @discosnp_single_end_for@
13 #else if str( $input_type_options.input_type) == "paired" 12 #else if str($input_type_options.input_type) == "paired":
14 @discosnp_paired_reads@ 13 @discosnp_paired_for@
15 ## mix option 14 @paired_reads@
16 #else 15 @discosnp_paired_end_for@
17 @discosnp_single_reads@ 16 #else:
18 @discosnp_paired_reads@ 17 @discosnp_single_for@
18 @single_reads@
19 @discosnp_single_end_for@
20 @discosnp_paired_for@
21 @paired_reads@
22 @discosnp_paired_end_for@
19 #end if 23 #end if
20 24 #if str($VCF_option.mapping) == 'reference':
21 #if str($VCF_option.mapping) == 'reference'
22 #set $reference_file = os.path.basename(str($VCF_option.G)) + "." + $VCF_option.G.ext 25 #set $reference_file = os.path.basename(str($VCF_option.G)) + "." + $VCF_option.G.ext
23 ln -sf '${VCF_option.G}' '${reference_file}' && 26 ln -sf '${VCF_option.G}' '${reference_file}' &&
24 #end if 27 #end if
25
26 run_discoSnp++.sh 28 run_discoSnp++.sh
27 @discosnp_inputs@ 29 @discosnp_inputs@
28 ${T} 30 ${T}
29 -b ${b} 31 -b ${b}
30 #if str($VCF_option.mapping) == 'reference' 32 #if str($VCF_option.mapping) == 'reference':
31 -G '${reference_file}' 33 -G '${reference_file}'
32 ${VCF_option.R} 34 ${VCF_option.R}
33 #end if 35 #end if
34
35 --max_threads \${GALAXY_SLOTS:-1} 36 --max_threads \${GALAXY_SLOTS:-1}
36
37 ]]></command> 37 ]]></command>
38
39 <inputs> 38 <inputs>
40
41
42 <expand macro="discosnp_inputs" /> 39 <expand macro="discosnp_inputs" />
43
44 <param argument="-b" type="select" label="Branching strategy"> 40 <param argument="-b" type="select" label="Branching strategy">
45 <option value="0">variants for which any of the two paths is branching are discarded</option> 41 <option value="0">variants for which any of the two paths is branching are discarded</option>
46 <option value="1">forbid SNPs for wich the two paths are branching</option> 42 <option value="1">forbid SNPs for wich the two paths are branching</option>
47 <option value="2">No limitation on branching</option> 43 <option value="2">No limitation on branching</option>
48 </param> 44 </param>
49
50 <expand macro="discosnp_options" /> 45 <expand macro="discosnp_options" />
51
52 <param argument="-T" type="boolean" checked="false" truevalue="-T" falsevalue="" label="Extends each polymorphism with left and right contigs" /> 46 <param argument="-T" type="boolean" checked="false" truevalue="-T" falsevalue="" label="Extends each polymorphism with left and right contigs" />
53
54 <conditional name="VCF_option" > 47 <conditional name="VCF_option" >
55 <param name="mapping" type="select" label="VCF option"> 48 <param name="mapping" type="select" label="VCF option">
56 <option value="default">Do not use reference genome</option> 49 <option value="default">Do not use reference genome</option>
57 <option value="reference">Mapping with a reference genome</option> 50 <option value="reference">Mapping with a reference genome</option>
58 </param> 51 </param>
59 <when value="default"></when> 52 <when value="default"></when>
60 <when value="reference"> 53 <when value="reference">
61 <param argument="-G" type="data" format="fasta,fastq" label="Reference genome file" /> 54 <param argument="-G" type="data" format="fasta,fasta.gz,fastq,fastq.gz" label="Reference genome file" />
62 <param argument="-R" type="boolean" truevalue="-R" falsevalue="" checked="false" label="Use the reference genome also in the variant calling, not only for mapping results" /> 55 <param argument="-R" type="boolean" truevalue="-R" falsevalue="" checked="false" label="Use the reference genome also in the variant calling, not only for mapping results" />
63 </when> 56 </when>
64 </conditional> 57 </conditional>
65
66 </inputs> 58 </inputs>
67
68 <outputs> 59 <outputs>
69 <data name="vcf" from_work_dir="*_coherent.vcf" format="vcf" label="VCF with ${tool.name} on $on_string"/> 60 <data name="vcf" from_work_dir="*_coherent.vcf" format="vcf" label="VCF with ${tool.name} on $on_string"/>
70 <data name="fasta" from_work_dir="*_coherent.fa" format="fasta" label="Multifasta with ${tool.name} on $on_string"/> 61 <data name="fasta" from_work_dir="*_coherent.fa" format="fasta" label="Multifasta with ${tool.name} on $on_string"/>
71 </outputs> 62 </outputs>
72
73 <tests> 63 <tests>
74 <test> 64 <test>
75 <conditional name="input_type_options"> 65 <conditional name="input_type_options">
76 <param name="input_type" value="single"/> 66 <param name="input_type" value="single"/>
77 <param name="list_reads" value="discosnp/reads1,discosnp/reads2" ftype="fasta" /> 67 <param name="list_reads" value="discosnp/reads1.gz,discosnp/reads2.gz" ftype="fasta.gz" />
78 </conditional> 68 </conditional>
79 <param name="k" value="25"/> 69 <param name="k" value="25"/>
80 <output name="fasta" file="discosnp/multifasta.fa"/> 70 <output name="fasta" file="discosnp/multifasta.fa"/>
81 <output name="vcf" file="discosnp/vcf_file.vcf" compare="diff" lines_diff="2"/> 71 <output name="vcf" file="discosnp/vcf_file.vcf" compare="diff" lines_diff="2"/>
82 </test> 72 </test>
85 <param name="input_type" value="paired"/> 75 <param name="input_type" value="paired"/>
86 <param name="list_paired_reads"> 76 <param name="list_paired_reads">
87 <collection type="list:paired"> 77 <collection type="list:paired">
88 <element name="Pair1"> 78 <element name="Pair1">
89 <collection type="paired"> 79 <collection type="paired">
90 <element name="forward" value="discosnp/reads1" ftype="fasta"/> 80 <element name="forward" value="discosnp/reads1.gz" ftype="fasta.gz"/>
91 <element name="reverse" value="discosnp/reads2" ftype="fasta"/> 81 <element name="reverse" value="discosnp/reads2.gz" ftype="fasta.gz"/>
92 </collection> 82 </collection>
93 </element> 83 </element>
94 </collection> 84 </collection>
95 </param> 85 </param>
96 </conditional> 86 </conditional>
97 <conditional name="VCF_option"> 87 <conditional name="VCF_option">
98 <param name="mapping" value="reference"/> 88 <param name="mapping" value="reference"/>
99 <param name="G" value="discosnp/reads1" ftype="fasta"/> 89 <param name="G" value="discosnp/reads1.gz" ftype="fasta.gz"/>
100 </conditional> 90 </conditional>
101 <output name="fasta" file="discosnp/multifasta_paired.fa"/> 91 <output name="fasta" file="discosnp/multifasta_paired.fa"/>
102 <output name="vcf" file="discosnp/vcf_file_paired.vcf" compare="diff" lines_diff="2"/> 92 <output name="vcf" file="discosnp/vcf_file_paired.vcf" compare="diff" lines_diff="2"/>
103 </test> 93 </test>
104 </tests> 94 </tests>
105
106 <help><![CDATA[ 95 <help><![CDATA[
107 96
108 **Description** 97 **Description**
109 98
110 Software discoSnp is designed for discovering Single Nucleotide Polymorphism (SNP) from raw set(s) of reads obtained with Next Generation Sequencers (NGS). 99 Software discoSnp is designed for discovering Single Nucleotide Polymorphism (SNP) from raw set(s) of reads obtained with Next Generation Sequencers (NGS).