Generates an interactive plot (HTML) of clustered CNV models, showing copy number profiles for Tier 1 models. The y-axis represents model IDs (clustered by CNV profile similarity), the x-axis shows genomic coordinates, and color indicates copy number (CN). Tooltip text provides model summary statistics.
Arguments
- models
Data frame of model likelihood results. Must include columns
mu,rho,Tier1, and summary statistics (total_likelihood_cluster,diploid_distance_cluster,nondiploid_distance_cluster).- refined_calls
Data frame of segment calls. Must include columns
Chromosome,Start,End,CN,mu, andrho.- out_dir
Character. Output directory for the HTML plot.
- prefix
Character. Prefix for output file name.
Value
Invisibly returns TRUE if the plot was successfully created and saved, otherwise returns FALSE.
