gapremove | R Documentation |
Removes nucleotide positions (vertical) and/or reads/sequences (horizontal) that contain gaps more than the specified cut-off percentage from the alignment.
gapremove(fasta, vgappct = 70, hgappct = 70, fastaname = "filteredfast.fasta")
fasta |
Input as a read or multiple sequence alignment in FASTA format |
vgappct |
The percent cut-off of vertical gap (-), i.e., if a position in the alignment has %gap >= vgappct, that position will be removed. |
hgappct |
The percent cut-off of horizontal gap (-), i.e., if a sequence or read in the alignment has %gap >= hgappct, that sequence or read 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", "gaprichfast.fasta", package = "longreadvqs")
## Indicate output directory and file name---------------------------------------------------------
outfast <- tempfile()
## Remove positions with gap >= 60% and reads/sequences with gap >= 10%----------------------------
gapremove(fastafilepath, vgappct = 60, hgappct = 10, fastaname = outfast)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.