Index
amplify(sim, factor, row_pattern, col_pattern, param)
Multiply selected marginal entries by factor.
Source code in scdesigner/src/scdesigner/transform/transform.py
24 25 26 27 28 29 30 31 32 | |
correlate(sim, factor, row_pattern, col_pattern, group=None)
Multiply selected off-diagonal entries by factor.
Source code in scdesigner/src/scdesigner/transform/transform.py
43 44 45 46 47 | |
decorrelate(sim, row_pattern, col_pattern, group=None)
Zero out selected off-diagonal entries of a covariance.
Source code in scdesigner/src/scdesigner/transform/transform.py
35 36 37 38 39 40 | |
nullify(sim, row_pattern, col_pattern, param)
Nullify marginal parameters
Zero out entries matching (row_pattern, col_pattern) for the marginal param.
Source code in scdesigner/src/scdesigner/transform/transform.py
10 11 12 13 14 15 16 17 18 19 20 21 | |
replace_param(sim, path, new_param)
Substitute a new parameter for an old one.
Use the path to the parameter starting from sim.parameters to identify the parameter to transform. Examples: ['marginal','mean'] or ['copula','group_name']
Args: sim (Simulator): The simulator object. path (Sequence[str]): The path to the parameter to transform. new_param (np.ndarray): The new parameter to substitute. For replacing a covariance structure, new_param could be a numpy array of shape (n_genes, n_genes) or a CovarianceStructure object defined by the user.
Source code in scdesigner/src/scdesigner/transform/transform.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |