Mercurial > repos > iuc > beacon2_vcf2bff
comparison vcf2bff.xml @ 0:7b17ad8f9fc8 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
| author | iuc |
|---|---|
| date | Sun, 01 Oct 2023 16:29:00 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:7b17ad8f9fc8 |
|---|---|
| 1 <tool id="beacon2_vcf2bff" name="Beacon2 VCF2BFF" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> | |
| 2 <description>converting annotated VCF files to Beacon v2 format</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="xrefs"/> | |
| 7 <expand macro="requirements"/> | |
| 8 <expand macro="creators"/> | |
| 9 <command detect_errors="exit_code"><![CDATA[ | |
| 10 ln -s '$input' ./sample.vcf.gz && | |
| 11 vcf2bff.pl | |
| 12 --input ./sample.vcf.gz | |
| 13 --format '$format' | |
| 14 --project-dir ./ | |
| 15 --dataset-id '$dataset_id' | |
| 16 --genome '$genome' | |
| 17 && gunzip ./genomicVariationsVcf.json.gz | |
| 18 ]]></command> | |
| 19 <inputs> | |
| 20 <param argument="--input" type="data" format="tabular.gz" label="Annotated vcf file" help="The output genomic variations VCF file of bcftools, snpeff, snpsift" /> | |
| 21 <param argument="--format" type="select" label="Output format" help=""> | |
| 22 <option value="bff" selected="True">BFF</option> | |
| 23 <option value="hash">hash</option> | |
| 24 <option value="json">json</option> | |
| 25 </param> | |
| 26 <param argument="--dataset-id" type="text" label="Dataset ID" value="" help="Give an ID for the created genomicVariations dataset" /> | |
| 27 <param argument="--genome" type="text" label="Reference genome" value="" help="Select the reference genome used the annotate the data to create the genomicVariations dataset examples for reference genomes are hs37, hg37 and hg38" /> | |
| 28 </inputs> | |
| 29 <outputs> | |
| 30 <data name="genomicVariationsVcf" format="json" label="${tool.name} on ${on_string}: genomicVariationsVcf file" from_work_dir="genomicVariationsVcf.json" /> | |
| 31 </outputs> | |
| 32 <tests> | |
| 33 <test expect_num_outputs="1"> | |
| 34 <param name="input" ftype="tabular.gz" value="test.vcf.gz" /> | |
| 35 <param name="format" value="bff"/> | |
| 36 <param name="dataset_id" value="beacon"/> | |
| 37 <param name="genome" value="hg19"/> | |
| 38 <output name="genomicVariationsVcf" file="genomicVariationsVcf.json" ftype="json" compare="sim_size"> | |
| 39 <assert_contents><has_size value="730000" delta="90000" /></assert_contents> | |
| 40 </output> | |
| 41 </test> | |
| 42 </tests> | |
| 43 <help><![CDATA[ | |
| 44 The tool Creates genomicVariations file from annotated genomic variations VCF file. The VCF file is annotated by using the | |
| 45 workflow of those tools bcftools -> snpeff -> snpsift. | |
| 46 The tool converts the annotated VCF file into genomicVariations entry type and serializes it as a JSON file also called Beacon Friendly Format (BFF). | |
| 47 The generated file will be ready to be stored on the MongoDB instance as MongoDB works directly with JSON files. | |
| 48 ]]></help> | |
| 49 <expand macro="citations" /> | |
| 50 </tool> |
