Mercurial > repos > anton > vcfcheck
comparison vcfcheck.xml @ 0:158ae441d7a2 draft
Uploaded
| author | anton |
|---|---|
| date | Tue, 20 May 2014 15:51:02 -0400 |
| parents | |
| children | dfe0b3d70972 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:158ae441d7a2 |
|---|---|
| 1 <tool id="vcfcheck" name="VCFcheck:" version="0.0.1"> | |
| 2 <requirements> | |
| 3 <requirement type="package" version="586c5ae5d57a38dae6b32ea831fb1f7cfa14c9bd">vcflib</requirement> | |
| 4 <!-- <requirement type="package" version="0.1.18">samtools</requirement> --> | |
| 5 </requirements> | |
| 6 <description>Verify that the reference allele matches the reference genome</description> | |
| 7 <command> | |
| 8 #set $reference_fasta_filename = "localref.fa" | |
| 9 #if str( $reference_source.reference_source_selector ) == "history": | |
| 10 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" && | |
| 11 #else: | |
| 12 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path ) | |
| 13 #end if | |
| 14 vcfcheck $failure_selector -f "${reference_fasta_filename}" "${input_vcf}" > "${out_file1}"</command> | |
| 15 <inputs> | |
| 16 <conditional name="reference_source"> | |
| 17 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome"> | |
| 18 <option value="cached">Locally cached</option> | |
| 19 <option value="history">History</option> | |
| 20 </param> | |
| 21 <when value="cached"> | |
| 22 <param name="ref_file" type="select" label="Select reference genome"> | |
| 23 <options from_data_table="fasta_indexes"> | |
| 24 <!--<filter type="data_meta" key="dbkey" ref="input_bam" column="value"/>--> | |
| 25 </options> | |
| 26 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> | |
| 27 </param> | |
| 28 <param name="input_vcf" type="data" format="vcf" label="VCF dataset to check"> | |
| 29 <!-- Validators are commented to allow users apply too to any build. May need to be revised in the future | |
| 30 <validator type="unspecified_build" /> | |
| 31 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." /> | |
| 32 --> | |
| 33 </param> | |
| 34 </when> | |
| 35 <when value="history"> <!-- FIX ME!!!! --> | |
| 36 <param name="ref_file" type="data" format="fasta" label="Using reference file" /> | |
| 37 <param name="input_vcf" type="data" format="vcf" label="VCF dataset to check" /> | |
| 38 </when> | |
| 39 </conditional> | |
| 40 <param name="failure_selector" type="select" display="radio" label="Exclude or include failed sites"> | |
| 41 <option value="-x">Exculde failures (-x option)</option> | |
| 42 <option value="-k">Keep failures (-k option)</option> | |
| 43 </param> | |
| 44 </inputs> | |
| 45 <outputs> | |
| 46 <data format="vcf" name="out_file1" /> | |
| 47 </outputs> | |
| 48 <stdio> | |
| 49 <regex match="index file" source="stderr" level="warning"/> | |
| 50 </stdio> | |
| 51 <tests> | |
| 52 <test> | |
| 53 <param name="reference_source_selector" value="history" /> | |
| 54 <param name="failure_selection" value="-x" /> | |
| 55 <param name="input_vcf" value="vcflib-chr20-X.vcf"/> | |
| 56 <param name="ref_file" value="vcflib-human-reference-chr20-XY.fa" /> | |
| 57 <output name="out_file1" file="vcfcheck-test1.vcf"/> | |
| 58 </test> | |
| 59 </tests> | |
| 60 <help> | |
| 61 | |
| 62 Verifies that the VCF REF field matches the reference as described. | |
| 63 | |
| 64 Options:: | |
| 65 | |
| 66 -x, --exclude-failures If a record fails, don't print it. Otherwise do. | |
| 67 -k, --keep-failures Print if the record fails, otherwise not. | |
| 68 | |
| 69 ---- | |
| 70 | |
| 71 Vcfcheck is a part of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib). | |
| 72 | |
| 73 </help> | |
| 74 </tool> |
