In processing1.m (which calls CNV_v6_6.m), if the chr_CNVdata contains zeros for the entire chromosome, it may later crash in CNV_v6_6.m:437 because fitY2 (and other Y-related variables) will have bad values (NaN, inf).
We should instead mark these regions (for the user as well, to make them aware of the issue) and ignore them in downstream analysis, to prevent the crash.
In processing1.m (which calls CNV_v6_6.m), if the chr_CNVdata contains zeros for the entire chromosome, it may later crash in CNV_v6_6.m:437 because fitY2 (and other Y-related variables) will have bad values (NaN, inf).
We should instead mark these regions (for the user as well, to make them aware of the issue) and ignore them in downstream analysis, to prevent the crash.