Mercurial > repos > miller-lab > genome_diversity
comparison LocationFile.py @ 9:22fe0154fa54
added support for heterochromatic regions
author | Richard Burhans <burhans@bx.psu.edu> |
---|---|
date | Tue, 10 Jul 2012 11:41:22 -0400 |
parents | 2c498d40ecde |
children |
comparison
equal
deleted
inserted
replaced
8:30771a097f14 | 9:22fe0154fa54 |
---|---|
55 return rval[0] | 55 return rval[0] |
56 else: | 56 else: |
57 return rval | 57 return rval |
58 else: | 58 else: |
59 die( 'key "{0}" not found in location file {1}'.format( key, self.filename ) ) | 59 die( 'key "{0}" not found in location file {1}'.format( key, self.filename ) ) |
60 | |
61 def get_values_if_exists( self, key ): | |
62 if key in self._map: | |
63 rval = self._map[key] | |
64 if len( rval ) == 1: | |
65 return rval[0] | |
66 else: | |
67 return rval | |
68 else: | |
69 return None |