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 RemoveAll(TCGASampleType stype)
        {
            var keys = BarInfoListMap.Keys.ToList();

            foreach (var key in keys)
            {
                if (TCGAUtils.GetSampleType(key) == stype)
                {
                    BarInfoListMap.Remove(key);
                }
            }
        }
Example #3
0
 public static bool HasSample(this Dictionary <TCGATechnologyType, Dictionary <TCGASampleType, List <BarInfo> > > tumormap, TCGASampleType sType)
 {
     return(tumormap.Sum(m => m.Value[sType].Count) > 0);
 }