annotate hap.py.xml @ 0:5095e751304c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
author iuc
date Tue, 25 Jan 2022 11:02:23 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
1 <tool id="som.py" name="som.py" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
2 <description>A tool to perform comparisons only based on chromosome, position, and allele identity for comparison of somatic callsets.</description>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
3
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
4 <macros>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
5 <token name="@TOOL_VERSION@">0.3.14</token>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
6 <token name="@VERSION_SUFFIX@">0</token>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
7 </macros>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
8
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
9 <requirements>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
10 <requirement type="package" version="@TOOL_VERSION@">hap.py</requirement>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
11 </requirements>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
12
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
13 <command detect_errors="exit_code"><![CDATA[
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
14
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
15 #if $reference_genome.source == 'history':
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
16 #set $ref_genome = 'reference.fasta'
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
17 ln -s -f '${reference_genome.history_item}' $ref_genome;
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
18 samtools faidx $ref_genome;
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
19 #else:
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
20 #set $ref_genome = $reference_genome.index.fields.path
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
21 #end if
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
22 export HGREF='$ref_genome' &&
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
23 som.py
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
24 '$truth'
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
25 '$query'
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
26 -r '$ref_genome'
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
27 -o 'happy' | sed 's/\s\+/\t/g' | tail -n+2> results.tsv
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
28 ]]>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
29 </command>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
30
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
31 <inputs>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
32 <conditional name="reference_genome">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
33 <param name="source" type="select" label="Source for the reference genome" help="Built-in references were created using default options.">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
34 <option value="indexed" selected="true">Use a built-in genome</option>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
35 <option value="history">Use a genome from history</option>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
36 </param>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
37 <when value="indexed">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
38 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Galaxy team.">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
39 <options from_data_table="fasta_indexes">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
40 <filter type="sort_by" column="2" />
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
41 <validator type="no_options" message="No genomes are available for the selected input dataset" />
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
42 </options>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
43 </param>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
44 </when>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
45 <when value="history">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
46 <param name="history_item" type="data" format="fasta" label="Reference genome" help="A reference genome in FASTA format" />
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
47 </when>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
48 </conditional>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
49 <param name="truth" type="data" format="vcf" label="ground truth variant calls"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
50 <param name="query" type="data" format="vcf" label="query variant calls"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
51 </inputs>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
52
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
53 <outputs>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
54 <data name="results" label="${tool.name} on ${on_string}" format="tabular" from_work_dir="results.tsv"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
55 <data name="stats" label="${tool.name} on ${on_string}: stats" format="csv" from_work_dir="happy.stats.csv" />
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
56 <data name="metrics" label="${tool.name} on ${on_string}: metrics" format="json" from_work_dir="happy.metrics.json"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
57 </outputs>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
58
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
59 <tests>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
60 <test expect_num_outputs="3">
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
61 <param name="source" value="history"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
62 <param name="history_item" value="chr21.fa"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
63 <param name="truth" value="small_NA12878-Freebayes-chr21.vcf"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
64 <param name="query" value="small_NA12878-GATK3-chr21.vcf"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
65
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
66 <output name="results" file="results.tsv"/>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
67 <output name="stats" file="happy.stats.csv" compare="sim_size" delta_frac="0.3" />
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
68 <output name="metrics" file="happy.metrics.json" compare="sim_size" delta_frac="0.3" />
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
69 </test>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
70 </tests>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
71
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
72 <help><![CDATA[
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
73 som.py is a tool to perform comparisons only based on chromosome, position, and allele identity. This comparison will not resolve haplotypes and only verify that the same alleles were observed at the same positions (e.g. for comparison of somatic callsets).
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
74 ]]></help>
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
75
5095e751304c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
76 </tool>