## ----setup-options, include = FALSE-------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  crop = NULL
)

## ----install-bioc, eval = FALSE-----------------------------------------------
# if (!requireNamespace("BiocManager", quietly = TRUE)) {
#   install.packages("BiocManager")
# }
# BiocManager::install("AnnotationGx")

## ----load-package, message = FALSE--------------------------------------------
library("AnnotationGx")
data(CCLE_sampleMetadata)
data(CCLE_treatmentMetadata)

head(CCLE_sampleMetadata)
head(CCLE_treatmentMetadata)

## ----cellosaurus-query--------------------------------------------------------
mapCell2Accession(c("A549", "BT474"), query_only = TRUE)

## ----cellosaurus-online-------------------------------------------------------
mapCell2Accession(c("A549", "BT474"))

## ----pubchem-query------------------------------------------------------------
mapCompound2CID(c("erlotinib", "paclitaxel"), query_only = TRUE)

## ----pubchem-online-----------------------------------------------------------
mapCompound2CID(c("erlotinib", "paclitaxel"), first = TRUE)

## ----pubchem-properties-------------------------------------------------------
mapCID2Properties(
  ids = c(176870, 36314),
  properties = c("Title", "MolecularFormula", "InChIKey")
)

## ----cellosaurus-fields-------------------------------------------------------
head(cellosaurus_fields())

## ----data-license-path--------------------------------------------------------
system.file("extdata", "LICENSES.md", package = "AnnotationGx")

## ----citation-----------------------------------------------------------------
citation("AnnotationGx")

## ----session-info-------------------------------------------------------------
sessionInfo()

