skip to main content
US FlagAn official website of the United States government
dot gov icon
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
https lock icon
Secure .gov websites use HTTPS
A lock ( lock ) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.


Search for: All records

Creators/Authors contains: "ymous, anon"

Note: When clicking on a Digital Object Identifier (DOI) number, you will be taken to an external site maintained by the publisher. Some full text articles may not yet be available without a charge during the embargo (administrative interval).
What is a DOI Number?

Some links on this page may take you to non-federal websites. Their policies may differ from this site.

  1. {"Abstract":[" LUMINEX Wildlife Disease Analysis Pipeline\n\n  Overview\n\n  Bayesian analysis pipeline for "Cohorts of immature Pteropus bats show interannual variation in Hendra virus serology"\n\nSummary \n\n  Prerequisites\n\n  Software Requirements\n\n  - R (≥ 4.0.0)  - Stan (≥ 2.21)\n\n  Required R Packages\n\n  # Core packages  install.packages(c("rstan", "tidyverse", "here", "loo", "bayesplot"))  # Additional packages    install.packages(c("RColorBrewer", "cowplot", "boot", "see", "factoextra", "bestNormalize", "LaplacesDemon", "ggpubr", "plyr", "see", "pscl"))    # Core utility functions (CRITICAL DEPENDENCY)  source(here("R", "useful_functions.R"))  # Bayesian analysis functions  source(here("R", "paper_theme.R"))      # Plotting themes    Hardware Requirements\n\n  - Storage: ≥5GB free space  - CPU: Multi-core processor recommended\n\n  Data Requirements\n\n  /raw_sharable folder\n\n  Execution Workflow\n\n  ⚠️ CRITICAL: Execute in This Order\n\n  Phase 1: Core Data Processing\n\n  1. Initial Data Cleaning  source("R/create_datasets_for_stan_part_1.R")    - Runtime: ~5-10 minutes    - Outputs: data_for_cohort_model.csv, luminex_igg_igm.csv  2. Serology Classification  rmarkdown::render("R/mixture_model_final.R")    - Runtime: ~30-60 minutes (Stan model fitting)    - Outputs: serology_prob.csv  3. Age/Cohort Assignment  rmarkdown::render("R/cohort_model_2025_05_12.Rmd")    - Runtime: ~1-3 hours (complex Stan models)    - Outputs: age_predictions.csv & a species comparison analysis   4. Dataset Integration  source("R/create_datasets_for_stan_part_2_06_30_24.R")    - Runtime: ~10-15 minutes    - Outputs: All analysis-ready datasets with time-alive variables\n\n  Phase 2: Primary Analyses\n\n  5. Prevalence Smoothing Analysis  rmarkdown::render("R/gaussian_smooth_prevalence_06_30_24.Rmd")    - Runtime: ~10+ hours (multiple Stan models)    - Key outputs: Prevalence curves, model comparisons    - Additional outputs:       -Basic prevalence smoothing (4 pathogens × 4 cohorts)      -Site-specific analysis (8-cohort models)      -Sex-stratified analysis      -Stringent cohort cutoff analysis      -Multiple cutoff threshold testing (5 different cutoffs)      -Date-based modeling      -Batch effect testing      -Adult vs juvenile comparisons  6. Logistic Regression Analysis  source("R/logistic_models_fig_3.R")  source("R/logistic_models_fig_2.R")    - Runtime: ~30-60 minutes    - Outputs: Figure 2 & 3 plots\n\n  Phase 3: Supporting Analyses (Optional)\n\n  7. Additional Analyses (run as needed):    - adult_prevalence_curves.Rmd - Adult dynamics    - PCA_new_analysis.R - Multivariate analysis    - additional_figures.R - Supplementary figures\n\n  Key Functions (useful_functions.R)\n\n  - fit_4cohort_model() - Bayesian 4-cohort prevalence model  - compile_stan_results() - Extract and format Stan results  - create_time_sequence() - Generate prediction timepoints  - compute_loo_cv() - Leave-one-out cross-validation  - plot_parameter_diagnostics() - Model diagnostic plots\n\n  Troubleshooting\n\n  Common Issues\n\n  Stan compilation errors:  # Recompile Stan models  rstan_options(auto_write = TRUE)  options(mc.cores = parallel::detectCores())\n\n  Memory issues:  - Reduce Stan iterations: ITER = 1000 instead of ITER = 2000  - Run analyses sequentially, not in parallel\n\n  Missing dependencies:  # Load all utility functions  source(here("R", "useful_functions.R"))  source(here("R", "paper_theme.R"))\n\n  Resume from Saved Results\n\n  Many scripts save intermediate results:  # Check for existing model fits  if(file.exists("model_results.RData")) {    load("model_results.RData")  } else {    # Run full analysis  }\n\n  Output Structure\n\n  Luminex_figs/r_figs/     # All generated figures  Data_for_publication/    # Final analysis datasets  stan/                    # Stan model files  R/                       # Analysis scripts\n\n  Expected Runtime\n\n  Full pipeline: 10-20 hours on modern hardware  \n\n \n\n "]} 
    more » « less