R/minc_peaks.R
mincLabelPeaks.Rd
label peaks with the name of the atlas structure they are in
mincLabelPeaks(peaks, atlas, defs = getOption("RMINC_LABEL_DEFINITIONS"))
peaks | the output of |
---|---|
atlas | the atlas volume, either as a |
defs | the atlas definitions, same as used for |
the peaks data frame, with an extra column containing the label
# 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") # }