tests/testthat/test_gliph.R

context("Read GLIPH Files")
library(LymphoSeq2)
library(tidyverse)

test_that("Reads a GLIPH files correctly", {
  gtable <- LymphoSeq2::readGliph("test_data/gliph")
  nsample <- gtable %>%
    dplyr::pull(repertoire_id) %>%
    base::unique() %>%
    base::length()
  nspec <- gtable %>%
    dplyr::pull(spec_group) %>%
    base::unique() %>%
    base::length()
  expect_equal(nsample, 2)
  expect_equal(nspec, 20)
})
shashidhar22/LymphoSeq2 documentation built on Jan. 16, 2024, 4:29 a.m.