annotate facets_analysis.xml @ 6:625038b7d764 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
author artbio
date Mon, 06 Oct 2025 15:50:12 +0000
parents 1d56a6b5739f
children 86bcdc94b008
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
1 <tool id="facets_analysis" name="FACETS Analysis" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
2 <description>Performs allele-specific copy number analysis from a pileup file</description>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
3 <macros>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
4 <import>macros.xml</import>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
5 </macros>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
6 <expand macro="requirements"/>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
7 <expand macro="stdio"/>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
9 Rscript '${__tool_directory__}/facets_analysis.R'
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
10 --pileup '$pileup'
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
11 --sample_id '$pileup.name'
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
12 --output_seg '$output_seg'
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
13 --output_summary '$output_summary'
3
d1914f4d9daf planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 64ac36125f04497dd51028f307e059fca9ec0503
artbio
parents: 2
diff changeset
14 --output_spider '$output_spider'
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
15 --output_plots '$output_plots'
4
3f62267c4be7 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit e47e0ed100904318ef4aae661b763e049c358edf
artbio
parents: 3
diff changeset
16 --output_vcf '$output_vcf'
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
17 --cval $cval
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
18 --min_nhet $min_nhet
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
19 --snp_nbhd $snp_nbhd
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
20 --gbuild '$gbuild'
6
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
21 #if $merging.merge_select == "yes":
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
22 --enable_merging
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
23 --merge_gap_abs $merging.max_gap_abs
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
24 --merge_gap_rel $merging.max_gap_rel
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
25 #end if
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
26 ]]></command>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
27 <inputs>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
28 <param name="pileup" type="data" format="tabular.gz" label="FACETS Pileup File" help="Output from the 'SNP Pileup for FACETS' tool."/>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
29
4
3f62267c4be7 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit e47e0ed100904318ef4aae661b763e049c358edf
artbio
parents: 3
diff changeset
30 <param name="cval" type="float" value="150" label="Critical value for segmentation (cval)"
3f62267c4be7 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit e47e0ed100904318ef4aae661b763e049c358edf
artbio
parents: 3
diff changeset
31 help="Higher values lead to fewer segments (less sensitive). Lower values are more sensitive. For dense data (e.g., from WGS), higher values like 400-800 are recommended."/>
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
32 <param name="min_nhet" type="integer" value="25" label="Minimum number of heterozygous SNPs per segment" help="Ensures that segments are supported by sufficient allelic information."/>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
33
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
34 <param name="gbuild" type="select" label="Genome Build">
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
35 <option value="hg38" selected="true">Human (hg38)</option>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
36 <option value="hg19">Human (hg19)</option>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
37 <option value="hg18">Human (hg18)</option>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
38 <option value="mm10">Mouse (mm10)</option>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
39 <option value="mm9">Mouse (mm9)</option>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
40 </param>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
41 <param name="snp_nbhd" type="integer" value="300" label="SNP neighborhood size (snp.nbhd)" help="Should match the --pseudo-snps distance used to generate the pileup file. Default is 300."/>
6
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
42 <conditional name="merging">
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
43 <param name="merge_select" type="select" label="Post-process VCF to merge adjacent segments?" help="Optional step to merge adjacent CNV calls that likely represent a single biological event.">
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
44 <option value="no" selected="true">No</option>
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
45 <option value="yes">Yes</option>
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
46 </param>
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
47 <when value="no"/>
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
48 <when value="yes">
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
49 <param name="max_gap_abs" type="integer" value="1000000" label="Absolute maximum gap to merge (bp)" help="Maximum distance in base pairs allowed between two segments to consider them for merging."/>
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
50 <param name="max_gap_rel" type="float" value="0.5" label="Relative maximum gap to merge (fraction)" help="Maximum relative distance, as a fraction of the average size of the two segments."/>
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
51 </when>
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
52 </conditional>
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
53 </inputs>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
54 <outputs>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
55 <data name="output_seg" format="tsv" label="FACETS Segmentation on ${on_string}"/>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
56 <data name="output_summary" format="tabular" label="FACETS Summary on ${on_string}"/>
3
d1914f4d9daf planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 64ac36125f04497dd51028f307e059fca9ec0503
artbio
parents: 2
diff changeset
57 <data name="output_plots" format="png" label="FACETS Plots on ${on_string}"/>
d1914f4d9daf planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 64ac36125f04497dd51028f307e059fca9ec0503
artbio
parents: 2
diff changeset
58 <data name="output_spider" format="png" label="FACETS Spider Plot on ${on_string}"/>
4
3f62267c4be7 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit e47e0ed100904318ef4aae661b763e049c358edf
artbio
parents: 3
diff changeset
59 <data name="output_vcf" format="vcf" label="FACETS CNV calls (VCF) on ${on_string}"/>
3
d1914f4d9daf planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 64ac36125f04497dd51028f307e059fca9ec0503
artbio
parents: 2
diff changeset
60
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
61 </outputs>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
62 <tests>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
63 <test>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
64 <param name="pileup" value="Pileup.input_test_facets.csv.gz" ftype="tabular.gz"/>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
65 <output name="output_seg" file="test_sample_01.seg.tsv" ftype="tsv"/>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
66 <output name="output_summary" file="test_sample_01.summary.txt" ftype="tabular"/>
3
d1914f4d9daf planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 64ac36125f04497dd51028f307e059fca9ec0503
artbio
parents: 2
diff changeset
67 <output name="output_plots" file="test_sample_01.plots.png" ftype="png" compare="sim_size" delta="20000"/>
d1914f4d9daf planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 64ac36125f04497dd51028f307e059fca9ec0503
artbio
parents: 2
diff changeset
68 <output name="output_spider" file="test_sample_01.spider.png" ftype="png" compare="sim_size" delta="10000"/>
5
1d56a6b5739f planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 7d1b40132efd24ac3c8a4b80cc5ca063636a2a38
artbio
parents: 4
diff changeset
69 <output name="output_vcf" file="test_sample_01.cnv.vcf" ftype="vcf" lines_diff="2" />
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
70 </test>
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
71 </tests>
6
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
72 <help><![CDATA[
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
73 **What it does**
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
74
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
75 This tool runs the `FACETS` R package to perform allele-specific copy number
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
76 and clonal heterogeneity analysis. It takes the compressed pileup file
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
77 generated by the "SNP Pileup for FACETS" tool as its primary input and
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
78 produces a set of standard FACETS outputs, including segmentation calls,
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
79 purity/ploidy estimates, plots, and a VCF file summarizing the CNV events.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
80
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
81 ---
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
82
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
83 **Primary Parameters**
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
84
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
85 These parameters control the core of the FACETS segmentation algorithm.
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
86
6
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
87 - **Critical value for segmentation (cval):** This is the most important
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
88 parameter for controlling the sensitivity of the segmentation. A *higher*
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
89 value (e.g., 200-800) will result in fewer segments and is generally
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
90 recommended for high-density data like Whole Genome Sequencing (WGS).
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
91 A *lower* value (e.g., 50-150) increases sensitivity, resulting in more
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
92 segments, and is more suitable for sparser data like Whole Exome
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
93 Sequencing (WES).
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
94
6
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
95 - **Minimum number of heterozygous SNPs (min.nhet):** This is a quality
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
96 filter. After segmentation, any segment that is supported by fewer
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
97 heterozygous SNPs than this threshold will be discarded. This helps
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
98 to remove unreliable, small segments.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
99
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
100 - **SNP neighbourhood size (snp.nbhd):** This parameter defines the genomic
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
101 window (in bp) around a SNP used for local read depth normalization.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
102 The default value is generally appropriate.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
103
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
104 ---
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
105
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
106 **Advanced VCF Post-processing: Merging Segments**
4
3f62267c4be7 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit e47e0ed100904318ef4aae661b763e049c358edf
artbio
parents: 3
diff changeset
107
6
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
108 You can optionally enable a post-processing step to merge adjacent CNV
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
109 segments in the output VCF.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
110
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
111 *Why is this useful?*
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
112 Segmentation algorithms can sometimes split a single, large biological event
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
113 (e.g., a 10 Mb deletion) into several smaller, adjacent segments with the
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
114 same copy number state. This feature attempts to correct this by merging
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
115 these segments back together, providing a cleaner and more biologically
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
116 accurate representation of the CNV landscape.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
117
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
118 The merging is controlled by an algorithm using two thresholds:
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
119
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
120 - **Absolute maximum gap:** The maximum distance in base pairs allowed
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
121 between two segments to even consider them for merging. This acts as a
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
122 safeguard.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
123 - **Relative maximum gap:** The maximum distance allowed, expressed as a
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
124 *fraction* of the average size of the two segments. This allows large
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
125 gaps between large segments, but not between small ones, trying to mimic
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
126 how a human expert would interpret the data.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
127
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
128 ---
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
129
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
130 **Outputs**
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
131
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
132 - **Segmentation file (TSV):** The raw segment data with genomic coordinates
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
133 and their associated copy number (TCN, LCN).
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
134 - **Summary file:** The main estimated parameters like purity, ploidy, etc.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
135 - **CNV calls file (VCF):** A summary of the detected copy number events in
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
136 a standard VCF format, suitable for downstream analysis.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
137 - **Plots file (PNG):** An enhanced visualization of the genome-wide results.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
138 - **Spider Plot (PNG):** This is the most important **diagnostic plot** for
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
139 assessing the quality of the FACETS fit.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
140 On this plot (generated by the `logRlogORspider` function), each
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
141 **circle** is a genomic segment from your data. The **curves** (labeled
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
142 `2-1`, `1-0`, etc.) represent the theoretical positions for integer copy
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
143 number states given the estimated purity and ploidy. A high-confidence
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
144 result is achieved when your data (the circles) align closely with these
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
145 theoretical curves. For a detailed interpretation, please refer to the
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
146 original FACETS publication: Shen and Seshan, *NAR*, 2016.
625038b7d764 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 8cced47697e5777fd60dacc60300e770bd409e9d
artbio
parents: 5
diff changeset
147 ]]></help>
2
66a56502199d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 0176d2cc4f1caf0ab948ef72efb25ccce735461e
artbio
parents:
diff changeset
148 <expand macro="citations"/>
5
1d56a6b5739f planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/facets commit 7d1b40132efd24ac3c8a4b80cc5ca063636a2a38
artbio
parents: 4
diff changeset
149 </tool>