Mercurial > repos > devteam > count_gff_features
diff count_gff_features.py @ 1:188392a0d0a8 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/count_gff_features commit d242cab2b4e86bc8a16eeaee7e5dc0264e617170
author | devteam |
---|---|
date | Tue, 06 Jun 2017 18:37:53 -0400 |
parents | fabda887a71f |
children |
line wrap: on
line diff
--- a/count_gff_features.py Mon Jul 28 11:56:10 2014 -0400 +++ b/count_gff_features.py Tue Jun 06 18:37:53 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)