allpy
changeset 227:9c7963064511
repeats: universal input format parser
author | boris <bnagaev@gmail.com> |
---|---|
date | Sat, 27 Nov 2010 18:47:13 +0300 |
parents | 54e898f96d80 |
children | 0ed41390408f |
files | repeats/test.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/repeats/test.py Sat Nov 27 18:41:20 2010 +0300 1.2 +++ b/repeats/test.py Sat Nov 27 18:47:13 2010 +0300 1.3 @@ -8,7 +8,7 @@ 1.4 for line in open(sys.argv[1]): 1.5 line = line.strip() 1.6 if line: 1.7 - c1, c2, from1, to1, from2, to2, ori1, ori2 = line.split() 1.8 + c1, c2, from1, to1, from2, to2, ori1, ori2 = line.split()[:8] 1.9 if c1 == 'DNA_1': 1.10 continue # first line 1.11 ori1 = True if ori1 == '1' else False