scFates.tl.test_association_covariate¶
- scFates.tl.test_association_covariate(adata, group_key, copy=False, **kwargs)¶
Separately test for associated features for each covariates on the same trajectory path.
- Parameters
- adata :
AnnData
Annotated data matrix.
- group_key :
str
key in .obs for the covariates to test.
- copy :
bool
(default:False
) Return a copy instead of writing to adata.
- **kwargs
Arguments passed to
scFates.tl.test_association()
- adata :
- Returns
adata – if copy=True it returns or else add fields to adata:
- .var[‘cov_pval’ or ‘covtrend_pval’]
pvalues extracted from tests.
- .var[‘cov_fdr’ or ‘covtrend_fdr’]
FDR extracted from the pvalues.
- .var[‘cov_signi’ or ‘covtrend_signi’]
is the feature significant.
- .var[‘A->B_lfc’]
logfoldchange in expression between covariate A and B.
- Return type