def makeExonReference():
data = {}
for resource in pkg.resource_listdir(_REF_DIR, ''):
if pkg.resource_isdir(_REF_DIR, resource ):
expected_file = "{0}_exons.map".format(resource)
expected_path = op.join(_REF_PATH, resource, expected_file)
if op.exists( expected_path ):
data[resource] = expected_path
elif _make_exon_map( expected_path, resource ):
data[resource] = expected_path
else:
raise MissingReferenceException('Missing expected reference file "{0}" for Locus "{1}"'.format(expected_file, resource))
_writeMap( _EXON_REF, data )
return True
评论列表
文章目录