The function binds rows of several input k-mer matrices (of type Matrix), which are results of count_kmers and count_multimers. This implementation also handles properly k-mer matrices that do not have the same columns, as opposed to the implementation of rbind.
rbind_columnwise(...)
... | k-mer matrices of type Matrix |
---|
a k-mer matrix of type Matrix that is the result of the rbind operation
Function that count k-mers of one type: count_kmers
Function that counts many k-mer variants in the single invocation: count_multimers
batch_size <- 1 # k-mer counting resA <- count_kmers(c("AAAAA", "ASASSSSASSA"), k=5, batch_size=batch_size)#>#># rbind res <- rbind_columnwise(resA, resB)