Exemplo n.º 1
0
def test_parse_genes_selection(testdir, mock_testclass):
    parameters = 'parameters_selection.txt'
    copyfile(
        Path(__file__).parent.joinpath('parameters_selection.txt'), parameters)
    copyfile(Path(__file__).parent.joinpath('genes.txt'), 'genes.txt')
    selection = Path(__file__).parent.joinpath('selection.txt')
    genes = v.parse_genes(parameters, selection)
    assert genes[0] == 'YLR110C'
    assert genes[1] == 'YGL008C'
Exemplo n.º 2
0
def test_parse_genes(testdir, mock_testclass):
    parameters = 'parameters.txt'
    copyfile(Path(__file__).parent.joinpath('parameters.txt'), parameters)
    copyfile(Path(__file__).parent.joinpath('genes.txt'), 'genes.txt')
    genes = v.parse_genes(parameters)
    assert genes[0] == 'YDR524W-C'
    assert genes[1] == 'YLR355C'
    assert genes[2] == 'YLR110C'
    assert genes[3] == 'YGR192C'
    assert genes[4] == 'YGL008C'
    assert genes[5] == 'YKL060C'