Skip to content

scdef.tl.get_technical_factors

get_technical_factors(model: scDEF) -> List[str]

Current model names of the factors marked technical in factor_obs.

factor_obs rows are keyed by the factor names in place when diagnostics ran; after filter_factors the model renames factors contiguously. The returned names are always the current model.factor_names entries, so they can be compared directly against the live model. Technical factors that are no longer kept by the model are omitted.

Parameters:

Name Type Description Default
model scDEF

fitted scDEF model whose factor_obs carries the flags.

required

Returns:

Type Description
List[str]

Current factor names flagged technical, or [] if none are flagged or

List[str]

diagnostics have not been computed.