zhilizheng/SBayesRC ? reverse-engineered prompt
Reverse engineered prompt
Build me an easy to use R package and command line workflow for SBayesRC, like the one described in the README. I want to be able to give it GWAS summary statistics, an LD reference folder, and a functional annotation file, then run a tidy step, an optional impute step, and the main SBayesRC analysis to produce SNP weights and a log file.
It should also include a simple way to calculate polygenic risk scores from the output weights, and a small helper for combining two PRS results with tuning data. Please make the default setup user friendly, with clear example commands for Linux or Mac, and include a Docker or container based path for people who do not want to install the R package directly.
Use the README examples as the main guide, and make sure the package works with tab delimited input files and produces the same kind of outputs shown there. If anything is unclear, look up the current docs online and keep it practical.
Are you gonna build this?
make sure you review the code using coderabbit