Learn R Programming

BioVizSeq (version 1.0.3)

gff_to_loc: gff_to_loc

Description

Extract the location information of element from gff or gtf file

Usage

gff_to_loc(gff_data, mRNA_ID = NULL)

Value

list

Arguments

gff_data

gff file.

mRNA_ID

The mRNA you selected. If NULL, it means selecting all mRNAs.

Author

Shiqi Zhao

Examples

Run this code

gff_path <- system.file("extdata", "test.gff", package = "BioVizSeq")
gff_data <- read.table(gff_path, header = FALSE, sep = '\t')
gff_loc <- gff_to_loc(gff_data)

ID_path <- system.file("extdata", "ID_select.csv", package = "BioVizSeq")
mRNA_ID <- readLines(ID_path) 
gff_loc <- gff_to_loc(gff_data, mRNA_ID=mRNA_ID)

Run the code above in your browser using DataLab