Last updated: 2026-11-04
Checks: 5 2
Knit directory: coderepo-local/
This reproducible R Markdown analysis was created with workflowr (version 1.7.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
The R Markdown is untracked by Git. To know which version of the R
Markdown file created these results, you’ll want to first commit it to
the Git repo. If you’re still working on the analysis, you can ignore
this warning. When you’re finished, you can run
wflow_publish to commit the R Markdown file and build the
HTML.
The global environment had objects present when the code in the R
Markdown file was run. These objects can affect the analysis in your R
Markdown file in unknown ways. For reproduciblity it’s best to always
run the code in an empty environment. Use wflow_publish or
wflow_build to ensure that the code is always run in an
empty environment.
The following objects were defined in the global environment when these results were created:
| Name | Class | Size |
|---|---|---|
| across_seed_specs | list | 7 Kb |
| across_seed_summary | data.frame | 4.2 Kb |
| across_seed_summary_table | data.frame | 4.2 Kb |
| alpha_summary | data.frame | 17.5 Kb |
| appendix_b_class_counts | function | 11.9 Kb |
| APPENDIX_B_FASHR_REMOTE_SHA | character | 152 bytes |
| APPENDIX_B_FASHR_VERSION | character | 112 bytes |
| assert_scalar_number | function | 29.8 Kb |
| at005 | data.frame | 2.9 Kb |
| background_variant_count | integer | 56 bytes |
| bf_below | integer | 56 bytes |
| bf_grid | data.frame | 195.9 Kb |
| broad_table | data.frame | 1.7 Kb |
| build_appendix_b_datasets | function | 31.5 Kb |
| build_comparison_data | function | 105.6 Kb |
| build_comparison_plot | function | 207.7 Kb |
| c1_contract | function | 13.1 Kb |
| c1_fit_from_likelihood | function | 15.1 Kb |
| c1_fit_models | function | 10.7 Kb |
| c1_gaussian_likelihood | function | 25.8 Kb |
| c1_gaussian_setup | function | 15.7 Kb |
| c1_grid_long | function | 65.8 Kb |
| c1_load_display | function | 8.2 Kb |
| c1_load_report | function | 142.6 Kb |
| c1_plot_alpha | function | 33.5 Kb |
| c1_plot_grid | function | 21.4 Kb |
| c1_plot_theme | function | 11.4 Kb |
| c1_run_seed | function | 63.8 Kb |
| c1_sha | function | 4 Kb |
| c1_summary | function | 129 Kb |
| c1_validate | function | 163.8 Kb |
| c1_write | function | 3.5 Kb |
| c1j_contract | function | 3.8 Kb |
| c1j_load_display | function | 48.3 Kb |
| c1j_load_report | function | 145.2 Kb |
| c1j_select_examples | function | 82.4 Kb |
| c1j_source_paths | function | 4 Kb |
| c1j_summarize | function | 3.7 Kb |
| c1j_validate | function | 132.9 Kb |
| cache | list | 46.2 Kb |
| cache_directory | character | 240 bytes |
| cache_path | character | 248 bytes |
| cache_validation | data.frame | 1.9 Kb |
| capture_warnings | function | 3.8 Kb |
| category_labels | character | 720 bytes |
| category_order | character | 304 bytes |
| chosen | integer | 96 bytes |
| compact_table | data.frame | 1.7 Kb |
| comparison_experiment | character | 232 bytes |
| comparison_summary | data.frame | 6.5 Kb |
| conditional_jaccard_range | numeric | 64 bytes |
| configuration | list | 2.9 Kb |
| count_above_one | function | 10.9 Kb |
| cumulative_lfdr_calls | function | 53.4 Kb |
| current_input_md5 | character | 672 bytes |
| describe_fold | function | 3.9 Kb |
| design_summary | data.frame | 2.5 Kb |
| design_table | data.frame | 2.7 Kb |
| discovery_frequency_summary | data.frame | 2 Kb |
| discovery_frequency_summary_table | data.frame | 2 Kb |
| discovery_plot_data | data.frame | 6.3 Kb |
| display | list | 41 Kb |
| displayed_sets | character | 352 bytes |
| enhancer_forest | function | 156.6 Kb |
| enrichment | data.frame | 19.9 Kb |
| enrichment_lookup | function | 5.4 Kb |
| evaluate_appendix_b_discoveries | function | 10.7 Kb |
| ever_discovered | integer | 56 bytes |
| ever_discovered_additional | integer | 56 bytes |
| ever_discovered_full | integer | 56 bytes |
| example_curves | data.frame | 41.7 Kb |
| example_data | data.frame | 9.8 Kb |
| example_members | data.frame | 7.3 Kb |
| example_observed | data.frame | 9.2 Kb |
| expected_alpha | numeric | 56 bytes |
| expected_cache_id | character | 152 bytes |
| expected_comparison_ids | character | 400 bytes |
| expected_fashr_provenance | list | 824 bytes |
| expected_full_discovered_genes | integer | 56 bytes |
| expected_full_discovered_pairs | integer | 56 bytes |
| expected_full_genes | integer | 56 bytes |
| expected_full_pi0 | numeric | 56 bytes |
| expected_full_units | integer | 56 bytes |
| expected_gene_counts | integer | 480 bytes |
| expected_grid | numeric | 464 bytes |
| expected_pair_counts | integer | 480 bytes |
| expected_penalty | numeric | 56 bytes |
| expected_seeds | integer | 448 bytes |
| expected_selected_units | integer | 56 bytes |
| expected_setting_ids | character | 416 bytes |
| expected_source_hashes | character | 712 bytes |
| expected_source_sizes | numeric | 360 bytes |
| expected_variant_counts | integer | 528 bytes |
| experiment | character | 232 bytes |
| extract_fash_lfdr | function | 10 Kb |
| extract_fash_null_weight | function | 14.9 Kb |
| fashr_provenance | function | 7 Kb |
| fdr_curves | data.frame | 18 Kb |
| find_workflowr_root | function | 22.4 Kb |
| fit_appendix_b_models | function | 22.4 Kb |
| focused_alpha_curve | function | 22.3 Kb |
| fold_value | function | 1.6 Kb |
| format_decimal | function | 5.6 Kb |
| format_integer | function | 4.6 Kb |
| format_metric_five_number | function | 15 Kb |
| format_range | function | 1.9 Kb |
| full_data_status | logical | 24.9 Kb |
| full_discovered_genes | data.frame | 83.4 Kb |
| full_discovery_summary | data.frame | 1.6 Kb |
| full_pi0 | numeric | 56 bytes |
| full_status | logical | 24.9 Kb |
| gene_discovery_frequency | data.frame | 547.9 Kb |
| grid_comparisons | data.frame | 4.9 Kb |
| grid_results | data.frame | 296.6 Kb |
| grid_summary | data.frame | 28 Kb |
| group_display_labels | character | 752 bytes |
| labels | character | 336 bytes |
| labels_above_one | function | 3.6 Kb |
| lfdr_agreement_plot_data | data.frame | 5 Kb |
| lfdr_mae_range | numeric | 64 bytes |
| lfdr_spearman_range | numeric | 64 bytes |
| location_curves | data.frame | 71.9 Kb |
| location_power | list | 817.6 Kb |
| maximum_variant_multiplicity | integer | 56 bytes |
| mc_2000_vs_3000 | data.frame | 4.2 Kb |
| mc_3000_vs_5000 | data.frame | 4.2 Kb |
| mechanism_labels | character | 528 bytes |
| method_colors | character | 648 bytes |
| method_labels | character | 864 bytes |
| method_levels | character | 288 bytes |
| method_lines | character | 792 bytes |
| method_linetypes | character | 472 bytes |
| method_linewidths | numeric | 360 bytes |
| method_shapes | integer | 352 bytes |
| metric_colors | character | 728 bytes |
| metric_five_number | function | 18.3 Kb |
| minimum_overlap | integer | 56 bytes |
| not_estimable_note | function | 4.9 Kb |
| null_curves | data.frame | 29.2 Kb |
| null_weight_plot_data | data.frame | 3 Kb |
| observations | data.frame | 4.7 Kb |
| package | character | 112 bytes |
| pair_lfsr | data.frame | 826.1 Kb |
| panel | data.frame | 11.1 Kb |
| panel_ids | character | 680 bytes |
| panel_labels | character | 544 bytes |
| panel_table | function | 2.8 Kb |
| peak_curves | data.frame | 29.4 Kb |
| peak_difference | function | 36.5 Kb |
| peak_labels | data.frame | 622.4 Kb |
| peak_power | list | 317.6 Kb |
| pi0_difference_range | numeric | 64 bytes |
| pi0_range | numeric | 64 bytes |
| plot_discovery_robustness | function | 18.6 Kb |
| plot_fash_only | function | 38.2 Kb |
| plot_method_comparison | function | 3.3 Kb |
| plot_null_weight_stability | function | 11.4 Kb |
| plot_paired_lfdr_agreement | function | 12.8 Kb |
| plot_seed_12345_lfdr | function | 7.4 Kb |
| plot_variants_per_gene_histogram | function | 7.3 Kb |
| population | data.frame | 278.5 Kb |
| population_summary | data.frame | 1.9 Kb |
| population_table | data.frame | 1.8 Kb |
| power_curves | data.frame | 18 Kb |
| predictions | data.frame | 33 Kb |
| primary_states | character | 256 bytes |
| project_root | character | 112 bytes |
| r3c_assert | function | 7.1 Kb |
| r3c_base | function | 180.2 Kb |
| r3c_context | function | 17.9 Kb |
| r3c_contract | function | 37.8 Kb |
| r3c_curves | function | 146.5 Kb |
| r3c_direct_payload | function | 3.9 Kb |
| r3c_direct_scores | function | 9.3 Kb |
| r3c_fit_linear | function | 11.2 Kb |
| r3c_linear_scores | function | 7.6 Kb |
| r3c_load_report | function | 336.3 Kb |
| r3c_load_truth_examples | function | 688.6 Kb |
| r3c_location_power | function | 403.4 Kb |
| r3c_manifest | function | 57.7 Kb |
| r3c_peak_power | function | 608.2 Kb |
| r3c_plot_stage1 | function | 366.7 Kb |
| r3c_scores_from_fdr | function | 46.2 Kb |
| r3c_sha | function | 14.6 Kb |
| r3c_summarize | function | 187.8 Kb |
| r3c_validate_direct | function | 197.6 Kb |
| r3c_validate_inputs | function | 29.1 Kb |
| r3c_validate_record | function | 234.7 Kb |
| r3c_validate_scores | function | 59.4 Kb |
| r3c_write | function | 4.3 Kb |
| r3ts10_assert | function | 7.1 Kb |
| r3ts10_contract | function | 46.4 Kb |
| r3ts10_expected_keys | function | 2 Kb |
| r3ts10_format_stage2_table | function | 32.9 Kb |
| r3ts10_functional_cfsr_table | function | 10.8 Kb |
| r3ts10_load_report | function | 89.5 Kb |
| r3ts10_migrate_base_record | function | 10.5 Kb |
| r3ts10_plot_stage1 | function | 47.7 Kb |
| r3ts10_replicate_names | function | 3 Kb |
| r3ts10_require_base_environment | function | 3.8 Kb |
| r3ts10_serialized_object_md5 | function | 4.8 Kb |
| r3ts10_sha256 | function | 8.1 Kb |
| r3ts10_show_table | function | 11.7 Kb |
| r3ts10_stage1_alpha_by_seed | function | 12.9 Kb |
| r3ts10_stage1_at_alpha | function | 9.7 Kb |
| r3ts10_stage2_display_values | function | 67.9 Kb |
| r3ts10_summarize | function | 55 Kb |
| r3ts10_validate_added_inputs | function | 27.9 Kb |
| r3ts10_validate_formal_configuration | function | 17.3 Kb |
| r3ts10_validate_record | function | 38.7 Kb |
| r3ts10_write_rds | function | 4.9 Kb |
| r4_sensitivity_cache_dir | character | 232 bytes |
| r5_blue | character | 112 bytes |
| r5_green | character | 112 bytes |
| r5_orange | character | 112 bytes |
| r5_theme | theme;ggplot2::theme;gg;S7_object | 15.3 Mb |
| range_above_one | function | 29.5 Kb |
| raw_zero | integer | 56 bytes |
| read_required_csv | function | 10.9 Kb |
| read_required_rds | function | 8.3 Kb |
| reference_color | character | 112 bytes |
| render_scrollable_table | function | 45.3 Kb |
| repeated_variant_assignment_range | integer | 56 bytes |
| repeated_variant_assignments | integer | 448 bytes |
| report | list | 175.6 Mb |
| require_appendix_b_fashr | function | 6.6 Kb |
| require_reporting_package | function | 8.5 Kb |
| required_lfdr_columns | character | 776 bytes |
| required_seed_columns | character | 2.1 Kb |
| required_seed_files | character | 952 bytes |
| runtime | data.frame | 1.1 Kb |
| sampling_runtime_seconds | numeric | 56 bytes |
| seed | integer | 56 bytes |
| seed_12345_display | data.frame | 2 Kb |
| seed_12345_lfdr | data.frame | 1.7 Mb |
| seed_12345_plot_data | data.frame | 1.7 Mb |
| seed_12345_summary | data.frame | 4.4 Kb |
| seed_12345_table | data.frame | 2 Kb |
| seed_configurations | list | 889.1 Kb |
| seed_directories | character | 19.6 Kb |
| seed_index | integer | 56 bytes |
| seed_selections | list | 148 Mb |
| seed_summary | data.frame | 19.8 Kb |
| selected_examples | data.frame | 2.3 Kb |
| selection | data.frame | 1.5 Mb |
| sensitivity | list | 776 bytes |
| sensitivity_summary | function | 1.9 Kb |
| set_display_labels | character | 816 bytes |
| set_metadata | data.frame | 1.5 Kb |
| set_rows | function | 15.9 Kb |
| set_size | function | 4.7 Kb |
| sha256_file | function | 39.3 Kb |
| shared_configuration | list | 8.4 Kb |
| stage1_alpha005 | data.frame | 4 Kb |
| stage1_summary | data.frame | 42 Kb |
| stage1_value | function | 20.9 Kb |
| stage2_summary | data.frame | 4.6 Kb |
| stored_source_hashes | character | 712 bytes |
| stored_source_paths | character | 712 bytes |
| stored_source_sizes | numeric | 360 bytes |
| summarize_appendix_b_grid_fit | function | 11.7 Kb |
| summarize_metric | function | 36 Kb |
| summary_table | data.frame | 6.8 Kb |
| summary_table_html | knitr_kable | 8.4 Kb |
| tab | data.frame | 1.6 Kb |
| thinned_discovery_range | integer | 56 bytes |
| transient_examples | data.frame | 1.9 Kb |
| truth | data.frame | 83.4 Kb |
| truth_example_pool | data.frame | 940.7 Kb |
| value005 | function | 17.8 Kb |
| variant_count_by_gene | data.frame | 473 Kb |
| variant_count_quantiles | numeric | 96 bytes |
| variant_count_summary | data.frame | 1.6 Kb |
| variant_count_summary_table | data.frame | 1.6 Kb |
| variant_count_values | integer | 24.9 Kb |
| variant_histogram_data | data.frame | 473 Kb |
| workflowr_root | character | 168 bytes |
The command set.seed(20251109) was run prior to running
the code in the R Markdown file. Setting a seed ensures that any results
that rely on randomness, e.g. subsampling or permutations, are
reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version bfc8f00. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for
the analysis have been committed to Git prior to generating the results
(you can use wflow_publish or
wflow_git_commit). workflowr only checks the R Markdown
file, but you know if there are other scripts or data files that it
depends on. Below is the status of the Git repository when the results
were generated:
Ignored files:
Ignored: .DS_Store
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: Rplots.pdf
Ignored: analysis/.DS_Store
Ignored: analysis/.Rhistory
Ignored: code/.DS_Store
Ignored: code/.Rhistory
Ignored: code/revision_simulations/.DS_Store
Ignored: data/appendixB/
Ignored: data/dynamic_eQTL_real/
Ignored: data/revision_simulations/
Ignored: data/toy_example/
Ignored: output/dynamic_eQTL_real/
Ignored: output/pdf/
Ignored: output/playwright/
Ignored: output/revision_simulations/
Ignored: scripts/
Untracked files:
Untracked: analysis/balanced_variant_thinning.rmd
Untracked: analysis/enhancer_enrichment.rmd
Untracked: analysis/evaluation_grid_mc_sensitivity.rmd
Untracked: analysis/functional_testing_simulation.rmd
Untracked: analysis/matched_fash_linear_real_data.rmd
Untracked: code/revision_simulations/internal/appendix_c1_j1000/
Untracked: code/revision_simulations/internal/per_unit_enhancer_enrichment/
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/compare_corshrink_versions.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/diagnose_discordant_calls.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/diagnose_smooth_mismatch.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/extract_perunit_lfdr.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_call_venns.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_class_variograms.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_corshrink_result.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_corshrink_versions.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_cs_vs_diagonal.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_day0_day1_distribution.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_mechanism_summary.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_perunit_variogram.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_strober_concordance.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/plot_three_models.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/prepare_reference_sets.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/prototype_corshrink.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/recover_design_factor.R
Untracked: code/revision_simulations/internal/per_unit_expression_correlation/test_corshrink_reimplementation.R
Untracked: code/revision_simulations/internal/posterior_interval_coverage/
Untracked: code/revision_simulations/internal/r3_stage1_method_comparison/plot_pi0_before_after.py
Unstaged changes:
Modified: analysis/about.Rmd
Modified: analysis/appendixB.rmd
Modified: analysis/dynamic_eQTL_real.rmd
Deleted: analysis/dynamic_eQTL_real_cl.rmd
Deleted: analysis/dynamic_eQTL_real_full.rmd
Modified: analysis/index.Rmd
Modified: analysis/license.Rmd
Modified: analysis/nonlinear_dynamic_eQTL_real.Rmd
Deleted: analysis/nonlinear_dynamic_eQTL_real_cl.Rmd
Deleted: analysis/nonlinear_dynamic_eQTL_real_full.rmd
Deleted: analysis/revision_balanced_variant_thinning.rmd
Deleted: analysis/revision_combined_spiky_genotype_simulation.rmd
Deleted: analysis/revision_correlated_error_simulation.rmd
Deleted: analysis/revision_enhancer_enrichment.rmd
Deleted: analysis/revision_enhancer_enrichment_cl.rmd
Deleted: analysis/revision_functional_testing_simulation.rmd
Deleted: analysis/revision_genotype_level_simulation.rmd
Deleted: analysis/revision_internal_baseline_ld_variant_enrichment.rmd
Deleted: analysis/revision_internal_correlated_likelihood_sensitivity.rmd
Deleted: analysis/revision_internal_correlated_permutation_discoveries.rmd
Deleted: analysis/revision_internal_evaluation_grid_mc_sensitivity.rmd
Deleted: analysis/revision_internal_evaluation_grid_mc_sensitivity_middle_4_11.rmd
Deleted: analysis/revision_internal_fash_cl_manuscript_impact.rmd
Deleted: analysis/revision_internal_fash_cl_variant_enrichment_comparison.rmd
Deleted: analysis/revision_internal_fash_discovery_variant_count.rmd
Deleted: analysis/revision_internal_fash_knockoff.rmd
Deleted: analysis/revision_internal_fash_linear_real_data_ablation.rmd
Deleted: analysis/revision_internal_fash_temporal_class_enhancer_enrichment.rmd
Deleted: analysis/revision_internal_fashr_correlated_observation_model.rmd
Deleted: analysis/revision_internal_mashr_mean_z_null_correlation.rmd
Deleted: analysis/revision_internal_matched_fash_linear_real_data.rmd
Deleted: analysis/revision_internal_matched_fash_linear_real_data_cl.rmd
Deleted: analysis/revision_internal_observational_null_set_pilot.rmd
Deleted: analysis/revision_internal_one_variant_per_gene_refit.rmd
Deleted: analysis/revision_internal_r1_normality_assumption.rmd
Deleted: analysis/revision_internal_r3_full_calibration.rmd
Deleted: analysis/revision_internal_r3_ideal_gaussian_measurement.rmd
Deleted: analysis/revision_internal_r3_truth_specification_pilot.rmd
Deleted: analysis/revision_internal_real_genotype_simulation.rmd
Deleted: analysis/revision_internal_roadmap_enhancer_exploration.rmd
Deleted: analysis/revision_internal_small_m_clean_working_null_sensitivity.rmd
Deleted: analysis/revision_internal_small_m_matched_null_eb_sensitivity.rmd
Deleted: analysis/revision_internal_targeted_broad_calibration.rmd
Deleted: analysis/revision_internal_temporal_class_roadmap_enrichment.rmd
Deleted: analysis/revision_internal_three_likelihood_comparison.rmd
Deleted: analysis/revision_internal_twenty_variant_per_gene_refit.rmd
Deleted: analysis/revision_internal_variant_annotation_enrichment.rmd
Deleted: analysis/revision_internal_zero_intercept_correlation.rmd
Deleted: analysis/revision_ld_tagging_switch_example.rmd
Deleted: analysis/toy_example.rmd
Modified: code/figure_exports/pages/export_revision_balanced_variant_thinning.R
Modified: code/figure_exports/pages/export_revision_enhancer_enrichment.R
Modified: code/figure_exports/pages/export_revision_functional_testing_simulation.R
Modified: code/figure_exports/pages/export_revision_internal_evaluation_grid_mc_sensitivity.R
Modified: code/figure_exports/pages/export_revision_internal_matched_fash_linear_real_data.R
Modified: code/revision_simulations/r5_one_variant_per_gene/reporting.R
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
There are no past versions. Publish this analysis with
wflow_publish() to start tracking its development.
Both FASH fits use the same 1,009,173 time-specific-PC effect
estimates, standard errors, exact constant null, 52-point one-day
predictive-SD grid, betaprec=0, pred_step=1,
penalty=10, corrected BF adjustment, and cumulative-lfdr
FDR 0.05.
For FASH-linear,
\[ \beta_j(t)=a_j+b_j(t-t_{j,\min}),\qquad b_j\sim\sum_{k=1}^{51}\pi_k N\!\left(0,\left\{s_k/\mathrm{pred\_step}\right\}^2\right), \]
where \(s_k=\operatorname{SD}(b_j\,\mathrm{pred\_step})\)
is sd_linear_step. The exact-null component is \(s_0=0\). Its 51 positive values are
numerically identical to the IWP1 psd grid.
The fitting code is shown below.
# Match the predictive-SD grid and fitting options to the IWP1 reference fit.
matched_grid <- as.numeric(current_raw$psd_grid)
matched_pred_step <- as.numeric(current_raw$settings$pred_step)
matched_penalty <- as.integer(current_raw$settings$penalty)
matched_betaprec <- as.numeric(current_raw$settings$betaprec)
matched_likelihood <- as.character(current_raw$settings$likelihood)
# Fit the exact-null plus 51-component linear-slope mixture.
linear_raw <- fit_linear_mixture_fash_from_stats(
statistics = statistics,
grid = matched_grid,
pred_step = matched_pred_step,
penalty = matched_penalty,
statistic_time_span = 15,
n_time = 16
)
# Record the matched likelihood settings in the fitted object.
linear_raw$settings$betaprec <- matched_betaprec
linear_raw$settings$likelihood <- matched_likelihood
# Apply the same corrected Bayes-factor adjustment used for FASH-IWP1.
linear_bf <- BF_update_linear_mixture_fash(linear_raw)
settings_to_report <- matched_settings_table[, c(
"setting", "fash_iwp1", "fash_linear", "alignment"
)]
names(settings_to_report) <- c(
"Setting", "FASH-IWP1", "FASH-linear", "Alignment"
)
render_scrollable_table_matched(
settings_to_report,
caption = "Table 1. Matched data, prior-scale, fitting, and discovery settings.",
minimum_width = "1040px"
)
| Setting | FASH-IWP1 | FASH-linear | Alignment |
|---|---|---|---|
| Tested units | 1,009,173 | 1,009,173 | Identical |
| Time grid | 0:15 | 0:15 | Identical |
| Likelihood | Gaussian | Gaussian | Identical |
| Null trajectory | Unrestricted constant | Unrestricted constant | Identical |
| Alternative family | IWP1 Gaussian process mixture | Zero-centered Gaussian slope mixture | Matched scale; different covariance geometry |
| Scale parameter | psd | SD(beta * pred_step) | Equivalent one-step SD |
| Grid components | 52 | 52 | Identical |
| Positive grid range | 0.006738 to 1.0 | 0.006738 to 1.0 | Identical |
| pred_step | 1 | 1 | Identical |
| betaprec | 0 | 0 | Identical |
| penalty | 10 | 10 | Identical |
| IWP basis functions | 20 | Not used: exact rank-one linear kernel | Not applicable |
| FDR rule | Cumulative lfdr at 0.05 | Cumulative lfdr at 0.05 | Identical |
The scientific selection rules used below are:
alpha <- 0.05
iwp1_bf_indices <- select_cumulative_lfdr_calls(
fash_iwp1_bf$lfdr,
alpha
)
linear_bf_indices <- select_cumulative_lfdr_calls(
fash_linear_bf$lfdr,
alpha
)
strober_quadratic_discoveries <- subset(strober_quadratic, eFDR <= alpha)
strober_linear_discoveries <- subset(strober_linear, eFDR <= alpha)
After BF adjustment, FASH-IWP1 identifies 9,214 pairs, 1,176 genes, and 9,148 unique variants. FASH-linear identifies 14,902 pairs, 1,663 genes, and 14,761 unique variants.
render_scrollable_table_matched(
discovery_counts_display,
caption = "Table 2. Raw and BF-adjusted cumulative-lfdr FDR-0.05 discovery counts.",
digits = 6L,
minimum_width = "820px"
)
| Method | Adjustment | Pairs | Genes | Unique variants | Estimated pi0 |
|---|---|---|---|---|---|
| FASH-IWP1 | Raw | 43,860 | 3,258 | 42,893 | 0.42899 |
| FASH-IWP1 | BF-adjusted | 9,214 | 1,176 | 9,148 | 0.938159 |
| FASH-linear | Raw | 60,188 | 3,863 | 58,570 | 0.457235 |
| FASH-linear | BF-adjusted | 14,902 | 1,663 | 14,761 | 0.919253 |
The directional coverage is the fraction of each IWP discovery set also found by FASH-linear.
render_scrollable_table_matched(
iwp1_linear_proportion_display,
caption = "Table 3. BF-adjusted FASH-IWP1 discoveries covered by BF-adjusted FASH-linear at the three reporting levels.",
minimum_width = "860px"
)
| Level | FASH-linear | FASH-IWP1 | Intersection | FASH-IWP1 covered by linear |
|---|---|---|---|---|
| Pairs | 14,902 | 9,214 | 8,530 | 92.6% |
| Genes | 1,663 | 1,176 | 1,112 | 94.6% |
| Variants | 14,761 | 9,148 | 8,468 | 92.6% |
render_scrollable_table_matched(
iwp2_linear_proportion_display,
caption = "Table 4. BF-adjusted FASH-IWP2 discoveries covered by BF-adjusted FASH-linear at the three reporting levels.",
minimum_width = "860px"
)
| Level | FASH-linear | FASH-IWP2 | Intersection | FASH-IWP2 covered by linear |
|---|---|---|---|---|
| Pairs | 14,902 | 44 | 21 | 47.7% |
| Genes | 1,663 | 9 | 6 | 66.7% |
| Variants | 14,761 | 44 | 21 | 47.7% |
FASH-linear covers 92.6% of the FASH-IWP1 pair discoveries and 47.7% of the FASH-IWP2 pair discoveries.
The following Venn diagrams extend the real-data comparison by adding BF-adjusted FASH-linear to Strober quadratic, Strober linear, and BF-adjusted FASH-IWP1. Strober discoveries use eFDR at most 0.05.
pair_sets <- list(
`Strober quad.` =
venn_sets$`Gene-variant pairs`$`Strober quadratic`,
`Strober linear` =
venn_sets$`Gene-variant pairs`$`Strober linear`,
`FASH-linear` =
venn_sets$`Gene-variant pairs`$`FASH-linear BF`,
`FASH-IWP1` =
venn_sets$`Gene-variant pairs`$`FASH-IWP1 BF`
)
ggVennDiagram::ggVennDiagram(
pair_sets,
label = "count",
label_alpha = 0,
label_size = 3.7,
set_size = 3.8,
edge_size = 0.8
) +
ggplot2::scale_fill_gradient(low = "#f7fbff", high = "#2171b5") +
ggplot2::theme(
legend.position = "right",
plot.margin = ggplot2::margin(20, 40, 20, 40)
)
Figure 1. Gene-variant-pair overlap among Strober quadratic, Strober linear, BF-adjusted FASH-IWP1, and BF-adjusted FASH-linear. FASH sets use cumulative-lfdr FDR 0.05; Strober sets use eFDR 0.05.
gene_sets <- list(
`Strober quad.` = venn_sets$Genes$`Strober quadratic`,
`Strober linear` = venn_sets$Genes$`Strober linear`,
`FASH-linear` = venn_sets$Genes$`FASH-linear BF`,
`FASH-IWP1` = venn_sets$Genes$`FASH-IWP1 BF`
)
ggVennDiagram::ggVennDiagram(
gene_sets,
label = "count",
label_alpha = 0,
label_size = 3.7,
set_size = 3.8,
edge_size = 0.8
) +
ggplot2::scale_fill_gradient(low = "#f7fbff", high = "#2171b5") +
ggplot2::theme(
legend.position = "right",
plot.margin = ggplot2::margin(20, 40, 20, 40)
)
Figure 2. Gene-level overlap among Strober quadratic, Strober linear, BF-adjusted FASH-IWP1, and BF-adjusted FASH-linear. A gene enters a set when at least one of its tested variants is discovered by that method.
variant_sets <- list(
`Strober quad.` = venn_sets$Variants$`Strober quadratic`,
`Strober linear` = venn_sets$Variants$`Strober linear`,
`FASH-linear` = venn_sets$Variants$`FASH-linear BF`,
`FASH-IWP1` = venn_sets$Variants$`FASH-IWP1 BF`
)
ggVennDiagram::ggVennDiagram(
variant_sets,
label = "count",
label_alpha = 0,
label_size = 3.7,
set_size = 3.8,
edge_size = 0.8
) +
ggplot2::scale_fill_gradient(low = "#f7fbff", high = "#2171b5") +
ggplot2::theme(
legend.position = "right",
plot.margin = ggplot2::margin(20, 40, 20, 40)
)
Figure 3. Unique-variant overlap among Strober quadratic, Strober linear, BF-adjusted FASH-IWP1, and BF-adjusted FASH-linear. Each rsID is counted once per method, regardless of the number of associated genes.
The BF-adjusted IWP1–linear intersections are 8,530 pairs, 1,112 genes, and 8,468 unique variants.
To reproduce the matched FASH-linear fit and overlap summaries:
OMP_NUM_THREADS=1 \
OPENBLAS_NUM_THREADS=1 \
MKL_NUM_THREADS=1 \
VECLIB_MAXIMUM_THREADS=1 \
BLIS_NUM_THREADS=1 \
Rscript --vanilla \
code/revision_simulations/internal/matched_fash_linear_real_data/\
run_matched_fash_linear_real_data.R
Rscript --vanilla \
code/revision_simulations/internal/matched_fash_linear_real_data/\
build_iwp_overlap_proportion_cache.R
Rscript --vanilla -e \
'workflowr::wflow_build("analysis/matched_fash_linear_real_data.rmd", local = TRUE)'
sessionInfo()
R version 4.5.1 (2025-06-13)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.6.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1
locale:
[1] en_CA/en_CA/en_CA/C/en_CA/en_CA
time zone: America/Chicago
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_4.0.3
loaded via a namespace (and not attached):
[1] sass_0.4.10 generics_0.1.4 xml2_1.5.1
[4] stringi_1.8.9 digest_0.6.39 magrittr_2.0.5
[7] evaluate_1.0.5 grid_4.5.1 RColorBrewer_1.1-3
[10] fastmap_1.2.0 rprojroot_2.1.1 workflowr_1.7.2
[13] jsonlite_2.0.0 whisker_0.4.1 promises_1.5.0
[16] viridisLite_0.4.3 scales_1.4.0 codetools_0.2-20
[19] textshaping_1.0.4 jquerylib_0.1.4 cli_3.6.6
[22] rlang_1.2.0 withr_3.0.3 cachem_1.1.0
[25] yaml_2.3.12 otel_0.2.0 tools_4.5.1
[28] dplyr_1.1.4 httpuv_1.6.16 kableExtra_1.4.0
[31] vctrs_0.7.3 R6_2.6.1 lifecycle_1.0.5
[34] git2r_0.36.2 stringr_1.6.0 fs_1.6.6
[37] pkgconfig_2.0.3 pillar_1.11.1 bslib_0.9.0
[40] later_1.4.4 gtable_0.3.6 glue_1.8.1
[43] Rcpp_1.1.1-1.1 systemfonts_1.3.1 xfun_0.55
[46] tibble_3.3.0 tidyselect_1.2.1 rstudioapi_0.17.1
[49] knitr_1.50 dichromat_2.0-0.1 farver_2.1.2
[52] htmltools_0.5.9 rmarkdown_2.30 svglite_2.2.2
[55] labeling_0.4.3 ggVennDiagram_1.5.4 compiler_4.5.1
[58] S7_0.2.2