Exemple #1
0
 def __init__(self, app, data_table_name="__dbkeys__", load_old_style=True):
     self._app = app
     self._data_table_name = data_table_name
     self._static_chrom_info_path = app.config.len_file_path
     # A dbkey can be listed multiple times, but with different names, so we can't use dictionaries for lookups
     if load_old_style:
         self._static_dbkeys = list(read_dbnames(app.config.builds_file_path))
     else:
         self._static_dbkeys = []
Exemple #2
0
 def __init__( self, app, data_table_name="__dbkeys__", load_old_style=True ):
     self._app = app
     self._data_table_name = data_table_name
     self._static_chrom_info_path = app.config.len_file_path
     # A dbkey can be listed multiple times, but with different names, so we can't use dictionaries for lookups
     if load_old_style:
         self._static_dbkeys = list( read_dbnames( app.config.builds_file_path ) )
     else:
         self._static_dbkeys = []