annotate hap.py.xml @ 2:9c358e648d74 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
author iuc
date Fri, 24 Oct 2025 13:26:46 +0000
parents 37c4cd0fdfc5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
1 <tool id="som.py" name="som.py and hap.py" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
2 <description>Comparison of somatic callsets based only on chromosome, position, and allele identity</description>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
3 <macros>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
4 <token name="@TOOL_VERSION@">0.3.15</token>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
5 <token name="@PROFILE@">24.1</token>
0
37c4cd0fdfc5 "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>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
7 </macros>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
8 <xrefs>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
9 <xref type="bio.tools">hap.py</xref>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
10 </xrefs>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
11 <requirements>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
12 <requirement type="package" version="@TOOL_VERSION@">hap.py</requirement>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
13 </requirements>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
14 <version_command>som.py -h</version_command>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
15 <command detect_errors="exit_code"><![CDATA[
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
16 #if $reference_genome.source == 'history':
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
17 #set $ref_genome = 'reference.fasta'
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
18 ln -s -f '${reference_genome.history_item}' $ref_genome;
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
19 samtools faidx $ref_genome;
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
20 #else:
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
21 #set $ref_genome = $reference_genome.index.fields.path
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
22 #end if
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
23 export HGREF='$ref_genome' &&
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
24 #if $program_select == 'som.py':
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
25 som.py
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
26 #else:
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
27 hap.py
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
28 #end if
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
29 '$truth'
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
30 '$query'
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
31 -r '$ref_genome'
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
32 -o output
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
33 | sed 's/\s\+/\t/g' | tail -n+2 > results.tsv
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
34 ]]>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
35 </command>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
36 <inputs>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
37 <param name="program_select" type="select" label="Comparison method" help="Select the comparison method to use.">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
38 <option value="som.py">som.py: Genotype-level comparison</option>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
39 <option value="hap.py">hap.py: Allele-based comparison (chromosome, position, allele)</option>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
40 </param>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
41 <conditional name="reference_genome">
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
42 <param name="source" type="select" label="Source for the reference genome" help="Built-in references were created using default options.">
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
43 <option value="indexed" selected="true">Use a built-in genome</option>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
44 <option value="history">Use a genome from history</option>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
45 </param>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
46 <when value="indexed">
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
47 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Galaxy team.">
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
48 <options from_data_table="fasta_indexes">
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
49 <filter type="sort_by" column="2"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
50 <validator type="no_options" message="No genomes are available for the selected input dataset"/>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
51 </options>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
52 </param>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
53 </when>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
54 <when value="history">
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
55 <param name="history_item" type="data" format="fasta" label="Reference genome" help="A reference genome in FASTA format"/>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
56 </when>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
57 </conditional>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
58 <param name="truth" type="data" format="vcf" label="ground truth variant calls"/>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
59 <param name="query" type="data" format="vcf" label="query variant calls"/>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
60 </inputs>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
61 <outputs>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
62 <data name="results" label="${tool.name} on ${on_string}" format="tabular" from_work_dir="results.tsv"/>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
63 <data name="sompy_metrics" label="${tool.name} on ${on_string}: som.py metrics" format="json" from_work_dir="output.metrics.json">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
64 <filter>'som.py' in program_select </filter>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
65 </data>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
66 <data name="happy_metrics" label="${tool.name} on ${on_string}: hap.py metrics" format="json" from_work_dir="output.metrics.json.gz">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
67 <filter>'hap.py' in program_select </filter>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
68 </data>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
69 <data name="stats" label="${tool.name} on ${on_string}: som.py comparison stats" format="csv" from_work_dir="output.stats.csv">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
70 <filter>'som.py' in program_select </filter>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
71 </data>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
72 <data name="summary" label="${tool.name} on ${on_string}: hap.py summary" format="csv" from_work_dir="output.summary.csv">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
73 <filter>'hap.py' in program_select </filter>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
74 </data>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
75 </outputs>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
76 <tests>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
77 <!-- Testing som.py -->
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
78 <test expect_num_outputs="3">
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
79 <param name="program_select" value="som.py"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
80 <conditional name="reference_genome">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
81 <param name="source" value="history"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
82 <param name="history_item" value="chr21.fa"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
83 </conditional>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
84 <param name="truth" value="small_NA12878-Freebayes-chr21.vcf"/>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
85 <param name="query" value="small_NA12878-GATK3-chr21.vcf"/>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
86 <output name="results">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
87 <assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
88 <has_text text="records"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
89 <has_n_lines n="4"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
90 </assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
91 </output>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
92 <output name="stats">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
93 <assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
94 <has_line_matching expression="^0,indels,1,1,0,1.*"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
95 <has_text text="som.py-"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
96 </assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
97 </output>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
98 <output name="sompy_metrics">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
99 <assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
100 <has_json_property_with_text property="name" text="som.py.comparison"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
101 <has_text text="som.py.comparison"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
102 </assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
103 </output>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
104 </test>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
105 <!-- Testing hap.py -->
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
106 <test expect_num_outputs="3">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
107 <param name="program_select" value="hap.py"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
108 <conditional name="reference_genome">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
109 <param name="source" value="history"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
110 <param name="history_item" value="reference.fasta"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
111 </conditional>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
112 <param name="truth" value="hap_py_truth.vcf.gz"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
113 <param name="query" value="hap_py_query.vcf.gz"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
114 <output name="results">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
115 <assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
116 <has_n_lines n="6"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
117 </assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
118 </output>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
119 <output name="summary">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
120 <assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
121 <has_n_lines n="5"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
122 <has_text text="SNP,PASS,5,4,1,6,2,0,0,0,0.8,0.666667,0.0,0.727273,0.25,0.5,0.0,0.0"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
123 </assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
124 </output>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
125 <output name="happy_metrics" decompress="true">
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
126 <assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
127 <has_json_property_with_text property="name" text="hap.py.comparison"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
128 <has_text text="hap.py.comparison"/>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
129 </assert_contents>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
130 </output>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
131 </test>
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
132 </tests>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
133 <help format="markdown"><![CDATA[
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
134
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
135 ## What this tool does
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
136 **hap.py** compares variant callsets (VCFs) against a reference “truth” set to evaluate variant calling accuracy. It performs haplotype-aware comparisons, matching variants by local sequence context rather than simple record alignment. This enables accurate benchmarking even when complex or multi-nucleotide variants are represented differently.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
137 ---
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
138
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
139 ## Inputs
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
140 - **Truth VCF:** High-confidence reference variants.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
141 - **Query VCF:** Variants to evaluate.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
142 - **Reference FASTA:** Genome reference used for both callsets.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
143 ---
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
144
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
145 ## Outputs
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
146 - **Summary CSV / JSON:** Precision, recall, and F1 metrics.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
147 - **ROC and stratified metrics:** Optional, for detailed performance breakdowns.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
148 - **Annotated VCFs:** Optional lists of matched and unmatched variants.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
149 ---
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
150
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
151 ## Notes
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
152 - Use **hap.py** for haplotype-level benchmarking.
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
153 - Use **som.py** for simpler allele-based comparisons (chromosome, position, allele).
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
154 ]]></help>
2
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
155 <citations>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
156 <citation type="bibtex">@misc{illumina_happy,
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
157 title = {hap.py},
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
158 author = {{Illumina}},
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
159 year = {2021},
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
160 howpublished = {\url{https://github.com/Illumina/hap.py}},
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
161 note = {Accessed: 2025-10-19}
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
162 }</citation>
9c358e648d74 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/happy commit 4abfaf634dcfed1dfce1bcf199c12acc33982ba4
iuc
parents: 0
diff changeset
163 </citations>
0
37c4cd0fdfc5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/happy commit 9ae0037c379b589aa8e0f825820bb4a7c969cdb2"
iuc
parents:
diff changeset
164 </tool>