# HG changeset patch # User iuc # Date 1579905320 18000 # Node ID 567837ca5f332c22ed4b3088af4823c2ee92a5b9 # Parent 0c8f7322f8fc5b0553865ad5aeee52e6ff1f34ad "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7" diff -r 0c8f7322f8fc -r 567837ca5f33 gemini_annotate.xml --- a/gemini_annotate.xml Fri Jan 18 19:34:41 2019 -0500 +++ b/gemini_annotate.xml Fri Jan 24 17:35:20 2020 -0500 @@ -1,4 +1,4 @@ - + the variants in an existing GEMINI database with additional information gemini_macros.xml @@ -19,9 +19,19 @@ '$tabixed_file' && - tabix -p '$annotate_source.ext' '$tabixed_file' && + #if $annotate_source.ext == 'vcf_bgzip': + ## File is bgzipped and tabixed already -> just symlink data and index + #set $tabixed_file = 'tabixed.vcf.gz' + ln -s '$annotate_source' $tabixed_file && + ln -s '$annotate_source.metadata.tabix_index' ${tabixed_file}.tbi && + #else: + ## bgzip and index vcf or bed + #set $tabixed_file = "tabixed.%s.gz" % $annotate_source.ext + bgzip -c '$annotate_source' > '$tabixed_file' && + tabix -p '$annotate_source.ext' '$tabixed_file' && + #end if + ## gemini annotate modifies its input database in-place so, in Galaxy, + ## we need to create a copy first! cp '$infile' '$outfile' && gemini @BINARY@ @@ -46,7 +56,7 @@ #else: -c '${a.column_name}' #end if - #if str($annotate_source.ext) == "vcf": + #if str($annotate_source.ext) != "bed": $region_only #end if '$outfile' @@ -54,7 +64,7 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + @@ -138,8 +172,8 @@ - - + + @@ -164,8 +198,8 @@ - - + + diff -r 0c8f7322f8fc -r 567837ca5f33 test-data/gemini_amend.vcf.gz Binary file test-data/gemini_amend.vcf.gz has changed