API reference
This page documents PETFit’s main R functions for launching apps and running pipelines.
Interactive apps
petfit_interactive()
Launch a PETFit Shiny app in your browser.
petfit_interactive(
app = c("regiondef", "modelling_plasma", "modelling_ref"),
bids_dir = NULL,
derivatives_dir = NULL,
blood_dir = NULL,
petfit_output_foldername = "petfit",
analysis_foldername = "Primary_Analysis",
config_file = NULL,
cores = 1L,
save_logs = FALSE,
ancillary_analysis_folder = NULL
)
Arguments:
Argument |
Description |
|---|---|
|
Which app to launch: |
|
Path to the BIDS directory |
|
Path to derivatives directory. Defaults to |
|
Path to blood data directory (for |
|
Name of the petfit output folder within derivatives (default: |
|
Name of the analysis subfolder (default: |
|
Path to an existing configuration file (for modelling apps) |
|
Number of cores for parallel processing (default: |
|
Whether to save processing logs (default: |
|
Name of a sibling analysis subfolder to inherit delay or k2prime estimates from. Must be a folder name (e.g. |
Automatic pipelines
petfit_auto()
Unified entry point for running any PETFit pipeline non-interactively.
petfit_auto(
app = c("regiondef", "modelling_plasma", "modelling_ref"),
bids_dir = NULL,
derivatives_dir = NULL,
blood_dir = NULL,
petfit_output_foldername = "petfit",
analysis_foldername = "Primary_Analysis",
step = NULL,
cores = 1L,
save_logs = FALSE,
ancillary_analysis_folder = NULL
)
Dispatches to petfit_regiondef_auto() or petfit_modelling_auto() based on app.
petfit_regiondef_auto()
Run region definition non-interactively.
petfit_regiondef_auto(
bids_dir = NULL,
derivatives_dir = NULL,
petfit_output_foldername = "petfit",
cores = 1L
)
petfit_modelling_auto()
Run the modelling pipeline non-interactively.
petfit_modelling_auto(
bids_dir = NULL,
derivatives_dir = NULL,
petfit_output_foldername = "petfit",
analysis_foldername = "Primary_Analysis",
blood_dir = NULL,
step = NULL,
pipeline_type = NULL,
cores = 1L,
save_logs = FALSE,
ancillary_analysis_folder = NULL
)
Argument |
Description |
|---|---|
|
Run a specific step: |
|
Explicit pipeline type: |
|
Name of a sibling analysis subfolder to inherit delay or k2prime estimates from |
All other arguments are the same as petfit_interactive().
Container command-line options
When running PETFit in Docker or Apptainer, the container accepts these flags:
Flag |
Description |
|---|---|
|
App to run: |
|
|
|
Specific step for automatic mode (see |
|
Analysis subfolder name (default: |
|
Name of petfit output folder within derivatives (default: |
|
Number of cores for parallel processing (default: |