Kmer-package: K-mer calculation using C++ with Rcpp.

Description Details Author(s) References See Also Examples

Description

Calculates K-mers from string vectors.

Details

No details so far.

Author(s)

Kristian Hovde Liland

References

TODO:

See Also

Please don't.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Basic
system.time(a <- Kmer(c("AAACGTTTT","GTTT"),3,TRUE))
dim(a)
sum(a)
print(a)

# 0/1 instead of count
system.time(aR <- KmerRDP(c("AAACGTTTT","GTTT"),3,TRUE))

# Alien characters
system.time(aA <- KmerAlien(c("AAANGTTTT","GTTT"),3,TRUE))
system.time(aAR <- KmerAlienRDP(c("AAANGTTTT","GTTT"),3,TRUE))

# Count for classes
system.time(b <- Kmer_classes(c("AAACGTTTT","GTTT"),3,TRUE,c("Fish","Coconut")))
print(b)

Kmer documentation built on May 2, 2019, 5:47 p.m.