public void AddOpsForRead(ReadNumber num, List <CigarOp> ops) { if (num == ReadNumber.Read1) { R1Ops.AddRange(ops); } else { R2Ops.AddRange(ops); } }
public void AddOpsForRead(ReadNumber num, List <StitchableItem> ops) { if (num == ReadNumber.Read1) { R1OpsCount += ops.Count; R1Ops.AddRange(ops); } else { R2OpsCount += ops.Count; R2Ops.AddRange(ops); } }
public void AddOpsForRead(ReadNumber num, List <StitchableItem> ops) { if (num == ReadNumber.Read1) { R1OpsCount += ops.Count; R1Ops.AddRange(ops); if (!R1HasReferenceSpan) { R1HasReferenceSpan = ops.Any(x => CigarExtensions.IsReferenceSpan(x.CigarOp)); } } else { R2OpsCount += ops.Count; R2Ops.AddRange(ops); if (!R2HasReferenceSpan) { R2HasReferenceSpan = ops.Any(x => CigarExtensions.IsReferenceSpan(x.CigarOp)); } } }