Nothing
###########################################################################/**
# @set "class=matrix"
# @RdocMethod fitNSAcnPs
# @alias fitNSAcnPs
#
# @title "Infering the LH values of the CN probes"
#
# \description{
# @get "title".
# }
#
# @synopsis
#
# \arguments{
# \item{data}{An Jx2 @numeric @array containing copy number values, where J is the number of SNPs.}
# \item{...}{Not used.}
# }
#
# \value{
# Returns an Jx2 @numeric @array with the "normality information" of the CN probes.
# }
#
#*/###########################################################################
setMethodS3("fitNSAcnPs", "matrix", function(data,...) {
pos <- c(1:(dim(data)[1]));
nSNPs <- dim(data)[1];
Salida <- approxfun(pos,data[,1])(pos)
#There can be some NA in the extremes
lastSNPsBegin <- which(is.na(Salida[1:(nSNPs/2)]));
if (length(lastSNPsBegin) >0)
Salida[lastSNPsBegin] <- Salida[max(lastSNPsBegin)+1];
lastSNPsEnd <- which(is.na(Salida[1:nSNPs]));
if (length(lastSNPsEnd) >0)
Salida[lastSNPsEnd] <- Salida[min(lastSNPsEnd)-1];
data[,1] <- Salida;
return(data);
}, private=TRUE)
############################################################################
# HISTORY:
# 2011-05-13 [MO]
# o Created.
############################################################################
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.