[Bioperl-guts-l] bioperl-live/Bio/FeatureIO gff.pm,1.34,1.35

Scott Cain scain at pub.open-bio.org
Fri Sep 23 09:23:46 EDT 2005


Update of /home/repository/bioperl/bioperl-live/Bio/FeatureIO
In directory pub.open-bio.org:/tmp/cvs-serv22850/Bio/FeatureIO

Modified Files:
	gff.pm 
Log Message:
modified gff.pm to allow multiple instances of the same tag, for example:

  Ontology_term=GO:0007155,GO:0005194;Ontology_term=GO:0005578

which is valid GFF3.  Also modified the knownGene.gff3 test data file to 
test this.


Index: gff.pm
===================================================================
RCS file: /home/repository/bioperl/bioperl-live/Bio/FeatureIO/gff.pm,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** gff.pm	19 Apr 2005 02:46:08 -0000	1.34
--- gff.pm	23 Sep 2005 13:23:44 -0000	1.35
***************
*** 593,597 ****
  
      my @values = map{uri_unescape($_)} split ',', $values;
!     $attr{$key} = [@values];
    }
  
--- 593,605 ----
  
      my @values = map{uri_unescape($_)} split ',', $values;
! 
!    #minor hack to allow for multiple instances of the same tag
!     if ($attr{$key}) {
!       my @tmparray = @{$attr{$key}};
!       push @tmparray, @values;
!       $attr{$key} = [@tmparray];
!     } else {
!       $attr{$key} = [@values];
!     }
    }
  



More information about the Bioperl-guts-l mailing list