Generate pvalues
Generate p-values for genes where larger effects are less likely to be false positives.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
effects |
Tensor
|
A tensor of effects |
required |
large_effect_percentile |
float
|
The percentile of effects that are considered large effects. Defaults to 0.9 |
0.9
|
large_effect_upper_pval |
float
|
The upper bound of the p-values for large effects. Defaults to 0.2 |
0.2
|
Returns:
Type | Description |
---|---|
torch.Tensor
|
A tensor of p-values |
Raises:
Type | Description |
---|---|
ValueError
|
If effects is not a tensor or the values themselves are not numeric |
ValueError
|
If large_effect_percentile is not between 0 and 1 |
ValueError
|
If large_effect_upper_pval is not between 0 and 1 |
Source code in yeastdnnexplorer/probability_models/generate_data.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
|