maskFASTA | R Documentation |
Mask FASTA sequence at defined regions.
maskFASTA(
fasta.file,
mask.ranges = NULL,
invert = FALSE,
mask.character = "N",
fasta.save = NULL
)
fasta.file |
A path to a FASTA file to be masked. |
mask.ranges |
A |
invert |
If set |
mask.character |
A single character to be used for masking (Default : 'N'). |
fasta.save |
A path to a filename where to store final FASTA file. |
A DNAStringSet-class
object with masked regions
David Porubsky
## FASTA sequence to mask
fasta.file <- system.file("extdata", "test4_query.fasta", package = "SVbyEye")
## Define ranges to mask
mask.ranges <- IRanges::IRanges(start = c(11, 1981), end = c(20, 1990))
## Mask FASTA sequence at defined ranges
maskFASTA(fasta.file = fasta.file, mask.ranges = mask.ranges)
## Mask FASTA sequence except of defined ranges
maskFASTA(fasta.file = fasta.file, mask.ranges = mask.ranges, invert = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.