Mercurial > repos > iuc > jbrowse
diff gff3_rebase.py @ 42:c1451868f8d4 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit 0bfb0de98c918860c21808e8832caad9f0535975
| author | iuc |
|---|---|
| date | Thu, 08 Jun 2017 17:31:17 -0400 |
| parents | d5e8d72c432a |
| children | 665c4f3e48ae |
line wrap: on
line diff
--- a/gff3_rebase.py Wed Mar 01 23:50:09 2017 -0500 +++ b/gff3_rebase.py Thu Jun 08 17:31:17 2017 -0400 @@ -1,11 +1,13 @@ #!/usr/bin/env python -import sys -import logging -logging.basicConfig(level=logging.INFO) import argparse import copy +import logging +import sys + from BCBio import GFF from Bio.SeqFeature import FeatureLocation + +logging.basicConfig(level=logging.INFO) log = logging.getLogger(__name__) __author__ = "Eric Rasche" @@ -168,8 +170,8 @@ if __name__ == '__main__': parser = argparse.ArgumentParser(description='rebase gff3 features against parent locations', epilog="") - parser.add_argument('parent', type=file, help='Parent GFF3 annotations') - parser.add_argument('child', help='Child GFF3 annotations to rebase against parent') + parser.add_argument('parent', type=argparse.FileType('r'), help='Parent GFF3 annotations') + parser.add_argument('child', type=argparse.FileType('r'), help='Child GFF3 annotations to rebase against parent') parser.add_argument('--interpro', action='store_true', help='Interpro specific modifications') parser.add_argument('--protein2dna', action='store_true',
