annotate bed.xml @ 1:944f92089b9a draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
author iuc
date Sat, 01 Mar 2025 11:58:38 +0000
parents 9aeac47c89d1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
1 <tool id="cnvkit_export_bed" name="CNVkit Export BED" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
2 <description>Converts the Segmented copy ratio data file (*.cns) file into BED file</description>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
3 <macros>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
4 <import>macros.xml</import>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
5 </macros>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
6 <expand macro="xrefs"/>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
7 <expand macro="creators"/>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
8 <expand macro="requirements"/>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
10 ln -s '$input_segmented_file' ./sample.cns &&
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
11 cnvkit.py export bed
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
12 ./sample.cns
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
13 $advanced_settings.label_genes
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
14 #if $advanced_settings.sample_id
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
15 --sample-id '$advanced_settings.sample_id'
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
16 #end if
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
17 #if $advanced_settings.ploidy
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
18 --ploidy $advanced_settings.ploidy
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
19 #end if
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
20 #if str($advanced_settings.sample_sex) and $advanced_settings.sample_sex != ""
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
21 --sample-sex '$advanced_settings.sample_sex'
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
22 #end if
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
23 $advanced_settings.male_reference
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
24 --output sample.cnv.bed
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
25 #if $advanced_settings.diploid_parx_genome
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
26 --diploid-parx-genome '$advanced_settings.diploid_parx_genome'
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
27 #end if
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
28 ]]></command>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
29 <inputs>
1
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
30 <param name="input_segmented_file" type="data" format="cns" label="Segmented Copy Ratio Data File (cns file)" help="" />
0
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
31 <section name="advanced_settings" title="Advanced settings" expanded="false">
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
32 <param argument="--label-genes" type="boolean" checked="false" truevalue="--label-genes" falsevalue="" label="Label Genes" help="Show gene names in the 4th column of the BED file" />
1
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
33 <param argument="--sample-id" type="text" label="Sample ID" help="Sample name to write in the genotype field of the output VCF file" />
0
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
34 <param argument="--ploidy" optional="true" type="integer" label="Ploidy" min="1" value="2" help="Ploidy of the sample cells. [Default: 2]" />
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
35 <expand macro="sample_sex"/>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
36 <param argument="--male-reference" type="boolean" checked="false" truevalue="--male-reference" falsevalue="" label="Male Reference" help="Assume inputs were normalized to a male reference" />
1
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
37 <param argument="--diploid-parx-genome" type="text" label="Diploid Parx Genome" help="Considers the given human genome's PAR of chromosome X as autosomal. Example: 'grch38'" />
0
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
38 </section>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
39 </inputs>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
40 <outputs>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
41 <data name="CNVs_BED" format="bed" label="${tool.name} on ${on_string}: CNVs BED file" from_work_dir="sample.cnv.bed" />
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
42 </outputs>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
43 <tests>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
44 <test expect_num_outputs="1">
1
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
45 <param name="input_segmented_file" ftype="cns" value="sample.cns" />
0
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
46 <param name="sample_id" value="SampleID" />
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
47 <param name="sample_sex" value="Female" />
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
48 <output name="CNVs_BED" file="sample.cnv.bed" />
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
49 </test>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
50 </tests>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
51 <help><![CDATA[
1
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
52
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
53 Export the segmented copy number data (from a .cns file) to BED format.
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
54 The resulting BED file describes copy number gains and losses across each segment.
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
55 -----
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
56
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
57 **Segmented log2 ratios (.cns)**
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
58
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
59 Tabular file with smoothed, merged segments of stable copy number, derived from the .cnr file. Represents final CNV calls.
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
60
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
61 .. csv-table::
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
62 :header-rows: 0
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
63
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
64 "chromosome","start, end: Genomic coordinates of the segment"
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
65 "gene","Gene(s) overlapping the segment."
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
66 "log2","Mean log2 ratio of the segment."
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
67 "probes","Mean log2 ratio of the segment."
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
68 "depth","Average read depth."
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
69 "weight","Reliability weight."
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
70 "p_value","Statistical confidence (lower = more significant)."
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
71
944f92089b9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit fc1282ec68b346988203ead860e9b9d6a47e9efb
iuc
parents: 0
diff changeset
72
0
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
73 ]]></help>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
74 <expand macro="citations" />
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
75 </tool>
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
76
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
77
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
78
9aeac47c89d1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
79