annots_from_fa_df: Get genome annotation from Ensembl FASTA file

Description Usage Arguments Value Examples

View source: R/annots_from_fa.R

Description

Ensembl FASTA files for RNA contain much of the information contained in GTF files, such as chromosome, genome assembly version, coordinates, strand, gene ID, gene symbol, and gene description. Given such a FASTA file, this function can extract all the genome annotation information and return a data frame or a GRanges object.

Usage

1
2
3

Arguments

file

Path to the FASTA file to be read. The file can remain gzipped.

Value

annots_from_fa_df returns a data frame and annots_from_fa_GRanges returns GRanges.

A data frame with genome annotations.

Examples

1
2
3
fn <- system.file("testdata/fasta_test.fasta", package = "BUSpaRse")
annots_from_fa_df(fn)
annots_from_fa_GRanges(fn)

lambdamoses/BUStoolsR documentation built on June 9, 2021, 6:15 p.m.