Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/holmrenser/gff_toolkit
tools for handling gff files
https://github.com/holmrenser/gff_toolkit
gff-toolkit gff3 python
Last synced: about 1 month ago
JSON representation
tools for handling gff files
- Host: GitHub
- URL: https://github.com/holmrenser/gff_toolkit
- Owner: holmrenser
- License: mit
- Created: 2015-08-18T08:28:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-22T11:09:11.000Z (about 8 years ago)
- Last Synced: 2024-11-19T03:33:30.527Z (about 2 months ago)
- Topics: gff-toolkit, gff3, python
- Language: Python
- Size: 66.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/holmrenser/gff_toolkit.svg)](https://travis-ci.org/holmrenser/gff_toolkit)
[![Coverage Status](https://coveralls.io/repos/holmrenser/gff_toolkit/badge.svg?branch=master&service=github)](https://coveralls.io/github/holmrenser/gff_toolkit?branch=master)
[![PyPI version](https://badge.fury.io/py/gff_toolkit.svg)](https://badge.fury.io/py/gff_toolkit)
[![Documentation Status](https://readthedocs.org/projects/gff-toolkit/badge/?version=latest)](http://gff-toolkit.readthedocs.org/en/latest/?badge=latest)
# gff_toolkit
Tools for handling gff filesRead the [documentation](http://gff-toolkit.readthedocs.org/)
To install gff_toolkit simply run:
```pip install gff_toolkit```To upgrade after a new version run:
```pip install gff_toolkit --upgrade``````python
#!/usr/bin/python
"""
Example on how to reformat manual annotations from Geneious to proper Gff
"""__author__ = 'rensholmer'
import sys
import gff_toolkit as gtdef main(manual_file,author_name):
manual_gff = gt.parser(manual_file,filetype='manual',limit=dict(featuretype='CDS',source='Geneious'),author=author_name)
for gene in manual_gff.getitems(featuretype='gene'):
for subs in manual_gff.get_children(gene):
print subs.stringify().strip()if __name__ == '__main__':
if len(sys.argv) == 3:
main(*sys.argv[1:])
else:
print 'Usage: python {0} '.format(sys.argv[0])
```