Nothing
#' Retrieve cytogenetic bands
#'
#' given a genome query UCSC for cytogenetic band locations
#' @name multi_cytobandRet
#' @param genome character string giving a UCSC genome
#' @return object of class data frame
#' @importFrom DBI dbConnect
#' @importFrom DBI dbGetQuery
#' @importFrom DBI dbDisconnect
#' @noRd
multi_cytobandRet <- function(genome)
{
# Check if RMySQL is installed
if(!requireNamespace("RMySQL", quietly=TRUE))
{
memo <- paste0("The package RMySQL is required for this functionality,
please run the following: install.packages(\"RMySQL\")!")
stop(memo)
}
# connect to UCSC mySQL genome database
conn <- DBI::dbConnect(RMySQL::MySQL(), user="genome",
host="genome-mysql.cse.ucsc.edu",
dbname=genome)
# query for chromosome positions and cytogenetic staining
result <- DBI::dbGetQuery(conn=conn,
statement="SELECT chrom,
chromStart, chromEnd, name,
gieStain FROM cytoBand")
DBI::dbDisconnect(conn)
return(result)
}
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.