Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void printMatrix()
- {
- char[] alineSeqArray = alineSeq.ToCharArray();
- char[] refSeqArray = refSeq.ToCharArray();
- //Display the matrix
- for (int i = 0; i < alineSeqCnt; i++)
- {
- if (i == 0)
- {
- for (int sekwPion = 0; sekwPion < refSeqArray.Length; sekwPion++)
- {
- if (sekwPion == 0)
- {
- Console.Write(" ");
- }
- Console.Write(refSeqArray[sekwPion]+" ");
- if(sekwPion == refSeqArray.Length -1)
- Console.WriteLine();
- }
- }
- for (int j = 0; j < refSeqCnt; j++)
- {
- if(j == 0 && i <= alineSeqArray.Length)
- {
- if (i == 0)
- {
- Console.Write(" ");
- }
- else
- {
- Console.Write(alineSeqArray[i-1] + " ");
- }
- }
- if (scoringMatrix[i, j] >= 0)
- Console.Write(" ");
- Console.Write(scoringMatrix[i, j]);
- }
- Console.Write(Environment.NewLine);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement