def load_pcoa_files(pcoa_dir):
 support_pcoas = []
 pcoa_filenames = listdir(pcoa_dir)
 pcoa_filenames = [fname for fname in pcoa_filenames if (not fname.startswith('.'))]
 master_pcoa = open(join(pcoa_dir, pcoa_filenames[0]), 'U')
 master_pcoa = parse_coords(master_pcoa)
 for fname in pcoa_filenames:
  try:
   f = open(join(pcoa_dir, fname), 'U')
   pcoa_res = parse_coords(f)
   support_pcoas.append(pcoa_res)
   f.close()
  except IOError as err:
   stderr.write((('error loading support pcoa ' + fname) + '\n'))
   exit(1)
 return (master_pcoa, support_pcoas)

def load_pcoa_files ( pcoa_dir ) : support_pcoas = [ ] pcoa_filenames = listdir ( pcoa_dir ) pcoa_filenames = [ fname for fname in pcoa_filenames if ( not fname . startswith ( '.' ) ) ] master_pcoa = open ( join ( pcoa_dir , pcoa_filenames [ 0 ] ) , 'U' ) master_pcoa = parse_coords ( master_pcoa ) for fname in pcoa_filenames : try : f = open ( join ( pcoa_dir , fname ) , 'U' ) pcoa_res = parse_coords ( f ) support_pcoas . append ( pcoa_res ) f . close ( ) except IOError as err : stderr . write ( ( ( 'error loading support pcoa ' + fname ) + '\n' ) ) exit ( 1 ) return ( master_pcoa , support_pcoas )
loads pcoa files from filepaths .