Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default flags for remove_raw_by_flags should not remove ACQ_IS_PARALLEL_CALIBRATION #237

Open
aTrotier opened this issue Feb 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@aTrotier
Copy link
Contributor

The pipeline for MRD acquisition generally looks like :

f = MRIFiles.ISMRMRDFile(path_mrd)
raw = RawAcquisitionData(f)
raw2 = MRIBase.remove_raw_by_flags(raw)
raw3 = remove_oversampling(raw2)

acq = AcqusitionData(raw3)
acq_cc,_ = softwareCoilCompression(acq,10);

maps = espirit(acq_cc, (6, 6, 6), 24)

However, the default parameters for remove_raw_by_flags ->

["ACQ_IS_NOISE_MEASUREMENT", "ACQ_IS_PARALLEL_CALIBRATION", "ACQ_IS_NAVIGATION_DATA", "ACQ_IS_PHASECORR_DATA", "ACQ_IS_DUMMYSCAN_DATA", "ACQ_IS_PHASE_STABILIZATION_REFERENCE", "ACQ_IS_PHASE_STABILIZATION"])

parallel_calibration profiles are removed but they are required to estimates espirit. (Only ACQ_IS_PARALLEL_CALIBRATION_AND_IMAGING are used)

Should I :

  1. Remove the default value and let the user figure out what flags should be removed
  2. Keep things like that and add in the doc an example which separate calibration data
f = MRIFiles.ISMRMRDFile(path_mrd)
raw = RawAcquisitionData(f)
raw_cal = filter_raw_by_flags(raw,["ACQ_IS_PARALLEL_CALIBRATION","ACQ_IS_PARALLEL_CALIBRATION_AND_IMAGING"])
raw_cal = remove_oversampling(raw_cal)

acq_cal = AcqusitionData(raw_cal)
acq_cal_cc,_ = softwareCoilCompression(acq_cal,10);

maps = espirit(acq_cal_cc, (6, 6, 6), 24)
  1. Remove "ACQ_IS_PARALLEL_CALIBRATION" from default value ?
@aTrotier aTrotier added the bug Something isn't working label Feb 20, 2025
@aTrotier
Copy link
Contributor Author

aTrotier commented Feb 20, 2025

Actually it should be :

raw_cal = filter_raw_by_flags(raw,"ACQ_IS_PARALLEL_CALIBRATION")
raw_cal2 = filter_raw_by_flags(raw,"ACQ_IS_PARALLEL_CALIBRATION_AND_IMAGING")
push!(raw_cal.profiles,raw_cal2.profiles...)

raw_cal = filter_raw_by_flags(raw,["ACQ_IS_PARALLEL_CALIBRATION","ACQ_IS_PARALLEL_CALIBRATION_AND_IMAGING"]) returns profile with both flags

Maybe my interface is not the best 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant