5466af2f203aec41924d0c71a63721695eb58c73 wong Mon Oct 24 15:56:29 2011 -0700 added an attribute I will need in the future diff --git python/lib/ucscgenomics/track.py python/lib/ucscgenomics/track.py index 60216f2..97fb811 100644 --- python/lib/ucscgenomics/track.py +++ python/lib/ucscgenomics/track.py @@ -252,30 +252,31 @@ @property def url(self): """The url on our site for this composite""" return self._url @property def organism(self): """The url on our site for this composite""" return self._organism def __init__(self, database, compositeName, trackPath=None): if trackPath == None: self._trackPath = os.path.expanduser('~/kent/src/hg/makeDb/trackDb/') + self._trackDbDir = os.path.expanduser('~/kent/src/hg/makeDb/trackDb/') else: self._trackPath = trackPath organisms = { 'hg19': 'human', 'hg18': 'human', 'mm9': 'mouse' } if database in organisms: self._organism = organisms[database] else: raise KeyError(database + ' is not a valid database') if not self._trackPath.endswith('/'):