# HG changeset patch # User iuc # Date 1579904517 0 # Node ID de9bdb014464da62208796f13f2ec352d3c1191b # Parent e5eb597e8f805f92c12694821cc45c0fe925ba3c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 251c6024b4ff643a63e17fbfe2590998c2bae3a7" diff -r e5eb597e8f80 -r de9bdb014464 gemini_annotate.xml --- a/gemini_annotate.xml Fri Jan 18 19:24:32 2019 -0500 +++ b/gemini_annotate.xml Fri Jan 24 22:21:57 2020 +0000 @@ -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 e5eb597e8f80 -r de9bdb014464 test-data/gemini_amend.vcf.gz Binary file test-data/gemini_amend.vcf.gz has changed