private static GetPloidy ( |
||
referencePloidy | ||
chrom | string | |
start | int | |
end | int | |
defaultPloidy | int | |
return | int |
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);
}