Description Usage Arguments Examples
View source: R/hamming_filter.R
The reference barcodes are first constructed into a tree. Hamming distance between each barcode and the given read is calculated. The barcodes with hamming distance smaller than the specify threshold will be return.
1 | hamming_filter(barcodes, read, threshold = 2)
|
barcodes |
the file path of the fasta file |
read |
the output file path of the fastq sequence |
1 2 | out = hamming_filter(c("ATTCG", "ATTCA", "AAAAA", "AATAA"), "ATTCG")
out == c("ATTCA", "ATTCG") # TRUE TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.