tests/testthat/test-get_full_get_collapsed_gene_model_exon.R

test_that(
  "`get_full_get_collapsed_gene_model_exon()` returns tibble with expected colnames",
  {
    skip_if_offline()
    result <- get_full_get_collapsed_gene_model_exon(gencodeId = "ENSG00000203782.5")

    expect_s3_class(result, "tbl_df")

    expect_identical(
      names(result),
      c(
        "featureType",
        "end",
        "genomeBuild",
        "chromosome",
        "exonNumber",
        "geneSymbolUpper",
        "exonId",
        "datasetId",
        "start",
        "dataSource",
        "gencodeId",
        "geneSymbol",
        "gencodeVersion",
        "strand"
      )
    )
  }
)

Try the gtexr package in your browser

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

gtexr documentation built on Sept. 19, 2024, 5:06 p.m.