Пример #1
0
def test_peptide():
    input = os.path.join(here, 'cli_input_peptide.csv')
    output = 'test_cli_output.csv'
    args = ArgparseMock(input, output, peptide=True)
    run_main(args)
    with open(output, 'r') as fh:
        rows = [r for r in csv.reader(fh)]
    print(rows)
    assert rows[1][2] == 'True'
    assert rows[2][2] == 'False'
Пример #2
0
def test_options():
    input = os.path.join(here, 'cli_input.csv')
    output = 'test_cli_output.csv'
    args = ArgparseMock(input, output, no_methionine_offset=True)
    run_main(args)
    with open(output, 'r') as fh:
        rows = [r for r in csv.reader(fh)]
    assert rows[1][-2] == 'INFERRED_MOUSE_SITE'
    assert rows[2][-2] == 'NO_MAPPING_FOUND'
    assert rows[3][-2] == 'VALID'
    assert rows[4][-2] == 'NO_MAPPING_FOUND'
Пример #3
0
def test_default():
    input = os.path.join(here, 'cli_input.csv')
    output = os.path.join(here, 'test_output.csv')
    args = ArgparseMock(input, output)
    run_main(args)
    with open(output, 'r') as fh:
        rows = [r for r in csv.reader(fh)]
    assert rows[1][-2] == 'INFERRED_MOUSE_SITE'
    assert rows[2][-2] == 'INFERRED_METHIONINE_CLEAVAGE'
    assert rows[3][-2] == 'VALID'
    assert rows[4][-2] == 'NO_MAPPING_FOUND'