Skip to content

Commit

Permalink
swap beta models to make 3 compartment the main diameter model
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinggong committed Jul 9, 2024
1 parent 64a2619 commit 73999d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models_smt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ The fraction vector represents fractions of the axon, CSF and dot with the fract
# Reference
Gong, T., Maffei, C., Dann, E., Lee, H.-H., Lee Hansol, Huang, S., Suzanne, H., Yendiki, A., 2024. Imaging the relationship of axon diameter and myelination in macaque and human brain, in: ISMRM.
"""
Base.@kwdef mutable struct ExCaliber <: BiophysicalModel
Base.@kwdef mutable struct ExCaliber_beta <: BiophysicalModel
axon::Cylinder = Cylinder()
extra::Zeppelin = Zeppelin()
csf::Iso = Iso(; diff=2.0e-9)
dot::Iso = Iso(; diff=0.0)
fracs::Vector{Float64} = [0.7, 0.1, 0.1]
end

Base.@kwdef mutable struct ExCaliber_beta <: BiophysicalModel
Base.@kwdef mutable struct ExCaliber <: BiophysicalModel
axon::Cylinder = Cylinder()
extra::Zeppelin = Zeppelin()
dot::Iso = Iso(; diff=0.0)
Expand Down Expand Up @@ -161,15 +161,15 @@ end
Reture predicted model signals from BiophysicalModel `model` and imaging protocol 'prot'.
`links` is a optional argument that specify parameter links in the model.
"""
function model_signals(excaliber::ExCaliber_beta, prot::Protocol)
function model_signals(excaliber::ExCaliber, prot::Protocol)
fextra = 1 - sum(excaliber.fracs)
signals =
excaliber.fracs[1] .* compartment_signals(excaliber.axon, prot) .+
fextra .* compartment_signals(excaliber.extra, prot) .+ excaliber.fracs[2]
return signals
end

function model_signals(excaliber::ExCaliber, prot::Protocol)
function model_signals(excaliber::ExCaliber_beta, prot::Protocol)
fextra = 1 - sum(excaliber.fracs)
signals =
excaliber.fracs[1] .* compartment_signals(excaliber.axon, prot) .+
Expand Down

0 comments on commit 73999d2

Please sign in to comment.