mantispy.pp.find_perturbation_key#
- mantispy.pp.find_perturbation_key(adata, perturbation_key=None)#
Resolve which
obscolumn holds the perturbation identity.- Parameters:
- Return type:
- Returns:
The name of the
obscolumn that identifies the perturbation.- Raises:
KeyError – If
perturbation_keyis not anobscolumn, or no column was named and none ofPERTURBATION_KEYSis present.