This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
961742d
commit 4548826
Showing
1 changed file
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
context("MaxQuant parser") | ||
|
||
test_that("all needed input parameteres are given", { | ||
expect_error(wilson::parse_MaxQuant(), "The proteinGroups file was not given") | ||
expect_error(wilson::parse_MaxQuant(proteinGroups_in = "./path/path/"), "The summary file was not given") | ||
expect_error(wilson::parse_MaxQuant(proteinGroups_in = "./path/path/", summary_in = "./path/path/"), | ||
expect_error(parse_MaxQuant(), "The proteinGroups file was not given") | ||
expect_error(parse_MaxQuant(proteinGroups_in = "./path/path/"), "The summary file was not given") | ||
expect_error(parse_MaxQuant(proteinGroups_in = "./path/path/", summary_in = "./path/path/"), | ||
"The output file was not given") | ||
expect_error(wilson::parse_MaxQuant(proteinGroups_in = "./path/path/", summary_in = "./path/path/", | ||
expect_error(parse_MaxQuant(proteinGroups_in = "./path/path/", summary_in = "./path/path/", | ||
outfile = "./path/path/"), "The output_reduced file was not given") | ||
}) | ||
|
||
test_that("mq_parser", { | ||
|
||
expect_error(wilson::parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", | ||
summary_in = "summary_test_2.txt", | ||
expect_error(parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", summary_in = "summary_test_2.txt", | ||
outfile = "./out", outfile_reduced = "./outres" ), | ||
"wrong format on summary file: column \'Experiment\' misssing") | ||
expect_true(wilson::parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", | ||
summary_in = "summary_test.txt", | ||
expect_true(parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", summary_in = "summary_test.txt", | ||
outfile = "./out", outfile_reduced = "./outres", config = "success_config.json")) | ||
expect_error(wilson::parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", | ||
summary_in = "summary_test.txt", | ||
expect_error(parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", summary_in = "summary_test.txt", | ||
outfile = "./out", outfile_reduced = "./outres", config = "" ), | ||
"Could not read config file") | ||
expect_error(wilson::parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", | ||
summary_in = "summary_test.txt", | ||
expect_error(parse_MaxQuant(proteinGroups_in = "proteinGroups_test.txt", summary_in = "summary_test.txt", | ||
outfile = "./out", outfile_reduced = "./outres", config = "fail_config.json" ), | ||
"reduced_list is missing in config file") | ||
}) |