sortDicomDirectory(directory, deleteOriginals = FALSE, sortOn = "series")
TRUE
, then the source files will be deleted after being copied to their new locations, making the operation a move rather than a copy. Nothing will be deleted if the copy fails."series"
or "subject"
, or both in the order desired. This will be the basis of the sort, which will be nested if both types are specified.J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18.
newMriImageFromDicom
for reading DICOM files into an MriImage
object.