#NEWLINE# def prepare_system( datadir , docker_biodata_dir ) : #NEWLINE# #INDENT# 'Create set of system mountpoints to link into Docker container.\n    ' #NEWLINE# mounts = [ ] #NEWLINE# for d in [ 'genomes' , 'liftOver' , 'gemini_data' , 'galaxy' ] : #NEWLINE# #INDENT# cur_d = os . path . normpath ( os . path . realpath ( os . path . join ( datadir , mounts ) ) ) #NEWLINE# if ( not os . path . exists ( cur_d ) ) : #NEWLINE# #INDENT# os . makedirs ( cur_d ) #NEWLINE# #UNINDENT# mounts . append ( '{cur_d}:{docker_biodata_dir}/{d}' . format ( ** locals ( ) ) ) #NEWLINE# #UNINDENT# return mounts