make_oc_POSTable: convert a GRanges to a data.frame that can be written out as...

View source: R/make_postable.R

make_oc_POSTableR Documentation

convert a GRanges to a data.frame that can be written out as a POSTable file for OpenCRAVAT

Description

convert a GRanges to a data.frame that can be written out as a POSTable file for OpenCRAVAT

Usage

make_oc_POSTable(gr, chain = NULL, genome = NULL)

Arguments

gr

GRanges instance

chain

rtracklayer chain for liftOver

genome

character(1) genome tag

Examples

tf = tempfile()
mtb = make_oc_POSTable(gr38)
write.table(mtb, file=tf, sep="\t", col.names=FALSE, row.names=FALSE, quote=FALSE)
read.delim(tf, sep="\t", nrow=5, h=FALSE)

vjcitn/oc2bioc documentation built on Sept. 7, 2024, 10:23 a.m.