| kmers_matrix {kmers} | R Documentation |
kmers_matrix(x,
k = 3);
a Matrix k-mer count matrix object: each row in this matrix is a sequence in the input sequence collection(the row name is the sequence title), and each column is a k-mer feature(the sampleID property of the generated matrix is the k-mer alphabet sorted in ascending order), the cell value is the count of the corresponding k-mer in the corresponding sequence(ZERO means that the k-mer is not exists in the target sequence).
this function returns a R# error message object if the input data can not be cast to a collection of the sequence data.