def get_coord(coord_fname, method='IQR'):
 if (not os.path.isdir(coord_fname)):
  try:
   coord_f = open(coord_fname, 'U')
  except (TypeError, IOError):
   raise MissingFileError('Coord file required for this analysis')
  (coord_header, coords, eigvals, pct_var) = parse_coords(coord_f)
  return [coord_header, coords, eigvals, pct_var, None, None]
 else:
  (master_pcoa, support_pcoas) = load_pcoa_files(coord_fname)
  (coords, coords_low, coords_high, eigval_average, coord_header) = summarize_pcoas(master_pcoa, support_pcoas, method=method)
  pct_var = master_pcoa[3]
  coord_header = list(master_pcoa[0])
  return [coord_header, coords, eigval_average, pct_var, coords_low, coords_high]

def get_coord ( coord_fname , method = 'IQR' ) : if ( not os . path . isdir ( coord_fname ) ) : try : coord_f = open ( coord_fname , 'U' ) except ( TypeError , IOError ) : raise MissingFileError ( 'Coord file required for this analysis' ) ( coord_header , coords , eigvals , pct_var ) = parse_coords ( coord_f ) return [ coord_header , coords , eigvals , pct_var , None , None ] else : ( master_pcoa , support_pcoas ) = load_pcoa_files ( coord_fname ) ( coords , coords_low , coords_high , eigval_average , coord_header ) = summarize_pcoas ( master_pcoa , support_pcoas , method = method ) pct_var = master_pcoa [ 3 ] coord_header = list ( master_pcoa [ 0 ] ) return [ coord_header , coords , eigval_average , pct_var , coords_low , coords_high ]
opens and returns coords location matrix and metadata .