ASLSimulator#
- class blochsim.simulators.ASLSimulator[source]#
Bases:
SimulatorArterial spin labelling (ASL) control-label difference signal, in closed form.
General kinetic model [1] for continuous, pseudo-continuous and pulsed labelling. Blood labelled for
tauarrives afterATT, is delivered at rateCBF, and relaxes withT1_bloodbefore arrival and with the apparent tissue T1,1 / (1 / T1 + f / lambda), after exchange. The signal is the real magnetization difference, zero before the labelled blood arrives. The defaultT1_blood,partitionand labelling efficiency are the 3 T consensus values [2].- Parameters:
t (float or array-like) – Times from the start of labelling, in ms.
tau (float or array-like) – Labelling duration, in ms.
labelling ({"continuous", "pulsed"}, default="continuous") – Continuous (including pseudo-continuous) or pulsed labelling.
efficiency (float or array-like, default=None) – Labelling efficiency; 0.85 for continuous and 0.98 for pulsed labelling when not given.
- Tissue properties:
CBF (float or array-like) – Cerebral blood flow, in ml/100 g/min.
ATT (float or array-like) – Arterial transit time, in ms.
T1 (float or array-like) – Tissue longitudinal relaxation time, in ms.
M0 (float or array-like, default=1.0) – Equilibrium magnetization of tissue.
T1_blood (float or array-like, default=1650.0) – Longitudinal relaxation time of blood, in ms.
partition (float or array-like, default=0.9) – Blood-brain partition coefficient, in ml/g.
References
Examples
import torch from blochsim.simulators import ASLSimulator sequence = ASLSimulator(t=torch.linspace(0.0, 5000.0, 51), tau=1800.0) signal = sequence.simulate(CBF=(20.0, 60.0), ATT=1200.0, T1=1400.0) print(signal.shape)
torch.Size([2, 51])
Methods
bindReturn a copy with further arguments fixed.
describeReturn the
SequenceDescriptionof a protocol.Return the closed-form signal.
from_descriptionReturn a simulator that plays an existing description.
from_pulseqReturn a simulator over one repetition of a Pulseq sequence.
jacobianReturn the signal and its derivative with respect to tissue properties.
layoutReturn the operators of one repetition in playing order.
playedReturn the protocol arguments of
layout(), arrays as torch tensors.repetition_sReturn the duration of one repetition in seconds.
simulateReturn the recorded signal.