def process_extract_samples(samples_to_extract):
 prefs = {}
 if samples_to_extract:
  samples = samples_to_extract.strip().strip("'").split(',')
 for (j, col) in enumerate(samples):
  key = str(j)
  prefs[key] = {}
  prefs[key] = col
 return prefs

def process_extract_samples ( samples_to_extract ) : prefs = { } if samples_to_extract : samples = samples_to_extract . strip ( ) . strip ( "'" ) . split ( ',' ) for ( j , col ) in enumerate ( samples ) : key = str ( j ) prefs [ key ] = { } prefs [ key ] = col return prefs
parses the samples to extract option from the command line .