Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.48 KB | None | 0 0
  1. public void printMatrix()
  2.         {
  3.             char[] alineSeqArray = alineSeq.ToCharArray();
  4.             char[] refSeqArray = refSeq.ToCharArray();
  5.             //Display the matrix
  6.             for (int i = 0; i < alineSeqCnt; i++)
  7.             {
  8.                 if (i == 0)
  9.                 {
  10.                     for (int sekwPion = 0; sekwPion < refSeqArray.Length; sekwPion++)
  11.                     {
  12.                         if (sekwPion == 0)
  13.                         {
  14.                             Console.Write("     ");
  15.                         }
  16.                         Console.Write(refSeqArray[sekwPion]+" ");
  17.                         if(sekwPion == refSeqArray.Length -1)
  18.                             Console.WriteLine();
  19.                     }
  20.                 }
  21.                 for (int j = 0; j < refSeqCnt; j++)
  22.                 {
  23.                     if(j == 0 && i <= alineSeqArray.Length)
  24.                     {
  25.                         if (i == 0)
  26.                         {
  27.                             Console.Write("  ");
  28.                         }
  29.                         else
  30.                         {
  31.                             Console.Write(alineSeqArray[i-1] + " ");
  32.                         }
  33.  
  34.                     }
  35.                     if (scoringMatrix[i, j] >= 0)
  36.                         Console.Write(" ");
  37.                     Console.Write(scoringMatrix[i, j]);
  38.                 }
  39.                 Console.Write(Environment.NewLine);
  40.             }
  41.         }
  42.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement