Probability Models
Default function to adjust the mean of the perturbation effect based on the enrichment score.
All functions that are passed to generate_perturbation_effects() in the argument adjustment_function must have the same signature as this function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
binding_enrichment_data |
Tensor
|
A tensor of enrichment scores for each gene with dimensions [n_genes, n_tfs, 3] where the entries in the third dimension are a matrix with columns [label, enrichment, pvalue]. |
required |
bound_mean |
float
|
The mean for bound genes. |
required |
unbound_mean |
float
|
The mean for unbound genes. |
required |
max_adjustment |
float
|
The maximum adjustment to the base mean based on enrichment. |
required |
tf_relationships |
dict[int, list[int]], optional
|
Unused in this function. It is only here to match the signature of the other adjustment functions. |
required |
Returns:
Type | Description |
---|---|
torch.Tensor
|
Adjusted mean as a tensor. |
Source code in yeastdnnexplorer/probability_models/generate_data.py
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
|