# HG changeset patch # User devteam # Date 1498171289 14400 # Node ID 077f404ae1bbeaa2c2b97ec24c8256a216a283fa # Parent 4cd116158aef236b383e8f38aa0459b56d766e3b planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/gops/get_flanks commit cae3e05d02e60f595bb8b6d77a84f030e9bd1689 diff -r 4cd116158aef -r 077f404ae1bb get_flanks.py --- a/get_flanks.py Wed Nov 11 12:48:31 2015 -0500 +++ b/get_flanks.py Thu Jun 22 18:41:29 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 4cd116158aef -r 077f404ae1bb get_flanks.xml --- a/get_flanks.xml Wed Nov 11 12:48:31 2015 -0500 +++ b/get_flanks.xml Thu Jun 22 18:41:29 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 4cd116158aef -r 077f404ae1bb macros.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Thu Jun 22 18:41:29 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 4cd116158aef -r 077f404ae1bb tool_dependencies.xml --- a/tool_dependencies.xml Wed Nov 11 12:48:31 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - - - - - - - - -