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

View source: R/minc_peaks.R

mincLabelPeaksR Documentation

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

Description

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

Usage

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")

## End(Not run)

Mouse-Imaging-Centre/RMINC documentation built on Nov. 12, 2022, 1:50 p.m.