Пример #1
0
 public void SetOpsForRead(ReadNumber num, List <StitchableItem> ops)
 {
     if (num == ReadNumber.Read1)
     {
         R1Ops              = ops;
         R1OpsCount         = ops.Count;
         R1HasReferenceSpan = ops.Any(x => CigarExtensions.IsReferenceSpan(x.CigarOp));
     }
     else
     {
         R2Ops              = ops;
         R2OpsCount         = ops.Count;
         R2HasReferenceSpan = ops.Any(x => CigarExtensions.IsReferenceSpan(x.CigarOp));
     }
 }
Пример #2
0
 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));
         }
     }
 }
Пример #3
0
 public void AddOpsForRead(ReadNumber num, StitchableItem ops)
 {
     if (num == ReadNumber.Read1)
     {
         R1OpsCount++;
         R1Ops.Add(ops);
         if (CigarExtensions.IsReferenceSpan(ops.CigarOp))
         {
             R1HasReferenceSpan = true;
         }
     }
     else
     {
         R2OpsCount++;
         R2Ops.Add(ops);
         if (CigarExtensions.IsReferenceSpan(ops.CigarOp))
         {
             R2HasReferenceSpan = true;
         }
     }
 }