setGeneric('qplotPeaks', function(object,...) standardGeneric('qplotPeaks'))
setMethod('qplotPeaks', 'xcmsPeaks', function(object,
protocol,
raw,
sample=NULL,
residuals = TRUE,
island=TRUE){
prof <- raw@env$profile
quant <- quantile(prof, protocol@alpha, na.rm = TRUE)
cutoff <- matrix(quant, nrow(prof), ncol(prof))
if(!is.null(sample))
peaks <- object@peaks[object@peaks[,'sample']==sample,]
else
peaks <- object@.Data
peaks_df <- as.data.frame(peaks)
rownames(peaks_df) <- seq_len(nrow(peaks_df))
print(peaks_df)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.