mantispy.io.unexpressed_genes#
- mantispy.io.unexpressed_genes(expression, cell_line, *, tpm_cutoff=0.0)[source]#
Gene symbols a cell line does not express, read from DepMap as an empirical null for hit calling.
The reference is always a DepMap expression matrix you have downloaded, so the null is tied to the screened cell line rather than to any hard-coded reference. Nothing is downloaded or re-hosted; point it at the file from the DepMap data page, such as
OmicsExpressionProteinCodingGenesTPMLogp1.csv(one row per model, gene columns named"SYMBOL (ENTREZ)", holding log2(TPM+1)). The cell line is named by its DepMap model id, DepMap’s own key, so the lookup reuses their identifier directly. A gene is unexpressed when its value is at or belowtpm_cutoff, which is zero for the zero-TPM genes PERISCOPE uses.- Parameters:
- Return type:
- Returns:
The set of unexpressed gene symbols.
- Raises:
ValueError –
cell_lineis not a row of the expression matrix.