Filter dataframe by list of (protein coding) genes
Usage
filter_genes(
df,
genes_filt = Rubrary::get_PC_genes(),
gene_col = NULL,
search = FALSE
)
Arguments
- df
dataframe; gene names in
gene_col
or in rownames of dataframe- genes_filt
char vector; (protein coding) genes to include / filter by
- gene_col
string; colnames of genes, assumed
rownames(df)
if NULL- search
logical;
TRUE
to useSeurat::UpdateSymbolList
to match gene symbols better