Repository navigation
nQuack EM Implementation
-
Added
hmm_estimate_CN_nQuack(), a self-contained analogue ofhmm_estimate_CN()that uses thenQuackpackage for both whole-sample ploidy estimation and per-window BAF likelihoods/dosage calling. RequiresnQuack >= 1.0.5(install withremotes::install_github("mgaynor1/nQuack@updateGL")).cn_gridmust be a subset of2:6(nQuack's supported range); usehmm_estimate_CN()for CN=0/1/LOH detection. -
.nquack_estimate_ploidy()'s model selection restricts totype == "fixed"(mixing proportions only; means/variance fixed at theoretical dosage positions) before comparing BIC across distributions and mixtures. The now-discardedfree/fixed_2/fixed_3fits can still emit benign "NaNs produced" warnings from nQuack's internal EM steps for the degenerate solutions; these are suppressed since they don't affect the selected result. -
Added
from_standardized_bafparameter (defaultTRUE) toconvert2nQuack(), deriving allele counts from the standardization-correctedbafcolumn instead of rawX/Ycounts. -
Added the
Qploidy2_nQuack_tutorial.Rmdvignette, covering the nQuack EM-based BAF model selection route and exporting standardized BAF data viaconvert2nQuack(). -
Fixed
em_hmm_cn()(used by bothhmm_estimate_CN()andhmm_estimate_CN_nQuack()): chromosomes that collapse to a single window no longer crash withsubscript out of bounds.