filter_ctd_genes: Filter genes in a CellTypeDataset

View source: R/filter_ctd_genes.R

filter_ctd_genesR Documentation

Filter genes in a CellTypeDataset

Description

Removes rows from each matrix within a CellTypeDataset (CTD) that are not within gene_subset.

Usage

filter_ctd_genes(ctd, gene_subset)

Arguments

ctd

CellTypeDataset.

gene_subset

Genes to subset to.

Value

Filtered CellTypeDataset.

Examples

 
ctd <- ewceData::ctd()
ctd <- standardise_ctd(ctd, input_species="mouse")
gene_subset <- rownames(ctd[[1]]$mean_exp)[1:100]
ctd_subset <- EWCE::filter_ctd_genes(ctd = ctd, gene_subset = gene_subset) 

NathanSkene/EWCE documentation built on Nov. 3, 2024, 8:16 a.m.