Nothing
"findClosestGene" <-
function(chrom,pos,genome="hg17",position='txStart') {
if (!exists('refflat')) {
reftmp <- list()
reftmp[[genome]] <- getRefflat(genome)
assign('refflat',reftmp,.GlobalEnv)
} else if (!(genome %in% names(refflat))) {
refflat[[genome]] <<- getRefflat(genome)
}
rf <- refflat[[genome]]
chromsub <- rf$chrom==chrom
diffdist <- rf[chromsub,position]-pos
sub <- which(abs(diffdist)==min(abs(diffdist)))
rf <- rf[chromsub,1:9][sub,]
return(data.frame(rf,Distance=diffdist[sub]))
}
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.