label peaks with the name of the atlas structure they are in

mincLabelPeaks(peaks, atlas, defs = getOption("RMINC_LABEL_DEFINITIONS"))

Arguments

peaks

the output of mincFindPeaks

atlas

the atlas volume, either as a mincArray or as a filename

defs

the atlas definitions, same as used for anatGetAll

Value

the peaks data frame, with an extra column containing the label

Examples

# NOT RUN {
peaks <- mincFindPeaks(-log10(qvs), "Neonatal:time.to.sac",
                       "pos", posThreshold=1.3, minDistance=1)
peaks <- mincLabelPeaks(peaks,
                         atlasVol,
                         defs="Dorr_2008_Steadman_2013_Ullmann_2013_mapping_of_labels.csv")
# }