this was needed to support the make-library-tree script
attach the library dictionary to the instance
"""
self.library = self._make_dict_from_table(
attach the library dictionary to the instance
"""
self.library = self._make_dict_from_table(
- 'fctracker_library',
- 'library_id')
+ 'samples_library',
+ 'id')
attach the species dictionary to the instance
"""
self.species = self._make_dict_from_table(
attach the species dictionary to the instance
"""
self.species = self._make_dict_from_table(
where = ""
self.flowcells = {}
c = self.conn.cursor()
where = ""
self.flowcells = {}
c = self.conn.cursor()
- c.execute('select * from fctracker_flowcell %s;' % (where))
+ c.execute('select * from experiments_flowcell %s;' % (where))
# extract just the field name
description = [ f[0] for f in c.description ]
for row in c:
# extract just the field name
description = [ f[0] for f in c.description ]
for row in c:
path, filename = os.path.split(pathname)
basename, ext = os.path.splitext(filename)
record = basename.split('_')
path, filename = os.path.split(pathname)
basename, ext = os.path.splitext(filename)
record = basename.split('_')
- assert len(record) == 6
+ if len(record) != 6:
+ logging.error("Unrecognized srf file: %s expected 6 fields got %d" % (pathname,len(record)))
+ continue
site = record[0]
date = record[1]
site = record[0]
date = record[1]
the same as the link we want to make.
If the link already exists and is different, throw an error.
"""
the same as the link we want to make.
If the link already exists and is different, throw an error.
"""
- logging.debug("%s -> %s", source, destination)
+ logging.debug("CHECKING: %s -> %s", source, destination)
if not os.path.exists(source):
logging.warning("%s doesn't exist", source)
if not os.path.exists(source):
logging.warning("%s doesn't exist", source)
if os.path.exists(destination):
if os.path.samefile(source, destination):
if os.path.exists(destination):
if os.path.samefile(source, destination):
+ logging.debug('SAME: %s -> %s' % (source, destination))
return
else:
raise IOError('%s and %s are different files' % \
return
else:
raise IOError('%s and %s are different files' % \