tac_roi: Calculate weighted time-activity curves for specified regions...

Description Usage Arguments Value See Also Examples

View source: R/tac.R

Description

Calculate weighted time-activity curves for specified regions of interest

Usage

1
tac_roi(tac, volumes, ROI_def, merge, PVC)

Arguments

tac

The time-activity curve data from loading function

volumes

The ROI volume data from loading function

ROI_def

The definition of ROIs by combining smaller ROIs from TAC file

merge

If TRUE, includes the original ROIs in the output data

PVC

If TRUE, appends "_C" to ROI name header (as in PMOD TAC files)

Value

Time-activity curves for the specified ROIs

See Also

Other tac functions: plot.tac(), save_tac(), split_pvc()

Examples

1
2
3
4
5
6
7
# f_raw_tac and f_raw_vol are the filenames of PMOD-generated files
f_raw_tac <- system.file("extdata", "AD06.tac", package="tacmagic") 
f_raw_vol <- system.file("extdata", "AD06_TAC.voistat", package="tacmagic")

tac <- load_tac(f_raw_tac)
vol <- load_vol(f_raw_vol)
AD06_tac_nc <- tac_roi(tac, vol, roi_ham_full(), merge=FALSE, PVC=FALSE)

tacmagic documentation built on Dec. 15, 2020, 5:13 p.m.