"""A Chain header as in http://genome.ucsc.edu/goldenPath/help/chain.html
chain coordinates are with respect to the strand, so for example tStart on the + strand is the
- distance from the 0th position from the left; tStart on the - strand is the distance from
- the last position from the right."""
+ distance from the leftmost position; tStart on the - strand is the distance from the rightmost position."""
:param fname: name of the file"""
+ #you asked for the pickled file. I'll give it to you
log.debug("loading pickled file %s ..." % fname)
return cPickle.load( open(fname) )
elif os.path.isfile("%s.pkl" % fname):
+ #there is a cached version I can give to you
log.info("loading pickled file %s.pkl ..." % fname)
if os.stat(fname).st_mtime > os.stat("%s.pkl" % fname).st_mtime:
log.critical("*** pickled file %s.pkl is not up to date ***" % (fname))
return d[1:] #clip the (thr, thr) entry