Esempio n. 1
0
        public virtual void CreateDefaultScanToNETAlignmentData()
        {
            ScanToNETAlignmentData = new SortedDictionary <int, float>();

            var scanNETList = new List <ScanNETPair>();

            for (var i = MinLcScan; i <= MaxLcScan; i++)
            {
                var snp = new ScanNETPair(i, i / (float)MaxLcScan);
                scanNETList.Add(snp);
            }

            SetScanToNETAlignmentData(scanNETList);
        }
Esempio n. 2
0
        public List <ScanNETPair> GetScanNETLookupTable()
        {
            var lookupTable   = new List <ScanNETPair>();
            var distinctItems = UMCList.GroupBy(p => p.ScanClassRep).Select(p => p.First());    //this creates a list of UMCs distinct with reference to the ScanClassRep field
            var tempUMCs      = distinctItems.ToList();

            foreach (var umc in tempUMCs)
            {
                var scanNetPair = new ScanNETPair(umc.ScanClassRep, (float)umc.NETClassRep);

                lookupTable.Add(scanNetPair);
            }
            return(lookupTable);
        }