gff Utilities | R Documentation |
gff attributes parsing
ezGffAttributeField(x, field, attrsep = ";", valuesep = "=")
x |
|
field |
|
attrsep |
|
valuesep |
|
A vector of character
for the field
.
Ge Tan
http://www.ensembl.org/info/website/upload/gff.html
ezReadGff
## Not run:
## gtf
gtf <- ezReadGff(system.file("extdata/genes.gtf", package="ezRun",
mustWork=TRUE))
transcript_id <- ezGffAttributeField(gtf$attributes, field="transcript_id",
attrsep="; *", valuesep=" ")
gene_id <- ezGffAttributeField(gtf$attributes, field="gene_id",
attrsep="; *", valuesep=" ")
## gff
gff <- ezReadGff("/srv/GT/reference/Ca.Chlamydia_sanzinia_2742-308/NCBI/CP014639.1/Annotation/Version-2016-11-18/Genes/CP014639.gff3")
IDs <- ezGffAttributeField(gff$attributes, field="ID",
attrsep=";", valuesep="=")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.