Ejemplo n.º 1
0
        public List <bool> RealSpol98(EnrichedAnalysisData data)
        {
            List <bool> result = Enumerable.Repeat(false, 98).ToList();

            foreach (var part in data.Crispr)
            {
                if (part.Spacer == null || part.Spacer.Id > 98)
                {
                    continue;
                }
                result[part.Spacer.Id - 1] = true;
            }

            return(result);
        }
Ejemplo n.º 2
0
        public List <bool> RealSpol43(EnrichedAnalysisData data)
        {
            List <bool> spol98 = RealSpol98(data);
            List <bool> result = Enumerable.Repeat(false, 43).ToList();

            int[] positions =
            {
                2,   3,  4, 12, 13, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
                38, 39, 40, 41, 42, 43, 44, 46, 47, 51, 52, 53, 62, 63, 64, 65
            };
            for (int i = 0; i < 43; i++)
            {
                result[i] = spol98[positions[i] - 1];
            }

            return(result);
        }