findFa: Convenience wrapper for Rsamtools FaFile

Description Usage Arguments Value See Also Examples

View source: R/utils_imports.R

Description

Get fasta file object, to find sequences in file.
Will load and import file if necessarry.

Usage

1
findFa(faFile)

Arguments

faFile

FaFile, BSgenome, fasta/index file path or an ORFik experiment. This file is usually used to find the transcript sequences from some GRangesList.

Value

a FaFile or BSgenome

See Also

Other utils: bedToGR(), convertToOneBasedRanges(), export.bed12(), export.wiggle(), fimport(), fread.bed(), optimizeReads(), readBam(), readWig()

Examples

1
2
3
# Some fasta genome with existing fasta index in same folder
path <- system.file("extdata", "genome.fasta", package = "ORFik")
findFa(path)

ORFik documentation built on March 27, 2021, 6 p.m.