sortDicomDirectory(directory, deleteOriginals = FALSE, sortOn = "series",
useSeriesTime = FALSE)
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"
, "subject"
or "date"
, or any combination in the order desired. This will be the basis of the sort, which will be nested if more than one type is specified.TRUE
, use the series time rather than number as the identifier. This can be more reliable if the files are from multiple scan sessions.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.
newMriImageFromDicomDirectory
for reading DICOM files into an MriImage
object.