inst/unitTests/test_rnaCentralAccess.R

library(RUnit)
library(GenomicRanges)
library(IRanges)
library(S4Vectors)

## Test rnaCentralTextSearch

checkTrue(grepl("^URS", rnaCentralTextSearch("HOTAIR")[1]))

## Test rnaCentralRetrieveEntry

checkEquals("URS000075C808_9606", rnaCentralRetrieveEntry("URS000075C808_9606")$rnaCentralID)

## Test rnaCentralGenomicCoordinatesSearch

checkTrue(grepl("^URS", rnaCentralGenomicCoordinatesSearch(GenomicRanges::GRanges(seqnames=S4Vectors::Rle("chr3"), ranges=IRanges::IRanges(39788104, 39795326)), "Homo sapiens")[[1]][[1]]$rnaCentralID))

Try the ncRNAtools package in your browser

Any scripts or data that you put into this service are public.

ncRNAtools documentation built on Nov. 8, 2020, 8:14 p.m.