@@ -35,6 +37,9 @@ Over the pathway the following values are computed. Each can be accessed by call
- [`duration_dephase`](@ref): The total amount of time the spins spent in the +transverse relative to -transverse state in ms. The absolute value of this can be used to quantify the expected effect of T2'-decay.
### Effect of gradients
Some gradients will be scaled/rotated with user-provided values (e.g., bvals/bvecs).
The area under curve, q-values, and b-values are computed separately for such gradients.
You can select which gradients to consider when accessing these values.
- [`qvec`](@ref): Net displacement vector in k-space/q-space.
- [`qval`](@ref)/[`area_under_curve`](@ref): size of the displacement in k-space/q-space. For a spoiled pathway, this should be large compared with 1/voxel size; for unspoiled pathways it should be (close to) zero.
- [`bmat`](@ref): Net diffusion weighting due to gradients along the [`Pathway`](@ref) in matrix form.
...
...
@@ -47,11 +52,26 @@ struct Pathway
readout_index::Integer
# computed
duration_states::SVector{4,Float64}
qvec::SVector{3,Float64}
bmat::SMatrix{3,3,Float64,9}
duration_states::Dict{Any,SVector{4,Float64}}
qvec::Dict{Any,SVector{3,Float64}}
bmat::Dict{Any,SMatrix{3,3,Float64,9}}
end
function Pathway(sequence::Sequence,pulse_effects::AbstractVector,readout_index::Integer)