def _makeReference( output_path, type_suffix ):
recs = []
for resource in pkg.resource_listdir(_REF_DIR, ''):
if pkg.resource_isdir(_REF_DIR, resource ):
expected_file = "{0}_{1}.fasta".format(resource, type_suffix)
expected_path = op.join(_REF_PATH, resource, expected_file)
if op.exists( expected_path ):
recs += _readFasta( expected_path )
else:
raise MissingReferenceException('Missing expected reference file "{0}" for Locus "{1}"'.format(expected_file, resource))
_writeFasta( output_path, recs )
return True
评论列表
文章目录