Check the presence of the genes in the database then subsets the database to only keep these genes' data.
Arguments
- variable
character()
containing the names genes to keep in the data. The default value,NULL
, takes CT (specific) genes- data
Summarized Experiment
orSingleCellExperiment
object with valid variable names.- include_CTP
logical(1)
IfTRUE
, CTP genes are included. (FALSE
by default).
Examples
CTexploreR:::subset_database(variable = "MAGEA1", data = CTdata::GTEX_data())
#> see ?CTdata and browseVignettes('CTdata') for documentation
#> loading from cache
#> see ?CTdata and browseVignettes('CTdata') for documentation
#> loading from cache
#> class: SummarizedExperiment
#> dim: 1 32
#> metadata(0):
#> assays(1): TPM
#> rownames(1): ENSG00000198681
#> rowData names(5): external_gene_name GTEX_category q75_TPM_somatic
#> max_TPM_somatic ratio_testis_somatic
#> colnames(32): Testis Ovary ... Uterus Vagina
#> colData names(0):