After having essentially abandoned my efforts (and Dragon Age...), I've released a new version of my python package for manipulating GFF files, pyGFF at social.bioware.com/project/1936/. The major improvement is that the viewer is now an editor. It doesn't have all the features of the Toolset's editor: It can't add or remove fields from structures for instance, and you can't define new structures. What you can do is opening an existing file and edit it to your heart's content.
Under the hood, the data structures are a little improved but not where I'd like them, and some of the logic is hackey.
For the future, I plan on adding support for moving structures from one list to another, or replacing a structure with another. Essentially copy-paste. I also plan on writing a new module for reading and writing GFF files on-the-fly, allowing the editor to open files immediately instead of taking upwards of a minute to open a file, and similar gains on saving files... At the expense of responsiveness when you explore new parts of the file. There's a few other improvements I want to make, like additional ways to search an opened file for data.
A quick overwiew of the editor: The editor requires Python 2.6 amd wxPython. Once you get pygff extracted, go to the folder you extracted it to, and run the module gff4.editor (pythonw -m gff4.editor). The File menu has your typical Open/Save/Quit options. When you open a file, the structure shows up in the largest sectionof the editor as a tree, When you select a node in the tree, the bottom pane let you edit it. Save saves the edited value, reset sets it back to whatever is saved. When you have a Create or Delete button, you can add or delete optional values. The list editor should be self-explanatory. Right clicking on a list or structure and choosing Search lets you limit future searches to just that node's children. The search uses regexen at the moment, though strings without characters considered special in regexen will act like your normal substring search. Double-click on results to select that item in the tree.
I'll look into getting a compiled version of the editor uploaded elsewhere... It will not fit here.
Editado por Mephales, 13 marzo 2011 - 08:24 .





Volver arriba






