I have two amino acid sequence.
seq1="GCATGCT"
seq2="GATTACA"
They used string form for R code
> s1string
[1] "G" "C" "A" "T" "G" "C" "T"
> s2string
[1] "G" "A" "T" "T" "A" "C" "A"
I create matrix for this string
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 0 0 0 0 0 0 0 0
[2,] 0 0 0 0 0 0 0 0
[3,] 0 0 0 0 0 0 0 0
[4,] 0 0 0 0 0 0 0 0
[5,] 0 0 0 0 0 0 0 0
[6,] 0 0 0 0 0 0 0 0
[7,] 0 0 0 0 0 0 0 0
[8,] 0 0 0 0 0 0 0 0
I want to define matrix ncol with s1string, nrow= s2string. Can you help me for this topic?
I want to [1,] col and [,1] row don't define. I will define finish [2,] and [2,] row and col.
maybe if you explain what you're trying to accomplish we can help a bit more?
I want to colname define start [,2] [,3] [,4] [,5] [,6] [,7] [,8]= "GCATGCT"
for example,
[,2]="G" [,3]="C" [,4]="A" [,5]="T" [,6]="G" [,7]="C" [,8]="T" . Because my matrix must create nrow+1 ncol+1 and I don't want define in this [1,1].