440d92e210f1da039f4864e41320bb96fe461d49
wong
  Mon Oct 17 14:16:51 2011 -0700
added new property httpDownloadsPath, which is the symlinked directory that QA uses in their emails
diff --git python/lib/ucscgenomics/track.py python/lib/ucscgenomics/track.py
index bf793d6..6cd235d 100644
--- python/lib/ucscgenomics/track.py
+++ python/lib/ucscgenomics/track.py
@@ -117,30 +117,37 @@
         return self._database
         
     @property 
     def name(self):
         """The composite name"""
         return self._name
         
     @property 
     def downloadsDirectory(self):
         """The location of files in downloads"""
         if not os.path.isdir(self._downloadsDirectory):
             raise KeyError(self._downloadsDirectory + ' does not exist')
         return self._downloadsDirectory
     
     @property 
+    def httpDownloadsPath(self):
+        """The location of the downloadable files path in apache form"""
+        if not os.path.isdir(self._httpDownloadsPath):
+            raise KeyError(self._httpDownloadsPath + ' does not exist')
+        return self._httpDownloadsPath
+    
+    @property 
     def files(self):
         """A list of all files in the downloads directory of this composite"""
         try:
             return self._files
         except AttributeError:
             md5sums = readMd5sums(self._md5path)
             
             radict = dict()
             for stanza in self.alphaMetaDb:
                 if 'fileName' in stanza:
                     for file in stanza['fileName'].split(','):
                         radict[file] = stanza
             
             self._files = dict()
             for file in os.listdir(self.downloadsDirectory):
@@ -260,20 +267,21 @@
             self._organism = organisms[database]
         else:
             raise KeyError(database + ' is not a valid database')
         
         if not self._trackPath.endswith('/'):
             self._trackPath = self._trackPath + '/'
         
         self._trackDbPath = self._trackPath + self._organism + '/' + database + '/' + compositeName + '.ra'
         if not os.path.isfile(self._trackDbPath):
             raise KeyError(self._trackDbPath + ' does not exist')    
         
         self._alphaMdbPath = self._trackPath + self._organism + '/' + database + '/metaDb/alpha/' + compositeName + '.ra'
         self._betaMdbPath = self._trackPath + self._organism + '/' + database + '/metaDb/beta/' + compositeName + '.ra'    
         self._publicMdbPath = self._trackPath + self._organism + '/' + database + '/metaDb/public/' + compositeName + '.ra'
         self._downloadsDirectory = '/hive/groups/encode/dcc/analysis/ftp/pipeline/' + database + '/' + compositeName + '/'
+        self._httpDownloadsPath = '/usr/local/apache/htdocs-hgdownload/goldenPath/' + database + '/' + 'encodeDCC/' + compositeName + '/'
         self._url = 'http://genome.ucsc.edu/cgi-bin/hgTrackUi?db=' + database + '&g=' + compositeName
         self._database = database
         self._name = compositeName        
         self._md5path = '/hive/groups/encode/dcc/analysis/ftp/pipeline/' + database + '/' + compositeName + '/md5sum.txt'