Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/7fcb6f20898b
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 00:33:39 2012
Кодировка:
allpy: 7fcb6f20898b

allpy

changeset 1022:7fcb6f20898b

pair-cores: fix program fault if no high blocks were found Provide initial value for reduce() function. close #145
author Boris Nagaev <bnagaev@gmail.com>
date Wed, 14 Mar 2012 17:54:01 +0400
parents 2c8820abb367
children 4732047ae426
files pair_cores/pair_cores.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/pair_cores/pair_cores.py	Sun Mar 11 16:22:53 2012 +0400
     1.2 +++ b/pair_cores/pair_cores.py	Wed Mar 14 17:54:01 2012 +0400
     1.3 @@ -92,7 +92,7 @@
     1.4              high_blocks = block.blocks_from_homology(homology, min_width=min_width)
     1.5              high_blocks = reduce(lambda a,b:a+b,
     1.6                      (pre_block.continuous_blocks(min_width)
     1.7 -                        for pre_block in high_blocks))
     1.8 +                        for pre_block in high_blocks), [])
     1.9              high_blocks = [b for b in high_blocks if len(b.sequences) >= 2]
    1.10          if out_high_blocks_file:
    1.11              block.blocks_to_file(out_high_blocks_file, high_blocks)