ExonR
· One min read
We're excited release ExonR
. This is an R package that allows for interacting with Exon through an ergonomic R interface.
Usage
As a quick example, we can read in a GFF file from S3 and convert it to a GRanges
object.
library(exonr)
library(GenomicRanges)
rdr <- read_gff_file(
"s3://bucket/path/to/file.gff",
)
df <- as.data.frame(rdr)
gr <- GRanges(
seqnames = df$seqname,
ranges = IRanges(
start = df$start,
end = df$end,
),
)
Installation
If you're on an x64 machine, you should be able to install a pre-built binary from our R-universe.
install.packages('exonr', repos = c('https://wheretrue.r-universe.dev', 'https://cloud.r-project.org'))
This should also build on other platforms, but you'll need to have Rust installed. The main Rust website has a guide for installing rust. Once you have rust installed, you can install ExonR from source with the command above.