Example #1
0
        public void RemoveAll(TCGASampleType stype)
        {
            var keys = BarInfoListMap.Keys.ToList();

            foreach (var key in keys)
            {
                if (TCGAUtils.GetSampleType(key) == stype)
                {
                    BarInfoListMap.Remove(key);
                }
            }
        }
Example #2
0
        public void KeepSamples(HashSet <string> samples)
        {
            var keys = BarInfoListMap.Keys.ToList();

            foreach (var key in keys)
            {
                if (!samples.Contains(key))
                {
                    BarInfoListMap.Remove(key);
                }
            }
        }