annotate bed.xml @ 0:b14f1b2f6196 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
author iuc
date Mon, 20 Jan 2025 16:28:47 +0000
parents
children dad30a23fcd6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b14f1b2f6196 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">
b14f1b2f6196 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>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
3 <macros>
b14f1b2f6196 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>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
5 </macros>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
6 <expand macro="xrefs"/>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
7 <expand macro="creators"/>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
8 <expand macro="requirements"/>
b14f1b2f6196 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[
b14f1b2f6196 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 &&
b14f1b2f6196 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
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
12 ./sample.cns
b14f1b2f6196 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
b14f1b2f6196 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
b14f1b2f6196 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'
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
16 #end if
b14f1b2f6196 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
b14f1b2f6196 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
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
19 #end if
b14f1b2f6196 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 != ""
b14f1b2f6196 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'
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
22 #end if
b14f1b2f6196 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
b14f1b2f6196 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
b14f1b2f6196 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
b14f1b2f6196 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'
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
27 #end if
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
28 ]]></command>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
29 <inputs>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
30 <param name="input_segmented_file" type="data" format="tabular" label="Segmented Copy Ratio Data File (cns file)" help="" />
b14f1b2f6196 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">
b14f1b2f6196 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" />
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
33 <param argument="--sample-id" optional="true" type="text" label="Sample ID" value="" help="Sample name to write in the genotype field of the output VCF file" />
b14f1b2f6196 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]" />
b14f1b2f6196 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"/>
b14f1b2f6196 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" />
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
37 <param argument="--diploid-parx-genome" optional="true" type="text" label="Diploid Parx Genome" value="" help="Considers the given human genome's PAR of chromosome X as autosomal. Example: 'grch38'" />
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
38 </section>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
39 </inputs>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
40 <outputs>
b14f1b2f6196 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" />
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
42 </outputs>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
43 <tests>
b14f1b2f6196 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">
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
45 <param name="input_segmented_file" ftype="tabular" value="sample.cns" />
b14f1b2f6196 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" />
b14f1b2f6196 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" />
b14f1b2f6196 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" />
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
49 </test>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
50 </tests>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
51 <help><![CDATA[
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
52 Export the segmented copy number data (from a .cns file) to BED format.
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
53 The resulting BED file describes copy number gains and losses across each segment.
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
54 ]]></help>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
55 <expand macro="citations" />
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
56 </tool>
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
57
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
58
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
59
b14f1b2f6196 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 51995527835d18a4a3a498b140382ce433f19a71
iuc
parents:
diff changeset
60