Mercurial > repos > iuc > cnvkit_export_bed
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bed.xml Mon Jan 20 16:28:47 2025 +0000 @@ -0,0 +1,60 @@ +<tool id="cnvkit_export_bed" name="CNVkit Export BED" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> + <description>Converts the Segmented copy ratio data file (*.cns) file into BED file</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="xrefs"/> + <expand macro="creators"/> + <expand macro="requirements"/> + <command detect_errors="exit_code"><![CDATA[ + ln -s '$input_segmented_file' ./sample.cns && + cnvkit.py export bed + ./sample.cns + $advanced_settings.label_genes + #if $advanced_settings.sample_id + --sample-id '$advanced_settings.sample_id' + #end if + #if $advanced_settings.ploidy + --ploidy $advanced_settings.ploidy + #end if + #if str($advanced_settings.sample_sex) and $advanced_settings.sample_sex != "" + --sample-sex '$advanced_settings.sample_sex' + #end if + $advanced_settings.male_reference + --output sample.cnv.bed + #if $advanced_settings.diploid_parx_genome + --diploid-parx-genome '$advanced_settings.diploid_parx_genome' + #end if + ]]></command> + <inputs> + <param name="input_segmented_file" type="data" format="tabular" label="Segmented Copy Ratio Data File (cns file)" help="" /> + <section name="advanced_settings" title="Advanced settings" expanded="false"> + <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" /> + <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" /> + <param argument="--ploidy" optional="true" type="integer" label="Ploidy" min="1" value="2" help="Ploidy of the sample cells. [Default: 2]" /> + <expand macro="sample_sex"/> + <param argument="--male-reference" type="boolean" checked="false" truevalue="--male-reference" falsevalue="" label="Male Reference" help="Assume inputs were normalized to a male reference" /> + <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'" /> + </section> + </inputs> + <outputs> + <data name="CNVs_BED" format="bed" label="${tool.name} on ${on_string}: CNVs BED file" from_work_dir="sample.cnv.bed" /> + </outputs> + <tests> + <test expect_num_outputs="1"> + <param name="input_segmented_file" ftype="tabular" value="sample.cns" /> + <param name="sample_id" value="SampleID" /> + <param name="sample_sex" value="Female" /> + <output name="CNVs_BED" file="sample.cnv.bed" /> + </test> + </tests> + <help><![CDATA[ + Export the segmented copy number data (from a .cns file) to BED format. + The resulting BED file describes copy number gains and losses across each segment. + ]]></help> + <expand macro="citations" /> +</tool> + + + +
