R/tmTools.R

Defines functions `calcTM`

# 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)
}
robertdouglasmorrison/DuffyTools documentation built on April 16, 2024, 6:31 a.m.