Nothing
library(biomaRt)
cache <- file.path(tempdir(), "biomart_cache_test")
Sys.setenv(BIOMART_CACHE = cache)
context('getLDS() function')
ensembl_hsapiens <- useEnsembl("ENSEMBL_MART_ENSEMBL",
dataset="hsapiens_gene_ensembl")
plants <- useMart("plants_mart", host="https://plants.ensembl.org",
dataset="athaliana_eg_gene")
ensembl_rnorvegicus <- useEnsembl("ENSEMBL_MART_ENSEMBL",
dataset="rnorvegicus_gene_ensembl")
mouse <- useEnsembl(biomart = "mouse_strains", dataset = "mmc57bl6nj_gene_ensembl")
test_that("Error with separate hosts", {
expect_error(getLDS(attributes="ensembl_gene_id", mart=ensembl_hsapiens,
attributesL="ensembl_gene_id", martL=plants),
regexp = 'Both datasets must be located on the same host')
})
test_that("We get an error with different Marts on the same host", {
expect_error(getLDS(attributes="ensembl_gene_id", mart=ensembl_hsapiens,
attributesL="ensembl_gene_id", martL=mouse),
regexp = 'Both datasets must be located in the same Mart')
})
test_that("Find human/rat homologs", {
expect_is(x <- getLDS(attributes="ensembl_gene_id", mart=ensembl_hsapiens,
filters = "ensembl_gene_id", values = "ENSG00000084453",
attributesL="ensembl_gene_id", martL=ensembl_rnorvegicus),
"data.frame")
expect_true("ENSRNOG00000047493" %in% x[,2])
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.