# HG changeset patch # User Jim Johnson # Date 1366808404 18000 # Node ID 429a6b4df5e55d562da8e745229d0d6a5f433553 # Parent 57edf4d0881643009f9b8acb21cf4e8b2f296d39 Restrict to info items that are key=value pairs diff -r 57edf4d08816 -r 429a6b4df5e5 snpEff_cds_report.py --- a/snpEff_cds_report.py Sun Apr 21 14:18:21 2013 -0500 +++ b/snpEff_cds_report.py Wed Apr 24 08:00:04 2013 -0500 @@ -743,6 +743,8 @@ print >> sys.stdout, "only simple variant currently supported, ignoring: %s:%s %s\n" % (chrom,pos,alt) for info_item in info.split(';'): try: + if info_item.find('=') < 0: + continue (key,val) = info_item.split('=',1) if key == 'SAF': # Usually a SAF for each variant: if A,AG then SAF=0.333333333333333,SAF=0.333333333333333; freqs = info_item.split(',')