parameters: (variant, param)
return_statement: return True
docstring: Determines if a DQ score can be computed for any variant type
docstring_summary: Determines if a DQ score can be computed for any variant type
docstring_tokens: Determines if a DQ score can be computed for any variant type
function: def can_compute_dng_DQ_common(variant, param):
      """Determines if a DQ score can be computed for any variant type"""
  
      if variant.FILTER is not None:  # not PASS
          return False
      if param['pass_sample_filters']:
          if _sample_filter_name not in variant.FORMAT:
              return False
          sample_index = param['sample_index']
          if param.get('male_proband'):
              chrom = variant.CHROM.lstrip('chr')
              if chrom == 'X':
                  sample_index = param['sample_index_chrX']
              elif chrom == 'Y':
                  sample_index = param['sample_index_chrY']
              else:
                  pass
          ft = variant.format(_sample_filter_name)
          for i in sample_index:
              if ft[i] != 'PASS':
                  return False
      pl = variant.format('PL', int)
      if pl is None:
          return False
  
      return True
function_tokens: def can_compute_dng_DQ_common ( variant , param ) : if variant . FILTER is not None : # not PASS return False if param [ 'pass_sample_filters' ] : if _sample_filter_name not in variant . FORMAT : return False sample_index = param [ 'sample_index' ] if param . get ( 'male_proband' ) : chrom = variant . CHROM . lstrip ( 'chr' ) if chrom == 'X' : sample_index = param [ 'sample_index_chrX' ] elif chrom == 'Y' : sample_index = param [ 'sample_index_chrY' ] else : pass ft = variant . format ( _sample_filter_name ) for i in sample_index : if ft [ i ] != 'PASS' : return False pl = variant . format ( 'PL' , int ) if pl is None : return False return True