# HG changeset patch
# User devteam
# Date 1498171192 14400
# Node ID dd9315a56c09d947d53f6c70d00f3fda6d9e5c35
# Parent 0f9775889036bde41d099bedce49cf359cb8e329
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/gops/get_flanks commit cae3e05d02e60f595bb8b6d77a84f030e9bd1689
diff -r 0f9775889036 -r dd9315a56c09 get_flanks.py
--- a/get_flanks.py Fri Dec 18 19:38:14 2015 -0500
+++ b/get_flanks.py Thu Jun 22 18:39:52 2017 -0400
@@ -1,6 +1,5 @@
#!/usr/bin/env python
-#Done by: Guru
-
+# Done by: Guru
"""
Get Flanking regions.
@@ -8,8 +7,10 @@
-l, --cols=N,N,N,N: Columns for chrom, start, end, strand in file
-o, --off=N: Offset
"""
+from __future__ import print_function
import sys
+
from bx.cookbook import doc_optparse
from galaxy.tools.util.galaxyops import parse_cols_arg
@@ -54,12 +55,12 @@
j += 1
try:
elems = line.split('\t')
- #if the start and/or end columns are not numbers, skip that line.
+ # if the start and/or end columns are not numbers, skip that line.
assert int(elems[start_col_1])
assert int(elems[end_col_1])
if strand_col_1 != -1:
strand = elems[strand_col_1]
- #if the stand value is not + or -, skip that line.
+ # if the stand value is not + or -, skip that line.
assert strand in ['+', '-']
if direction == 'Upstream':
if strand == '+':
@@ -184,8 +185,9 @@
if skipped_lines == j:
stop_err( "Data issue: click the pencil icon in the history item to correct the metadata attributes." )
if skipped_lines > 0:
- print 'Skipped %d invalid lines starting with #%dL "%s"' % ( skipped_lines, first_invalid_line, invalid_line )
- print 'Location: %s, Region: %s, Flank-length: %d, Offset: %d ' % ( direction, region, size, offset )
+ print('Skipped %d invalid lines starting with #%dL "%s"' % ( skipped_lines, first_invalid_line, invalid_line ))
+ print('Location: %s, Region: %s, Flank-length: %d, Offset: %d ' % ( direction, region, size, offset ))
+
if __name__ == "__main__":
main()
diff -r 0f9775889036 -r dd9315a56c09 get_flanks.xml
--- a/get_flanks.xml Fri Dec 18 19:38:14 2015 -0500
+++ b/get_flanks.xml Thu Jun 22 18:39:52 2017 -0400
@@ -1,57 +1,62 @@
- returns flanking region/s for every gene
-
- bx-python
- galaxy-ops
-
- get_flanks.py $input $out_file1 $size $direction $region -o $offset -l ${input.metadata.chromCol},${input.metadata.startCol},${input.metadata.endCol},${input.metadata.strandCol}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-This tool finds the upstream and/or downstream flanking region(s) of all the selected regions in the input file.
+ returns flanking region/s for every gene
+
+ macros.xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+ ]]>
diff -r 0f9775889036 -r dd9315a56c09 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Thu Jun 22 18:39:52 2017 -0400
@@ -0,0 +1,20 @@
+
+
+
+
+ bx-python
+ galaxy-ops
+
+
+
+-----
+
+**Screencasts!**
+
+See Galaxy Interval Operation Screencasts_ (right click to open this link in another window).
+
+.. _Screencasts: https://galaxyproject.org/learn/interval-operations/
+
+-----
+
+
diff -r 0f9775889036 -r dd9315a56c09 tool_dependencies.xml
--- a/tool_dependencies.xml Fri Dec 18 19:38:14 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-