annotate fermikit_run_calling.xml @ 0:44519e762f16 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
author iuc
date Thu, 05 Jan 2017 08:35:48 -0500
parents
children ed056d243455
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
1 <tool id="fermikit_variants" name="fermikit-variants" version="0.14.dev1">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
2 <description>call variants from genome-aligned contigs</description>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
3 <requirements>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
4 <requirement type="package" version="0.14.dev1">fermikit</requirement>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
5 <requirement type="package" version="0.6.5">sambamba</requirement>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
6 </requirements>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
7 <command detect_errors="aggressive"><![CDATA[
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
8 #import re
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
9 #set escaped_element_identifier = re.sub('[^\w\-\s]', '_', str($bam.element_identifier))
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
10 #set ref = $reference_genome.fasta_item.fields.path if $reference_genome.reference_genome_source == "reference" else $reference_genome.history_item
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
11 export ROOT=\$(dirname \$(type -P k8)) &&
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
12 ln -f -s '$bam' '$escaped_element_identifier' &&
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
13 htsbox pileup -cuf '$ref' '$escaped_element_identifier' | gzip -1 > raw.vcf.gz &&
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
14 k8 "\$ROOT"/hapdip.js deovlp raw.vcf.gz | k8 "\$ROOT"/hapdip.js anno | gzip -1 > tmp.vcf.gz 2> flt.vcf.log &&
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
15 k8 "\$ROOT"/hapdip.js filter -q3 tmp.vcf.gz > flt.vcf 2>> flt.vcf.log &&
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
16 htsbox abreak -bcuf '$ref' <(sambamba sort -n -o /dev/stdout '$escaped_element_identifier') > sv.vcf
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
17 ]]></command>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
18 <inputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
19 <param name="bam" type="data" label="aligned contigs" help="To generate aligned contigs align fermi2 contigs with BWA mem options -B9 -O16 -L5" format="bam"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
20 <conditional name="reference_genome" label="Reference genome to call variants against">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
21 <param name="reference_genome_source" type="select">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
22 <option value="reference">Use a built-in genome to call variants</option>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
23 <option value="history">Use a genome from history to call variants</option>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
24 </param>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
25 <when value="history">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
26 <param format="fasta" label="Select a reference genome" name="history_item" type="data" />
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
27 </when>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
28 <when value="reference">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
29 <param label="Select a reference genome" name="fasta_item" type="select">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
30 <options from_data_table="all_fasta">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
31 <filter column="2" type="sort_by"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
32 </options>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
33 </param>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
34 </when>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
35 </conditional>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
36 </inputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
37 <outputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
38 <data name="structural_variants" format="vcf" label="fermikit SV on ${on_string}" from_work_dir="sv.vcf"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
39 <data name="snps_indels" format="vcf" label="fermikit SNPs and short INDELs on ${on_string}" from_work_dir="flt.vcf"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
40 </outputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
41 <tests>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
42 <test>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
43 <param name="reference_genome_source" value="history"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
44 <param name="history_item" value="small.fa.gz" ftype="fasta"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
45 <param name="bam" value="aligned_contigs.bam"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
46 <output name="structural_variants" file="sv.vcf" lines_diff="2"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
47 <output name="snps_indels" file="flt.vcf" lines_diff="2"/>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
48 </test>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
49 </tests>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
50 <help><![CDATA[
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
51
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
52 FermiKit is a de novo assembly based variant calling pipeline for deep Illumina
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
53 resequencing data. This galaxy wrapper can be used to call variants from contigs
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
54 generated by fermi2 that have subsequently been aligned to a reference genome
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
55 using bwa (options -B9 -O16 -L5 or -x intractg).
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
56
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
57 ]]></help> <citations> <citation
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
58 type="doi">10.1093/bioinformatics/btv440</citation> </citations> </tool>