Mercurial > repos > iuc > bcftools_gtcheck
comparison bcftools_gtcheck.xml @ 2:166520508473 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 5725fea947162618d77de7b8011d18b2f16c7094
| author | iuc |
|---|---|
| date | Sat, 21 Jan 2017 06:52:48 -0500 |
| parents | 92d82005d60a |
| children | 136c33afeacc |
comparison
equal
deleted
inserted
replaced
| 1:d548c5551f01 | 2:166520508473 |
|---|---|
| 1 <?xml version='1.0' encoding='utf-8'?> | 1 <?xml version='1.0' encoding='utf-8'?> |
| 2 <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@VERSION@.0"> | 2 <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@VERSION@.1"> |
| 3 <description>Check sample identity</description> | 3 <description>Check sample identity</description> |
| 4 <macros> | 4 <macros> |
| 5 <token name="@EXECUTABLE@">gtcheck</token> | 5 <token name="@EXECUTABLE@">gtcheck</token> |
| 6 <import>macros.xml</import> | 6 <import>macros.xml</import> |
| 7 </macros> | 7 </macros> |
| 13 #set $section = $sec_restrict | 13 #set $section = $sec_restrict |
| 14 @PREPARE_TARGETS_FILE@ | 14 @PREPARE_TARGETS_FILE@ |
| 15 #set $section = $sec_default | 15 #set $section = $sec_default |
| 16 #set $genotypes_vcf = None | 16 #set $genotypes_vcf = None |
| 17 #if $section.genotypes: | 17 #if $section.genotypes: |
| 18 #if $section.genotypes.datatype.file_ext == 'vcf' | 18 #if $section.genotypes.is_of_type('vcf') |
| 19 #set $genotypes_vcf = 'genotypes.vcf.gz' | 19 #set $genotypes_vcf = 'genotypes.vcf.gz' |
| 20 bgzip -c "$section.genotypes" > $genotypes_vcf && | 20 bgzip -c "$section.genotypes" > $genotypes_vcf && |
| 21 bcftools index $genotypes_vcf && | 21 bcftools index $genotypes_vcf && |
| 22 #elif $section.genotypes.datatype.file_ext == 'bcf' | 22 #elif $section.genotypes.is_of_type('bcf') |
| 23 #set $genotypes_vcf = 'genotypes.bcf' | 23 #set $genotypes_vcf = 'genotypes.bcf' |
| 24 ln -s "$ection.genotypes" $genotypes_vcf && | 24 ln -s "$ection.genotypes" $genotypes_vcf && |
| 25 #if $section.genotypes.metadata.bcf_index: | 25 #if $section.genotypes.metadata.bcf_index: |
| 26 ln -s $section.genotypes.metadata.bcf_index ${genotypes_vcf}.csi && | 26 ln -s $section.genotypes.metadata.bcf_index ${genotypes_vcf}.csi && |
| 27 #else | 27 #else |
| 28 bcftools index $genotypes_vcf && | 28 bcftools index $genotypes_vcf && |
| 29 #end if | 29 #end if |
| 30 #end if | 30 #end if |
| 31 #end if | 31 #end if |
| 32 | 32 |
| 78 <section name="sec_restrict" expanded="false" title="Restrict to"> | 78 <section name="sec_restrict" expanded="false" title="Restrict to"> |
| 79 <expand macro="macro_regions" /> | 79 <expand macro="macro_regions" /> |
| 80 <expand macro="macro_targets" /> | 80 <expand macro="macro_targets" /> |
| 81 </section> | 81 </section> |
| 82 <section name="sec_default" expanded="true" title="Default Options"> | 82 <section name="sec_default" expanded="true" title="Default Options"> |
| 83 <param name="genotypes" type="data" format="vcf,bcf" label="Genotypes to compare against" optional="True" | 83 <param name="genotypes" type="data" format="vcf,bcf" label="Genotypes to compare against" optional="True" |
| 84 help="(-g) Checks sample identity or wehn omitted a multi-sample cross-check is performed"/> | 84 help="(-g) Checks sample identity or wehn omitted a multi-sample cross-check is performed"/> |
| 85 <param name="target_sample" type="text" label="Target Sample" optional="True" help="Target sample in the -g file (used only for plotting)" /> | 85 <param name="target_sample" type="text" label="Target Sample" optional="True" help="Target sample in the -g file (used only for plotting)" /> |
| 86 <param name="GTs_only" type="integer" label="Gts Only" default="99" optional="True" help="Use GTs, ignore PLs, using <int> for unseen genotypes" /> | 86 <param name="GTs_only" type="integer" label="Gts Only" value="99" optional="True" help="Use GTs, ignore PLs, using <int> for unseen genotypes" /> |
| 87 <param name="all_sites" type="boolean" truevalue="--all-sites" falsevalue="" label="All Sites" help="Output comparison for all sites" /> | 87 <param name="all_sites" type="boolean" truevalue="--all-sites" falsevalue="" label="All Sites" help="Output comparison for all sites" /> |
| 88 <param name="homs_only" type="boolean" truevalue="--homs-only" falsevalue="" label="Homs Only" help="Homozygous genotypes only (useful for low coverage data)" /> | 88 <param name="homs_only" type="boolean" truevalue="--homs-only" falsevalue="" label="Homs Only" help="Homozygous genotypes only (useful for low coverage data)" /> |
| 89 <param name="query_sample" type="text" label="Query Sample" optional="True" help="Query sample (by default the first sample is checked)" /> | 89 <param name="query_sample" type="text" label="Query Sample" optional="True" help="Query sample (by default the first sample is checked)" /> |
| 90 <param name="plot" type="text" label="Plot" help="Prefix name for plot" /> | 90 <param name="plot" type="text" label="Plot" help="Prefix name for plot" /> |
| 91 </section> | 91 </section> |
| 94 <data name="output_file" format="tabular" /> | 94 <data name="output_file" format="tabular" /> |
| 95 </outputs> | 95 </outputs> |
| 96 <tests> | 96 <tests> |
| 97 <test> | 97 <test> |
| 98 <param name="input_file" ftype="vcf" value="view.vcf" /> | 98 <param name="input_file" ftype="vcf" value="view.vcf" /> |
| 99 <param name="GTs_only" value="" /> | |
| 99 <output name="output_file"> | 100 <output name="output_file"> |
| 100 <assert_contents> | 101 <assert_contents> |
| 101 <has_text_matching expression="SM\t10328.0+\t80.68\t12\tNA00002\t0"/> | 102 <has_text_matching expression="SM\t10328.0+\t80.68\t12\tNA00002\t0"/> |
| 102 <has_text_matching expression="CN\t1174\t14\t75.57\tNA00002\tNA00001"/> | 103 <has_text_matching expression="CN\t1174\t14\t75.57\tNA00002\tNA00001"/> |
| 103 </assert_contents> | 104 </assert_contents> |
