powered by
Converts list of sequences to matrix.
list2matrix(seq_list)
list of sequences (e.g. as returned by the read.fasta function).
read.fasta
A matrix with the number of rows equal to the number of sequences and the number of columns equal to the length of the longest sequence.
# NOT RUN { list2matrix(list(s1 = c("c", "g", "g", "t"), s2 = c("g", "t", "c", "t", "t", "g"), s3 = c("a", "a", "t"))) # }
Run the code above in your browser using DataLab