Exemple #1
0
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
Exemple #2
0
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'
Exemple #3
0
def test_parse_blast_tab2(blast_tab_file):
    seq_id, hit = next(parse_blast_tab(blast_tab_file))
    assert len(hit) == 6
Exemple #4
0
def test_parse_blast_tab3(blast_tab_file):
    seq_id, hit = next(parse_blast_tab(blast_tab_file))
    assert hit[-1] == '14520'
Exemple #5
0
def test_parse_blast_tab1(blast_tab_file):
    seq_id, hit = next(parse_blast_tab(blast_tab_file))
    assert seq_id == 'M95099.1'