src/hg/utils/automation/Encode.pm 1.61

1.61 2010/04/20 01:42:20 krish
added support for expVar.ra file
Index: src/hg/utils/automation/Encode.pm
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/automation/Encode.pm,v
retrieving revision 1.60
retrieving revision 1.61
diff -b -B -U 4 -r1.60 -r1.61
--- src/hg/utils/automation/Encode.pm	24 Mar 2010 23:59:32 -0000	1.60
+++ src/hg/utils/automation/Encode.pm	20 Apr 2010 01:42:20 -0000	1.61
@@ -35,8 +35,9 @@
 our $fieldConfigFile = "fields.ra";
 our $vocabConfigFile = "cv.ra";
 our $grantConfigFile = "labs.ra";
 our $labConfigFile = "pi.ra";    # for reporting purposes
+our $expVarsFile= "expVars.ra";
 our $autoCreatedPrefix = "auto";
 
 our $restrictedMonths = 9;
 
@@ -199,8 +200,15 @@
     }
     return \%labs;
 }
 
+sub getExpVars
+{
+# Returns hash indexed by the composite name in the experiments.ra file
+    my ($configPath) = @_;
+    return RAFile::readRaFile("$configPath/$expVarsFile", "composite");
+}
+
 sub getControlledVocab
 {
 # Returns hash indexed by the type's in the cv.ra file (e.g. "Cell Line", "Antibody")
     my ($configPath) = @_;