def get_phylogenetic_metric(name):
 try:
  return getattr(qiime.beta_metrics, ('dist_' + name.lower()))
 except AttributeError:
  try:
   return getattr(qiime.beta_metrics, name.replace('binary', 'binary_dist').lower())
  except AttributeError:
   return getattr(qiime.beta_metrics, name.lower())

def get_phylogenetic_metric ( name ) : try : return getattr ( qiime . beta_metrics , ( 'dist_' + name . lower ( ) ) ) except AttributeError : try : return getattr ( qiime . beta_metrics , name . replace ( 'binary' , 'binary_dist' ) . lower ( ) ) except AttributeError : return getattr ( qiime . beta_metrics , name . lower ( ) )
gets metric by name from list in this module .