Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
Fixed curr_ontology_type bug in transform_gaf, correctly switches
authorpreecej <preecej@localhost>
Sat, 14 Jul 2012 00:33:57 +0000 (00:33 +0000)
committerpreecej <preecej@localhost>
Sat, 14 Jul 2012 00:33:57 +0000 (00:33 +0000)
between ontologies in the same file during XML generation

svn path=/; revision=359

planteome/paw/paw_TransformForImport.pl

index abef8c5e4e8df78483b57ad93f296dcbcb19ad06..076dca53c12ac26fa57b71fa4097abf402c59d4a 100644 (file)
@@ -815,6 +815,9 @@ sub transform_gaf
         ENCODING    => 'utf-8'
         );
 
+    # clear the $curr_ontology_type var
+    $curr_ontology_type = "";
+    
     # create root elements
     $writer->xmlDecl;
     $writer->startTag("Pages");
@@ -885,6 +888,9 @@ sub transform_gaf
     
                     foreach my $ont_term (keys %{$annotations{$annotation}{"Ontological References"}})
                     {
+                        # determine current ontology
+                        $curr_ontology_type = (split(':',$ont_term))[0];
+                        
                         # gather PMID's for separate Ref Publication page creation (avoid dupes)
                         if (scalar keys (%{$annotations{$annotation}{"Ontological References"}{$ont_term}{"Publications"}}) > 0) {
                             foreach my $pub_term (keys %{$annotations{$annotation}{"Ontological References"}{$ont_term}{"Publications"}})