# HG changeset patch
# User iuc
# Date 1547246822 18000
# Node ID cd00221d67cbaeb403efb0556eb9439ffefb73d3
# Parent 7ca6716748c2672eab802beb6410035f4620478d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 62ed732cba355e695181924a8ed4cce49ca21c59
diff -r 7ca6716748c2 -r cd00221d67cb gemini_macros.xml
--- a/gemini_macros.xml Fri Dec 14 12:51:59 2018 -0500
+++ b/gemini_macros.xml Fri Jan 11 17:47:02 2019 -0500
@@ -1,15 +1,12 @@
- 0.18.1
+ 0.20.1
- 181
+ 200
gemini
- tabix
-
-
@@ -24,9 +21,17 @@
+
+
+
+ 10.1371/journal.pcbi.1003153
+
+
+
+
@@ -36,31 +41,36 @@
-
-
-
-
-
-
-
+
+
+
+
+
-
-
+
+
+
-
+
-
-
-
+
+
+
+
-
-
-
+
+
+
+
+
+
+
@@ -69,27 +79,23 @@
-
+
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -103,10 +109,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value.strip()
+
+
+
+
+
+
+
+
+
+ value.strip()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value.strip()
+
+
+ not value or value.isdigit()
+
+
+ not value or value.isdigit()
+
+
+
+
@@ -119,67 +205,50 @@
#end if
-
- #if str($filter.filter_selector) == 'yes' and $filter.filter:
- --filter '${ str( $filter.filter ) }'
+
+ #if str($report.report_selector) == 'full':
+ #set cols = "*"
+ #else:
+ #if $report.columns and str($report.columns) != '':
+ #set $cols = str($report.columns)
+ #else
+ #set $cols = ''
+ #end if
+ #if str($report.extra_cols).strip():
+ #if $cols:
+ #set $cols = $cols + ', ' + str($report.extra_cols)
+ #else:
+ #set $cols = str($report.extra_cols)
+ #end if
+ #end if
+ #if not $cols:
+ #set $cols = "variant_id, gene"
+ #end if
#end if
- #if $report.report_selector != 'all':
- --columns "${report.columns}
- #if str($report.extra_cols).strip()
- #echo ','+','.join(str($report.extra_cols).split())
- #end if
- "
+ @SET_COLS@
+ #if $cols != "*"
+ --columns '$cols'
#end if
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 10.1371/journal.pcbi.1003153
-
-
-
-
-
-
-
-
-
- value is not None and value.metadata.gemini_version == "@VERSION@"
-
-
-
+ = %d" % int($r.start))
+ #end if
+ #if str($r.stop).strip():
+ #silent $r_elements.append("end <= %d" % int($r.stop))
+ #end if
+ #silent $region_elements.append("(%s)" % " AND ".join($r_elements))
+ #end for
+ ]]>
+
diff -r 7ca6716748c2 -r cd00221d67cb gemini_query.xml
--- a/gemini_query.xml Fri Dec 14 12:51:59 2018 -0500
+++ b/gemini_query.xml Fri Jan 11 17:47:02 2019 -0500
@@ -1,8 +1,32 @@
-
+
Querying the GEMINI database
gemini_macros.xml
query
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -10,91 +34,251 @@
0:
+ --min-kindreds ${i.min_kindreds}
+ #end if
+ ${i.in}
+ #set $multiline_sql_expr = str($i.sample_filter)
+ #set $cmdln_param = "--sample-filter"
+ @MULTILN_SQL_EXPR_TO_CMDLN@
+ #end for
- $show_samples
- $show_families
- $family_wise
- $header
- $dgidb
- #if $region.strip():
- --region "${region}"
+ #if str($query.oformat.report.format) == 'with_samples':
+ #set $sample_delim = str($query.oformat.report.sample_delim) or ','
+ --show-samples --sample-delim '$sample_delim'
+ #elif str($query.oformat.report.format) == 'with_samples_flattened':
+ --show-samples --format sampledetail
+ #elif str($query.oformat.report.format) == 'with_families':
+ #set $sample_delim = str($query.oformat.report.sample_delim) or ','
+ --show-families --sample-delim '$sample_delim'
+ #elif str($query.oformat.report.format) == 'carrier_summary':
+ --carrier-summary-by-phenotype
+ #if str($query.oformat.report.phenotype).strip():
+ '${query.oformat.report.phenotype}'
+ #else:
+ affected
+ #end if
+ #else:
+ --format ${query.oformat.report.format}
#end if
- #if int($min_kindreds) > 0:
- --min-kindreds $min_kindreds
+
+ #if str($query.interface) == 'basic':
+ ## build the SQL query string from its components
+ #if str($query.oformat.report.format) in ('vcf', 'tped'):
+ #set $cols = "*"
+ #else:
+ #set $report = $query.oformat.report.report
+ @SET_COLS@
+ #end if
+ #set $q = "SELECT %s FROM variants" % $cols
+ #set $where_clause_elements = []
+ #if str($query.filter).strip():
+ #silent $where_clause_elements.append(str($query.filter).strip())
+ #end if
+
+ #set $regions = $query.regions
+ @PARSE_REGION_ELEMENTS@
+ #if $region_elements:
+ #silent $where_clause_elements.append(" OR ".join($region_elements))
+ #end if
+ #if $where_clause_elements:
+ #set $q = $q + " WHERE " + " AND ".join($where_clause_elements)
+ #end if
+ #if str($query.oformat.report.order_by).strip():
+ #set $q = $q + " ORDER BY " + str($query.oformat.report.order_by).strip() + str($query.oformat.report.sort_order)
+ #end if
+ #else
+ ## The user entered the SQL query string directly.
+ #set $q = str($query.q)
#end if
- ##--format FORMAT Format of output (JSON, TPED or default) # we will take default for the time being
- ## --sample-delim STRING The delimiter to be used with the --show-samples option.
#set $multiline_sql_expr = $q
#set $cmdln_param = "-q"
@MULTILN_SQL_EXPR_TO_CMDLN@
- "${ infile }"
- > "${ outfile }"
+ '$infile'
+ > '$outfile'
]]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value.strip()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
+
+
+
+