rbind_columnwise: Bind rows of several k-mer matrices

Description Usage Arguments Value See Also Examples

View source: R/seqR_result.R

Description

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.

Usage

1

Arguments

...

k-mer matrices of type Matrix

Value

a k-mer matrix of type Matrix that is the result of the rbind operation

See Also

Function that count k-mers of one type: count_kmers

Function that counts many k-mer variants in the single invocation: count_multimers

Examples

1
2
3
4
5
6
7
8
batch_size <- 1

# k-mer counting
resA <- count_kmers(c("AAAAA", "ASASSSSASSA"), k=5, batch_size=batch_size)
resB <- count_multimers(c("HWHSHS", "AASDCASD"), k_vector=c(3, 5), batch_size=batch_size)

# rbind
res <- rbind_columnwise(resA, resB)

seqR documentation built on Oct. 6, 2021, 1:10 a.m.