Description Usage Arguments Details Value See Also Examples
selectSamplesPeaks
allows to select peaks for all samples.
1 2 3 | selectSamplesPeaks(samples, channel = "green", metric = "median",
Nchannel = NA, baseThr = 0.01, minLength = 10, discartPeaks = NA,
discartPeaksPerc = 1)
|
samples |
samples as output of the function |
channel |
channel to be considered, default="green" |
metric |
metric to be used, selct among "median", "mean", "max" or "AUC", default is median |
Nchannel |
channel to be used to normalise data, default is NA (use not recommended) |
baseThr |
threshold on the baseline used in order to define what is a peak, default is 0.01 |
minLength |
minimum length of a plug/droplet in number of data points, default is 10 (note that unit is number of data points, not seconds) |
discartPeaks |
select of to discart first and/or last peak ("first" discart the first, "last" discart the last, "both" discart both), default is NA |
discartPeaksPerc |
select the percentage of peaks to discart if discartPeaks is defined. Default is 1 |
This function select the peaks for all the samples previously identified using samplesSelection
by applying the function
peaksSelection
to the data corresponding to the different samples.
This function returns a list with, in each positions peaks for the corrsponding samples. Peaks are organized as data.frame with one peak for each row and 9 columns:
value of the peak in the green channel
value of the peak in the orange channel
value of the peak in the blue channel
value of the selected channel normalized by the value of the Nchannel, if the Nchannel is provided (otherwise the value is set to 0)
starting point of the peak
final point of the peak
length of the peak
1 2 3 4 5 | data(BxPC3_data,package="BraDiPluS")
res <- samplesSelection(data=MyData, BCchannel="blue",
BCthr=0.01, distThr=300, plotMyData=TRUE)
samples <-res$samples
samplesPeaks <- selectSamplesPeaks(samples, channel="green", metric="median", baseThr=0.01, minLength=350, discartPeaks="first", discartPeaksPerc=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.