addBioassayIndex: Index a bioassayR database

View source: R/loadingData.R

addBioassayIndexR Documentation

Index a bioassayR database

Description

Indexing a bioassayR database before performing queries will drastically improve query performance. However, it will also slow down loading large amounts of additional data. Therefore, we recommend loading the majority of your data, using this function to index, and then performing queries.

Usage

addBioassayIndex(database)

Arguments

database

A BioassayDB database to be indexed.

Author(s)

Tyler Backman

Examples

## create test database
library(bioassayR)
filename <- tempfile()
mydb <- newBioassayDB(filename, indexed=FALSE)

## load any data at this point

## add database index
addBioassayIndex(mydb)

# perform queries here

## close and delete test database
disconnectBioassayDB(mydb)
unlink(filename)

girke-lab/bioassayR documentation built on Oct. 22, 2024, 8:13 a.m.