parameters: (param, samples, pedigree)
return_statement: return param
docstring: Check if model inputs are consistent
docstring_summary: Check if model inputs are consistent
docstring_tokens: Check if model inputs are consistent
function: def check_param_input(param, samples, pedigree):
      """Check if model inputs are consistent"""
  
      if param['model'] == 'dng' and param['min_read_depth'] < 1:
          msg = "The minimum read depth per sample must be positive."
          raise ValueError(msg)
  
      if param['select_method'] not in _select_methods:
          msg = "Invalid select method {0}".format(param['select_method'])
          raise ValueError(msg)
  
      param['is_select_call'] = param['select_method'] == 'call'
  
      param['sample_index'] = [samples.index(pedigree[s])
                               for s in _pedigree_names]
      param['n_samples'] = len(samples)
      param['sample_index_chrX'] = [param['sample_index'][0], param['sample_index'][1]]  # w/o father
      param['sample_index_chrY'] = [param['sample_index'][0], param['sample_index'][2]]  # w/o mother
  
      return param
function_tokens: def check_param_input ( param , samples , pedigree ) : if param [ 'model' ] == 'dng' and param [ 'min_read_depth' ] < 1 : msg = "The minimum read depth per sample must be positive." raise ValueError ( msg ) if param [ 'select_method' ] not in _select_methods : msg = "Invalid select method {0}" . format ( param [ 'select_method' ] ) raise ValueError ( msg ) param [ 'is_select_call' ] = param [ 'select_method' ] == 'call' param [ 'sample_index' ] = [ samples . index ( pedigree [ s ] ) for s in _pedigree_names ] param [ 'n_samples' ] = len ( samples ) param [ 'sample_index_chrX' ] = [ param [ 'sample_index' ] [ 0 ] , param [ 'sample_index' ] [ 1 ] ] # w/o father param [ 'sample_index_chrY' ] = [ param [ 'sample_index' ] [ 0 ] , param [ 'sample_index' ] [ 2 ] ] # w/o mother return param