mecfs_bio.asset_generator.mixer_asset_generator
Asset generator to use the MiXeR Gaussian mixture to model the genetic architecture of a trait.
Classes:
Functions:
-
bivariate_mixer_asset_generator–Asset generator to run bivariate mixer tasks on two traits. Requires the output of univariate mixer to run.
-
univariate_mixer_asset_generator–Asset generator to apply univariate MiXeR to GWAS summary statistics.
BivariateMixerTasks
Methods:
-
terminal_tasks–
Attributes:
-
bivariate_run_tasks(Mapping[int, Task]) – -
combined(MixerBivariateCombine) – -
result_table_markdown_task(Task) – -
results(MixerBivariateSummarizeResultsTask) – -
trait_1_tasks(UnivariateMixerTasks) – -
trait_2_task(UnivariateMixerTasks) –
terminal_tasks
UnivariateMixerTasks
Methods:
-
terminal_tasks–
Attributes:
-
combine_task(Task) – -
power_plot_task(Task) – -
qq_bin_plot_task(Task) – -
qq_plot_task(Task) – -
result_markdown_table_task(Task) – -
results_task(MixerUnivariateSummarizeResultsTask) – -
run_tasks(Mapping[int, MixerTask]) –
terminal_tasks
bivariate_mixer_asset_generator
bivariate_mixer_asset_generator(
base_name: str,
trait_1_tasks: UnivariateMixerTasks,
trait_2_tasks: UnivariateMixerTasks,
extra_fit_args: Sequence[str] = tuple(),
reps: Sequence[int] = tuple(range(1, 21)),
apply_extract_to_test: bool = False,
plot_override_trait_1_name: str | None = None,
plot_override_trait_2_name: str | None = None,
) -> BivariateMixerTasks
Asset generator to run bivariate mixer tasks on two traits. Requires the output of univariate mixer to run.
Analogously to univariate MiXeR, runs 20 times on 20 different random subsets of the reference panel of genetic variants.
Setting apply_extract_to_test to False will evaluate the MiXeR models on the full reference panel. This will use a very large amount of RAM, but result in more accurate output parameters.
Source code in mecfs_bio/asset_generator/mixer_asset_generator.py
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 229 230 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 | |
univariate_mixer_asset_generator
univariate_mixer_asset_generator(
base_name: str,
name_in_plot: str,
trait_1_source: MixerDataSource,
reference_data_directory_task: Task,
reps: Sequence[int] = tuple(range(1, 21)),
threads: int = 4,
)
Asset generator to apply univariate MiXeR to GWAS summary statistics.
See: Holland, Dominic, et al. "Beyond SNP heritability: Polygenicity and discoverability of phenotypes estimated with a univariate Gaussian mixture model." PLoS Genetics 16.5 (2020): e1008612.
Source code in mecfs_bio/asset_generator/mixer_asset_generator.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |