commit/galaxy-central: jgoecks: Enable GFF and GFF3 attributes to be written in GTF format.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/c946e83bdd1c/ changeset: r5365:c946e83bdd1c user: jgoecks date: 2011-04-11 18:35:23 summary: Enable GFF and GFF3 attributes to be written in GTF format. affected #: 1 file (380 bytes) --- a/lib/galaxy/datatypes/util/gff_util.py Mon Apr 11 10:37:14 2011 -0400 +++ b/lib/galaxy/datatypes/util/gff_util.py Mon Apr 11 12:35:23 2011 -0400 @@ -281,6 +281,16 @@ """ if gff_format == 'GTF': format_string = '%s "%s"' + # Convert group (GFF) and ID, parent (GFF3) attributes to transcript_id, gene_id + id_attr = None + if 'group' in attrs: + id_attr = 'group' + elif 'ID' in attrs: + id_attr = 'ID' + elif 'Parent' in attrs: + id_attr = 'Parent' + if id_attr: + attrs['transcript_id'] = attrs['gene_id'] = attrs[id_attr] elif gff_format == 'GFF3': format_string = '%s=%s' attrs_strs = [] Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket