private void initialize()
{
IEnumerable<GenomicBin> onTargetBins = manifest == null ? bins : EnrichmentUtilities.GetOnTargetBins(bins, manifest);
List<double> x = new List<double>();
List<double> y = new List<double>();
withoutChrY = new List<int>();
int i = 0; // index into x and y
foreach (var bin in onTargetBins)
{
double count = countTransformer(bin.Count); // Variance stablization
if (!double.IsInfinity(count))
{
x.Add(bin.GC);
y.Add(count);
string chrom = bin.Chromosome.ToLower();
bool isChrY = chrom == "chry" || chrom == "y";
if (!isChrY) { withoutChrY.Add(i); }
i++;
}
}
gcs = x.ToArray();
counts = y.ToArray();
}