private static int GetPloidy(PloidyInfo referencePloidy, string chrom, int start, int end, int defaultPloidy = 2)
{
if (referencePloidy == null) { return defaultPloidy; }
CanvasSegment segment = new CanvasSegment(chrom, start, end, new List<float>());
return referencePloidy.GetReferenceCopyNumber(segment);
}