def test_parse_blast_tab5(blast_tab_file): seq_id, hit = next( parse_blast_tab(blast_tab_file, key_func=lambda x: x.split('.')[0], ret_col=None)) assert len(hit) == 12
def test_parse_blast_tab4(blast_tab_file): seq_id, hit = next( parse_blast_tab(blast_tab_file, key_func=lambda x: x.split('.')[0])) assert seq_id == 'M95099'
def test_parse_blast_tab2(blast_tab_file): seq_id, hit = next(parse_blast_tab(blast_tab_file)) assert len(hit) == 6
def test_parse_blast_tab3(blast_tab_file): seq_id, hit = next(parse_blast_tab(blast_tab_file)) assert hit[-1] == '14520'
def test_parse_blast_tab1(blast_tab_file): seq_id, hit = next(parse_blast_tab(blast_tab_file)) assert seq_id == 'M95099.1'