Commits

Anonymous committed 2388ec8

Skip comment lines

Comments (0)

Files changed (1)

scripts/bed_intersect.py

 # Read second BED and intersect
 
 for line in open( in_fname ):
+    if line.startswith("#") or line.isspace(): 
+        continue
     fields = line.split()
     start, end = int( fields[1] ), int( fields[2] )
     if start > end: