dynamo.pp.filter_genes_by_pattern
- dynamo.pp.filter_genes_by_pattern(adata, patterns=('MT-', 'RPS', 'RPL', 'MRPS', 'MRPL', 'ERCC-'), drop_genes=False)[source]
Utility function to filter mitochondria, ribsome protein and ERCC spike-in genes, etc.
- Parameters:
- Return type:
- Returns:
A list of indices of matched genes if drop_genes is False. Otherwise, returns none.