# tmTools.R
`calcTM` <- function( probes) {
# put a Perl script in the current folder...
perlFile <- "./MeltingTemp.pl"
if ( ! file.exists( perlFile)) {
data( MeltingTempScript, envir=environment())
writeLines( perlScript, perlFile)
}
# force it to be executable
system( paste( "chmod +x ", perlFile))
probeSet <- toupper( probes)
tmSet <- as.numeric( system( perlFile, intern=TRUE, input=probeSet))
return( tmSet)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.