tests/testthat/test-extract_features.R

## Testing functions for extracting features ##

context("tests on feature extraction")

test_that("the extract_features() function works on example data", {
    data(sample_counts)
    data(sample_stats)
    sample_counts_nm <- normalise_by_factor(sample_counts, colSums(sample_counts))
    sample_features <- extract_features(sample_counts_nm, sample_stats)
    
    expect_that(sample_features, is_a("list"))
})

Try the cellity package in your browser

Any scripts or data that you put into this service are public.

cellity documentation built on Nov. 8, 2020, 6:11 p.m.