filtfast | R Documentation |
Removes reads/sequences of which Hamming similarity to the consensus of all reads/sequences in the alignment is less than the specified quantile (qt) of the similarity distribution.
filtfast(fasta, qt = 0.25, fastaname = "filteredfast.fasta")
fasta |
Input as a read or multiple sequence alignment in FASTA format |
qt |
If Hamming similarity score of a read/sequence to the consensus of all reads/sequences is less than the specified quantile (qt) of the similarity distribution, that read/sequence will be removed. |
fastaname |
Output file name in FASTA format |
FASTA read or multiple sequence alignment written out to the input directory
## Locate input FASTA file-------------------------------------------------------------------------
fastafilepath <- system.file("extdata", "dissimfast.fasta", package = "longreadvqs")
## Indicate output directory and file name---------------------------------------------------------
outfast <- tempfile()
## Remove reads/sequences that the similarity < 1st quartile (0.25 quantile)-----------------------
filtfast(fastafilepath, qt = 0.25, fastaname = outfast)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.