context("quality control")
flog.threshold(WARN)
path <- system.file("extdata/16S", package = "mbtools")
files <- find_read_files(path)
test_that("we can run quality controls", {
expect_equal(nrow(files), 5)
quals <- files %>% quality_control(min_score = 20)
expect_named(quals, c(
"files", "qualities", "bases", "quality_plot",
"length_plot", "entropy_plot", "steps"
))
expect_s3_class(quals$qualities, "data.table")
expect_true(all(
table(quals$length_plot$data$file, quals$length_plot$data$cycle) == 1
))
expect_true(all(
table(quals$quality_plot$data$file, quals$quality_plot$data$cycle) == 1
))
})
flog.threshold(INFO)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.