allpy
changeset 1099:71e60ae2cd1a 1.4.2
Check, whether alignment_index_markup was already created in blocks_finder.
author | Boris Burkov <BurkovBA@gmail.com> |
---|---|
date | Tue, 05 Jun 2012 15:22:43 +0400 |
parents | 6c7e74a75d13 |
children | |
files | sequence_based_blocks_search/blocks_finder.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/sequence_based_blocks_search/blocks_finder.py Tue Apr 03 12:25:56 2012 +0400 1.2 +++ b/sequence_based_blocks_search/blocks_finder.py Tue Jun 05 15:22:43 2012 +0400 1.3 @@ -464,7 +464,10 @@ 1.4 blocks = main(input_file) 1.5 if blocks == []: 1.6 sys.exit() 1.7 - aim = blocks[0].alignment.add_markup('index') #create markup 1.8 + if 'index' not in alignment.markups: 1.9 + aim = blocks[0].alignment.add_markup('index') #create markup 1.10 + else: 1.11 + aim = blocks[0].alignment.markups['index'] 1.12 file_content="" 1.13 for index, block in enumerate(blocks): 1.14 for sequence in block.sequences: