annotate fermikit_run_calling.xml @ 1:ed056d243455 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
author iuc
date Mon, 27 Jun 2022 11:22:33 +0000
parents 44519e762f16
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
1 <tool id="fermikit_variants" name="fermikit-variants" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
0
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>
1
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
3 <macros>
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
4 <token name="@TOOL_VERSION@">0.14.dev1</token>
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
5 <token name="@VERSION_SUFFIX@">1</token>
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
6 </macros>
0
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
7 <requirements>
1
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">fermikit</requirement>
0
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
9 <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
10 </requirements>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
11 <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
12 #import re
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
13 #set escaped_element_identifier = re.sub('[^\w\-\s]', '_', str($bam.element_identifier))
1
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
14
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
15 #if $reference_genome.reference_genome_source == "reference"
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
16 #set ref=$reference_genome.fasta_item.fields.path
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
17 #else
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
18 ln -s '$reference_genome.history_item' reference.fa &&
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
19 #set ref="reference.fa"
ed056d243455 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit ab4afb50e6c991cc2e784a93a0c7a75329eac88c
iuc
parents: 0
diff changeset
20 #end if
0
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
21 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
22 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
23 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
24 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
25 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
26 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
27 ]]></command>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
28 <inputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
29 <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
30 <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
31 <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
32 <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
33 <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
34 </param>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
35 <when value="history">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
36 <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
37 </when>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
38 <when value="reference">
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
39 <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
40 <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
41 <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
42 </options>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
43 </param>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
44 </when>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
45 </conditional>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
46 </inputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
47 <outputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
48 <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
49 <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
50 </outputs>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
51 <tests>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
52 <test>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
53 <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
54 <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
55 <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
56 <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
57 <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
58 </test>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
59 </tests>
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
60 <help><![CDATA[
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
61
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
62 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
63 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
64 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
65 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
66
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
67 ]]></help> <citations> <citation
44519e762f16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fermikit commit 16dcfc0fb84fad80fcf18417ae46c5499c96147a
iuc
parents:
diff changeset
68 type="doi">10.1093/bioinformatics/btv440</citation> </citations> </tool>