public void RemoveAll(TCGASampleType stype) { var keys = BarInfoListMap.Keys.ToList(); foreach (var key in keys) { if (TCGAUtils.GetSampleType(key) == stype) { BarInfoListMap.Remove(key); } } }
public void KeepSamples(HashSet <string> samples) { var keys = BarInfoListMap.Keys.ToList(); foreach (var key in keys) { if (!samples.Contains(key)) { BarInfoListMap.Remove(key); } } }