コード例 #1
0
 public SimpleSample(string id, List <Polymorphism> polys, PolymorphismFilter filter)
 {
     this.Filter = filter;
     this.Id     = id;
     //TODO: See if the filter was already applied?
     this.Polymorphisms = filter.FilterPolys(polys).ToList();
     //now calculate weight
     this.TotalSampleWeight = Polymorphisms.Sum(x => x.getMutationRate());
 }