
Apply SNV using only the masked (covered) bands of each row
Source:R/preprocess.R
apply_snv_masked.RdFor each row, the mean and SD are computed using only the columns where
mask == 1. The same row is then z-normalised across all columns
(covered + uncovered), and uncovered positions are zero-filled so the
VAE encoder sees a numerically stable input.