diff ensembl_variant_report.py @ 6:d9fad18ffdb1 draft

planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/ensembl_variant_report commit e6aa05bbbee3cc7d98f16354fc41c674f439ff1b-dirty
author jjohnson
date Thu, 14 Jun 2018 17:50:33 -0400 (2018-06-14)
parents 9e83cc05d384
children d5cb252c68da
line wrap: on
line diff
--- a/ensembl_variant_report.py	Mon Feb 06 09:25:43 2017 -0500
+++ b/ensembl_variant_report.py	Thu Jun 14 17:50:33 2018 -0400
@@ -113,13 +113,15 @@
                 alt_list = alts.split(',')
                 pos = int(pos)
                 qual = float(qual)
+                dp = None
+                dpr = None
                 for info_item in info.split(';'):
                     if info_item.find('=') < 0: continue
                     (key, val) = info_item.split('=', 1)
                     if key == 'DP':
                         dp = int(val)
                     if key == 'DPR':
-                        dpr = dpr = [int(x) for x in val.split(',')]
+                        dpr = [int(x) for x in val.split(',')]
                     if key in ['EFF','ANN']:
                         for effect in val.split(','):
                             if options.debug: print >> sys.stderr, "\n%s" % (effect.split('|'))