View source: R/filter_sequences.R
closest_seq | R Documentation |
Closest kmer distance This function checks the kmer distance between all the sequences in a DNAbin and a reference PHMM model
closest_seq(seqs, model, threshold, k = 5, quiet = FALSE)
seqs |
A DNAbin object |
model |
A Profile Hidden Markov model ("PHMM" object) generated by |
threshold |
The maximum kmer distance allowed from the reference model before a sequence is discarded. |
k |
The k-mer size to be used for calculating the distance matrix, parsed to kmer::mbed. Note that high values of k may be slow to compute and use a lot of memory due to the large numbers of calculations required, particularly when the residue alphabet is also large. |
quiet |
Whether progress should be printed to the console. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.