Convert a supported reference sequence argument to a DNAStringSet
Source:R/utils.R
refargToDNAStringSet.RdThis function takes a supported argument value specifying the
reference sequence (e.g. genome) and returns it as a
DNAStringSet object.
Currently supported argument values are:
- "BSgenome:"
: A BSgenome object
- "DNAStringSet"
: A DNAStringSet object
- "character"
: A path to a fasta file
Value
A DNAStringSet object.
Examples
ref <- refargToDNAStringSet(system.file("extdata", "reference.fa.gz",
package = "SingleMoleculeGenomicsIO"))
ref
#> DNAStringSet object of length 1:
#> width seq names
#> [1] 6957060 NNNNNNNNNNNNNNNNNNNNNN...GACAGTAATCCAGGAAAGGGGA chr1