Learn R Programming

PopGenome (version 2.1.6)

get_gff_info: Annotation info

Description

This function extracts annotation information from a GTF/GFF file.

Usage

get_gff_info(object=FALSE,gff.file,chr,position,feature=FALSE,extract.gene.names=FALSE)

Arguments

object
object of class GENOME
gff.file
basepath of the GTF/GFF file
chr
the chromosome
position
reference positions or region id (when object is specified)
feature
feature to search for in the gff-file. returns a list of positions
extract.gene.names
returns the gene names of the chromosome

Details

This function extracts annotation information from a GTF/GFF file.

Examples

Run this code
# get_gff_info("Arabidopsis.gff",chr=1,200202)
# get_gff_info(GENOME.class,"Arabidopsis.gff",chr=1,position=3)

Run the code above in your browser using DataLab