|
5
|
1 <tool id="bcbio-nextgen" name="BCBio" version="1.0">
|
|
0
|
2 <command detect_errors="exit_code"><![CDATA[
|
|
3
|
3 PATH="\$BCBIO_DIRECTORY/tool_dir/bin:\$BCBIO_DIRECTORY/anaconda/bin:\$PATH" &&
|
|
0
|
4 mkdir $everything_else.files_path &&
|
|
|
5 cd $everything_else.files_path &&
|
|
|
6 python $__tool_directory__/script.py --workdir `pwd` --output-dir `pwd`/output --template $main --output-conf `pwd`/config.yaml
|
|
|
7 #if str( $region_file.has_region_file_select ) == "yes":
|
|
|
8 --bed ${region_file.bed}
|
|
|
9 #end if
|
|
|
10 #for $i, $sample in enumerate( $samples )
|
|
7
|
11 #if str( $sample.single_or_paired.single_or_paired_selector ) == "single":
|
|
|
12 --input $sample.single_or_paired.forward:$sample.phenotype
|
|
|
13 #else:
|
|
|
14 --input $sample.single_or_paired.forward:$sample.single_or_paired.reverse:$sample.phenotype
|
|
|
15 #end if
|
|
0
|
16 #end for
|
|
4
|
17 && bcbio_nextgen.py \$BCBIO_DIRECTORY/galaxy/bcbio_system.yaml `pwd`/config.yaml -t local -n \$BCBIO_CORES &&
|
|
0
|
18 zcat final/*/Batch1-ensemble-annotated.vcf.gz > $output_vcf &&
|
|
|
19 python $__tool_directory__/make_html.py --input-dir $everything_else.files_path --root-html $everything_else
|
|
|
20 ]]></command>
|
|
|
21 <configfiles>
|
|
|
22 <configfile name='main'>
|
|
|
23 details:
|
|
|
24 {% for sample in samples -%}
|
|
|
25 - algorithm:
|
|
|
26 aligner: $aligner
|
|
|
27 mark_duplicates: ${mark_duplicates}
|
|
|
28 remove_lcr: ${remove_lcr}
|
|
|
29 variantcaller: [$variantcallers]
|
|
|
30 {% if bed_file_path -%} variant_regions: {{ bed_file_path }}{% endif %}
|
|
|
31 ensemble:
|
|
|
32 numpass: 2
|
|
|
33 align_split_size: false
|
|
|
34 analysis: $analysis
|
|
|
35 lane: {{ loop.index }}
|
|
|
36 description: {{ sample['description'] }}
|
|
7
|
37 {% if 'reverse' in sample %}
|
|
0
|
38 files: [{{ sample['forward'] }}, {{ sample['reverse'] }}]
|
|
7
|
39 {% else %}
|
|
|
40 files: [{{ sample['forward'] }}]
|
|
|
41 {% endif %}
|
|
0
|
42 genome_build: $build
|
|
|
43 metadata:
|
|
|
44 phenotype: {{ sample['phenotype'] }}
|
|
|
45 batch: Batch1
|
|
|
46 upload:
|
|
|
47 dir: ./final
|
|
|
48 {% endfor %}
|
|
|
49 </configfile>
|
|
|
50 </configfiles>
|
|
|
51 <inputs>
|
|
|
52 <param name="build" type="select" label="Genome Build">
|
|
|
53 <option value="GRCh37">GRCh37</option>
|
|
|
54 <option value="hg19">hg19</option>
|
|
|
55 <option value="GRCm38">GRCm38</option>
|
|
|
56 <option value="mm10">mm10</option>
|
|
|
57 </param>
|
|
|
58 <param name="analysis" type="select" label="Analysis">
|
|
|
59 <option value="variant2">variant2</option>
|
|
|
60 <option value="RNA-seq">RNA-seq</option>
|
|
|
61 <option value="smallRNA-seq">smallRNA-seq</option>
|
|
|
62 </param>
|
|
|
63 <param name="aligner" type="select" label="Aligner">
|
|
|
64 <option value="bwa">bwa</option>
|
|
|
65 <option value="bowtie">bowtie</option>
|
|
|
66 <option value="bowtie2">bowtie2</option>
|
|
|
67 <option value="hisat2">hisat2</option>
|
|
|
68 <option value="minimap2">minimap2</option>
|
|
|
69 <option value="novoalign">novoalign</option>
|
|
|
70 <option value="snap">snap</option>
|
|
|
71 <option value="star">star</option>
|
|
|
72 <option value="tophat2">tophat2</option>
|
|
|
73 <option value="false">false</option>
|
|
|
74 </param>
|
|
|
75 <param name="variantcallers" type="select" multiple="true" label="Variantcallers">
|
|
|
76 <option value="false">false</option>
|
|
|
77 <option value="freebayes">freebayes</option>
|
|
|
78 <option value="gatk-haplotype">gatk-haplotype</option>
|
|
|
79 <option value="haplotyper">haplotyper</option>
|
|
|
80 <option value="platypus">platypus</option>
|
|
|
81 <!--<option value="mutect">mutect</option>-->
|
|
|
82 <option value="mutect2">mutect2</option>
|
|
|
83 <option value="scalpel">scalpel</option>
|
|
|
84 <option value="tnhaplotyper">tnhaplotyper</option>
|
|
|
85 <option value="tnscope">tnscope</option>
|
|
|
86 <option value="vardict">vardict</option>
|
|
|
87 <option value="varscan">varscan</option>
|
|
|
88 <option value="samtools">samtools</option>
|
|
|
89 <option value="gatk">gatk</option>
|
|
|
90 </param>
|
|
|
91 <param name="mark_duplicates" type="select">
|
|
|
92 <option value="true" selected="true">true</option>
|
|
|
93 <option value="false">false</option>
|
|
|
94 </param>
|
|
|
95 <param name="remove_lcr" type="select">
|
|
|
96 <option value="true" selected="true">true</option>
|
|
|
97 <option value="false">false</option>
|
|
|
98 </param>
|
|
|
99 <repeat name="samples" title="Samples" min="1">
|
|
|
100 <param name="phenotype" type="select" label="Phenotype">
|
|
|
101 <option value="normal">Normal</option>
|
|
|
102 <option value="tumor">Tumor</option>
|
|
|
103 </param>
|
|
7
|
104 <conditional name="single_or_paired">
|
|
|
105 <param name="single_or_paired_selector" type="select">
|
|
|
106 <option value="single">Single</option>
|
|
|
107 <option value="paired" selected="true">Paired-End</option>
|
|
|
108 </param>
|
|
|
109 <when value="single">
|
|
|
110 <param type="data" name="forward" format="fastq,fastq.gz,fastqsanger.gz" />
|
|
|
111 </when>
|
|
|
112 <when value="paired">
|
|
|
113 <param type="data" name="forward" format="fastq,fastq.gz,fastqsanger.gz" />
|
|
|
114 <param type="data" name="reverse" format="fastq,fastq.gz,fastqsanger.gz" />
|
|
|
115 </when>
|
|
|
116 </conditional>
|
|
0
|
117 </repeat>
|
|
|
118 <conditional name="region_file">
|
|
|
119 <param name="has_region_file_select" type="select" label="Do you have a region file">
|
|
|
120 <option value="yes">Yes</option>
|
|
|
121 <option value="no" selected="true">No</option>
|
|
|
122 </param>
|
|
|
123 <when value="yes">
|
|
|
124 <param type="data" name="bed" format="bed" />
|
|
|
125 </when>
|
|
|
126 </conditional>
|
|
|
127 </inputs>
|
|
|
128 <outputs>
|
|
|
129 <data name="output_vcf" format="vcf"/>
|
|
|
130 <data name="everything_else" format="html"/>
|
|
|
131 </outputs>
|
|
|
132 <help><![CDATA[
|
|
|
133 TODO: Fill in help.
|
|
|
134 ]]></help>
|
|
7
|
135 </tool>
|