public SearchResult(string newHaplogroup, SearchResult resultToCopy) { this.haplogroup = new Haplogroup(newHaplogroup); this.usedPolysInSample = resultToCopy.usedPolysInSample; this.allCheckedPolys.AddRange(resultToCopy.allCheckedPolys); this.correctPolys.AddRange(resultToCopy.correctPolys); this.unusedPolys.AddRange(resultToCopy.unusedPolys); this.correctedBackmutations.AddRange(resultToCopy.correctedBackmutations); this.unusedPolysNotInRange.AddRange(resultToCopy.unusedPolysNotInRange); this.missingPolysOutOfRange.AddRange(resultToCopy.missingPolysOutOfRange); this.usedPath = new PhyloTreePath(resultToCopy.usedPath); this.usedWeightPolys = resultToCopy.usedWeightPolys; this.correctWeightPolys = resultToCopy.correctWeightPolys; this.expectedWeightPolys = resultToCopy.expectedWeightPolys; this.missingWeightPolys = resultToCopy.missingWeightPolys; }
public PhyloTreePath(PhyloTreePath usedPath) { this.path.AddRange(usedPath.Nodes); }