From 0b5054abae3fed0b6efd06380184b37711287e78 Mon Sep 17 00:00:00 2001
From: Pawel Markiewicz
Date: Wed, 10 Jan 2024 12:09:45 +0000
Subject: [PATCH] added tracer groups based on radionuclides to Cnt
---
amypet/align.py | 5 +----
amypet/params.toml | 4 ++++
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/amypet/align.py b/amypet/align.py
index c1bb66f6..c1dc1622 100644
--- a/amypet/align.py
+++ b/amypet/align.py
@@ -17,9 +17,6 @@
from .ur_tools import preproc_ur
from .utils import get_atlas
-# > tracer in different radionuclide group
-f18group = ['fbb', 'fbp', 'flute']
-c11group = ['pib']
# > list of registration/motion metrics for alignment
reg_metric_list = ['rss', 'adst']
@@ -924,7 +921,7 @@ def align_break(
td = td[0]
# > what tracer / radionuclide is used?
- istp = 'F18' * (niidat['tracer'] in f18group) + 'C11' * (niidat['tracer'] in c11group)
+ istp = 'F18' * (niidat['tracer'] in Cnt['tracer']['f18']) + 'C11' * (niidat['tracer'] in Cnt['tracer']['c11'])
# > decay constant using half-life
lmbd = np.log(2) / nimpa.resources.riLUT[istp]['thalf']
diff --git a/amypet/params.toml b/amypet/params.toml
index ec925ff0..04644f3d 100644
--- a/amypet/params.toml
+++ b/amypet/params.toml
@@ -53,3 +53,7 @@ pib = [5400, 6600, 1200]
flute = [5400, 6600, 1200]
fbb = [5400, 6600, 1200]
fbp = [3000, 3600, 600]
+
+[tracer]
+f18 = ['fbb', 'fbp', 'flute', 'mk-6240']
+c11 = ['pib']
\ No newline at end of file