mecfs_bio.build_system.task.specificity_cepo_task
Classes:
-
PrepareSpecificityCepo–Task to compute the specificity of genes for cell types using the CEPO specificity metric.
Attributes:
PrepareSpecificityCepo
Bases: Task
Task to compute the specificity of genes for cell types using the CEPO specificity metric.
The CEPO metric is based on differential stability: a gene is considered specific for a cell type if its expression in stable in that cell type, but not other cell types
see Kim, Hani Jieun, et al. "Cepo uncovers cell identity through differential stability." bioRxiv (2021): 2021-01.
Methods:
Attributes:
-
cell_col(str) – -
cell_type_col(str) – -
count_col(str) – -
deps(list[Task]) – -
epsilon(float) – -
gene_col(str) – -
long_count_df_task(Task) – -
meta(Meta) – -
min_cells_per_type(int) – -
out_format(OutFormat) – -
post_pipe(DataProcessingPipe) – -
pre_pipe(DataProcessingPipe) –
create
classmethod
create(
asset_id: str,
long_count_df_task: Task,
cell_type_col: str,
count_col: str,
gene_col: str,
cell_col: str,
min_cells_per_type: int,
epsilon: float = 0.0001,
out_format: OutFormat = ParquetOutFormat(),
pre_pipe: DataProcessingPipe = IdentityPipe(),
post_pipe: DataProcessingPipe = IdentityPipe(),
)