<s> """<STR_LIT>""" <EOL> def _safe_single_attr ( x ) : <EOL> """<STR_LIT>""" <EOL> if x is None or x is "<STR_LIT:.>" : <EOL> return None <EOL> elif isinstance ( x , ( list , tuple ) ) : <EOL> return x [ <NUM_LIT:0> ] <EOL> else : <EOL> return x <EOL> def extract_aaf ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_ancestral_allele ( var ) : <EOL> """<STR_LIT>""" <EOL> return _safe_single_attr ( var . INFO . get ( '<STR_LIT>' ) ) <EOL> def get_rms_bq ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_cigar ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def in_hm2 ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def in_hm3 ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def is_somatic ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_somatic_score ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_depth ( var ) : <EOL> """<STR_LIT>""" <EOL> return _safe_single_attr ( var . INFO . get ( '<STR_LIT>' ) ) <EOL> def get_strand_bias ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_rms_map_qual ( var ) : <EOL> """<STR_LIT>""" <EOL> return _safe_single_attr ( var . INFO . get ( '<STR_LIT>' ) ) <EOL> def get_homopol_run ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_map_qual_zero ( var ) : <EOL> """<STR_LIT>""" <EOL> return _safe_single_attr ( var . INFO . get ( '<STR_LIT>' ) ) <EOL> def get_num_of_alleles ( var ) : <EOL> """<STR_LIT>""" <EOL> return _safe_single_attr ( var . INFO . get ( '<STR_LIT>' ) ) <EOL> def get_frac_dels ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_haplotype_score ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_quality_by_depth ( var ) : <EOL> """<STR_LIT>""" <EOL> return var . INFO . get ( '<STR_LIT>' ) <EOL> def get_allele_count ( var ) : <EOL> """<STR_LIT>""" <EOL> return _safe_single_attr ( var . INFO . get ( '<STR_LIT>' ) ) <EOL> def get_allele_bal ( var ) : <EOL> """<STR_LIT>""" <EOL> return _safe_single_attr ( var . INFO . get ( '<STR_LIT>' ) ) </s>
