@@ -47,8 +47,8 @@ test_that("read_samplesheet_ loads data with no errors and returns the expected
47
47
48
48
s <- happy_samplesheet $ samplesheet
49
49
expect_is(s , " data.frame" )
50
- expect_equal(dim(s )[1 ], 4 )
51
- expect_equal(dim(s )[2 ], 5 )
50
+ expect_equal(dim(s )[1 ], 4 ) # 4 rows
51
+ expect_equal(dim(s )[2 ], 3 ) # 3 columns
52
52
53
53
r <- happy_samplesheet $ results
54
54
expect_is(r , " happy_result_list" )
@@ -57,30 +57,26 @@ test_that("read_samplesheet_ loads data with no errors and returns the expected
57
57
expect_is(r [[1 ]], " happy_result" )
58
58
expect_true(all(names(r [[1 ]]) %in% c(" summary" , " extended" , " pr_curve" )))
59
59
60
- e <- happyR :: extract_results(r , table = " summary" )
60
+ e <- extract_results(r , table = " summary" )
61
61
expect_is(e , " data.frame" )
62
62
expect_equal(dim(e )[1 ], 16 )
63
63
expect_equal(dim(e )[2 ], 18 )
64
- expect_true(" from " %in% colnames(e ))
64
+ expect_true(" happy_prefix " %in% colnames(e ))
65
65
66
- e <- happyR :: extract_results(r , table = " extended" )
66
+ e <- extract_results(r , table = " extended" )
67
67
expect_is(e , " data.frame" )
68
68
expect_equal(dim(e )[1 ], 704 )
69
69
expect_equal(dim(e )[2 ], 66 )
70
- expect_true(" from " %in% colnames(e ))
70
+ expect_true(" happy_prefix " %in% colnames(e ))
71
71
72
72
p <- r [[1 ]]$ pr_curve
73
73
expect_is(p , " environment" )
74
74
expect_true(all(names(p ) %in% c(" INDEL_SEL" , " INDEL_PASS" , " INDEL" , " all" )))
75
75
76
- e <- happyR :: extract_results(r , table = " pr.indel.pass" )
76
+ e <- extract_results(r , table = " pr.indel.pass" )
77
77
expect_is(e , " data.frame" )
78
78
expect_equal(dim(e )[1 ], 9126 )
79
79
expect_equal(dim(e )[2 ], 67 )
80
- expect_true(" from" %in% colnames(e ))
81
-
82
- expect_is(b [[1 ]], " data.frame" )
83
- expect_equal(dim(b [[1 ]])[1 ], 1 )
84
- expect_equal(dim(b [[1 ]])[2 ], 136 )
80
+ expect_true(" happy_prefix" %in% colnames(e ))
85
81
86
82
})
0 commit comments