# Get file path
libPath <- installed.packages()["genomeIntervals", "LibPath"]
filePath <- file.path(
libPath,
"genomeIntervals",
"example_files"
)
# Load gff
gff <- readGff3( file.path( filePath, "sgd_simple.gff"), isRightOpen=FALSE)
## head of full gff annotations
head(annotation(gff))
# extract ID and Parent attributes
idpa = getGffAttribute( gff, c( "ID", "Parent" ) )
head(idpa)
Run the code above in your browser using DataLab