Mercurial > repos > iuc > gemini_annotate
comparison gemini_annotate.xml @ 5:1f5421e565d8 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 283362494058ed64143b1f27afb447b8a1cb4313
| author | iuc |
|---|---|
| date | Fri, 14 Dec 2018 12:26:26 -0500 |
| parents | 80024600788f |
| children | 0919c78f7be8 |
comparison
equal
deleted
inserted
replaced
| 4:80024600788f | 5:1f5421e565d8 |
|---|---|
| 10 <command> | 10 <command> |
| 11 <![CDATA[ | 11 <![CDATA[ |
| 12 | 12 |
| 13 ## For GEMINI to work correctly, tabixed file must have form [name].[bed|vcf].gz | 13 ## For GEMINI to work correctly, tabixed file must have form [name].[bed|vcf].gz |
| 14 #set $tabixed_file = "tabixed.%s.gz" % $annotate_source.ext | 14 #set $tabixed_file = "tabixed.%s.gz" % $annotate_source.ext |
| 15 bgzip -c "$annotate_source" > $tabixed_file && | 15 bgzip -c '$annotate_source' > '$tabixed_file' && |
| 16 tabix -p "$annotate_source.ext" $tabixed_file && | 16 tabix -p '$annotate_source.ext' '$tabixed_file' && |
| 17 | 17 cp '$infile' '$outfile' && |
| 18 gemini @BINARY@ | 18 |
| 19 -f $tabixed_file | 19 gemini @BINARY@ |
| 20 -c $column_name | 20 -f '$tabixed_file' |
| 21 -a $a.a_selector | 21 -c '$column_name' |
| 22 #if $a.a_selector == 'extract': | 22 -a $a.a_selector |
| 23 -t $a.column_type | 23 #if $a.a_selector == 'extract': |
| 24 -e $a.column_extracts | 24 -t $a.column_type |
| 25 -o $a.operation | 25 -e '$a.column_extracts' |
| 26 #end if | 26 -o $a.operation |
| 27 $region_only | 27 #end if |
| 28 "${ infile }" | 28 $region_only |
| 29 > "${ outfile }" | 29 '$outfile' |
| 30 ]]> | 30 ]]> |
| 31 | 31 |
| 32 </command> | 32 </command> |
| 33 <inputs> | 33 <inputs> |
| 34 <expand macro="infile" /> | 34 <expand macro="infile" /> |
| 35 <param name="annotate_source" type="data" format="vcf,bed" label="File containing the annotations in BED/VCF format" help="(-f)"/> | 35 <param name="annotate_source" type="data" format="vcf,bed" label="File containing the annotations in BED/VCF format" help="(-f)"/> |
| 36 | 36 |
| 37 <param name="column_name" type="text" value="" | 37 <param name="column_name" type="text" value="" |
| 38 label="The name of the column to be added to the variant table" | 38 label="The name of the column to be added to the variant table" |
| 39 help=" If the input file is a VCF, then this is the name of the info field to pull. (-c)"> | 39 help="If the input file is a VCF, then this is the name of the info field to pull. (-c)"> |
| 40 <sanitizer invalid_char=" "> | 40 <sanitizer invalid_char=" "> |
| 41 <valid initial="string.letters,string.digits"> | 41 <valid initial="string.letters,string.digits"> |
| 42 <add value="_" /> | 42 <add value="_" /> |
| 43 </valid> | 43 </valid> |
| 44 </sanitizer> | 44 </sanitizer> |
| 85 label="If set, only region coordinates will be considered when annotating variants." | 85 label="If set, only region coordinates will be considered when annotating variants." |
| 86 help="The default is to annotate using region coordinates as well as REF and ALT | 86 help="The default is to annotate using region coordinates as well as REF and ALT |
| 87 variant values. This option is only valid if annotation is a VCF file"/> | 87 variant values. This option is only valid if annotation is a VCF file"/> |
| 88 </inputs> | 88 </inputs> |
| 89 <outputs> | 89 <outputs> |
| 90 <data name="outfile" format="tabular" /> | 90 <data name="outfile" format="gemini.sqlite" /> |
| 91 </outputs> | 91 </outputs> |
| 92 <tests> | 92 <tests> |
| 93 <test> | 93 <test> |
| 94 <param name="infile" value="gemini_annotate_input.db" ftype="gemini.sqlite" /> | 94 <param name="infile" value="gemini_load_result1.db" ftype="gemini.sqlite" /> |
| 95 <param name="annotate_source" value="anno.bed" /> | 95 <param name="annotate_source" value="anno.bed" /> |
| 96 <param name="a_selector" value="count" /> | 96 <param name="a_selector" value="count" /> |
| 97 <param name="column_name" value="anno5" /> | 97 <param name="column_name" value="anno5" /> |
| 98 <output name="outfile" file="gemini_annotate_result.tabular" /> | 98 <output name="outfile" file="gemini_annotate_result.db" ftype="gemini.sqlite" compare="sim_size" delta="1000"/> |
| 99 </test> | 99 </test> |
| 100 </tests> | 100 </tests> |
| 101 <help><