03 Jul

Same Job, Different Seed

Often, it is desirable to submit the same job to a computing cluster, changing only a few variables each time. For example, you may wish to run a simulation where random variables are generated from the same distribution, but each time with a different seed. Here, we will be generating 100 Read More

27 Aug

Converting .dcm to .nii Image Format in R

## This code reads a dicom image, converts it to a nifit and then writes the nifit file.
##  Requires the packages oro.dicom and oro.nifti.
## Elizabeth Sweeney
## August 26th 2013


dicom <- readDICOM(‘~/folder’, flipud = FALSE)
nifti <- dicom2nifti(dicom)
writeNIfTI(nifti, filename = Read More