# HG changeset patch # User devteam # Date 1496788659 14400 # Node ID 115bba486116a1e39ff7ead76a97453de0afe85a # Parent 002a1e6ef8d9f00d09ca2f2574fa307aff0004fe planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/count_gff_features commit d242cab2b4e86bc8a16eeaee7e5dc0264e617170 diff -r 002a1e6ef8d9 -r 115bba486116 count_gff_features.py --- a/count_gff_features.py Mon Jul 28 11:30:20 2014 -0400 +++ b/count_gff_features.py Tue Jun 06 18:37:39 2017 -0400 @@ -1,10 +1,13 @@ #!/usr/bin/env python # This tool takes a gff file as input and counts the number of features in it. -import sys, fileinput -from galaxy import eggs +from __future__ import print_function + +import fileinput +import sys + +from bx.intervals.io import GenomicInterval from galaxy.datatypes.util.gff_util import GFFReaderWrapper -from bx.intervals.io import GenomicInterval # Get args. input_file = sys.argv[1:] @@ -15,4 +18,4 @@ if isinstance( feature, GenomicInterval ): count += 1 -print count \ No newline at end of file +print(count) diff -r 002a1e6ef8d9 -r 115bba486116 count_gff_features.xml --- a/count_gff_features.xml Mon Jul 28 11:30:20 2014 -0400 +++ b/count_gff_features.xml Tue Jun 06 18:37:39 2017 -0400 @@ -1,10 +1,12 @@ - + - bx-python + galaxy-ops - - count_gff_features.py $input > $output + '$output' + ]]> diff -r 002a1e6ef8d9 -r 115bba486116 tool_dependencies.xml --- a/tool_dependencies.xml Mon Jul 28 11:30:20 2014 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - -