Get list of transforms that would likely be made with a specific `outprefix`

transformlist_from_outprefix(
  outprefix,
  typeofTransform = "SyN",
  only_exists = FALSE
)

Arguments

outprefix

If you used this in antsRegistration, then what would be the filenames of the transforms

typeofTransform

transformation to be used in registration

only_exists

if TRUE, only those that exists will be returned.

Value

A list of character vectors

Examples

outprefix = tempfile() transformlist_from_outprefix(outprefix)
#> $fwdtransforms #> [1] "/tmp/RtmpajwuFn/file26904f985abe1Warp.nii.gz" #> [2] "/tmp/RtmpajwuFn/file26904f985abe0GenericAffine.mat" #> #> $invtransforms #> [1] "/tmp/RtmpajwuFn/file26904f985abe0GenericAffine.mat" #> [2] "/tmp/RtmpajwuFn/file26904f985abe1InverseWarp.nii.gz" #>
transformlist_from_outprefix(outprefix, typeofTransform = "Rigid")
#> $fwdtransforms #> [1] "/tmp/RtmpajwuFn/file26904f985abe0GenericAffine.mat" #> #> $invtransforms #> [1] "/tmp/RtmpajwuFn/file26904f985abe0GenericAffine.mat" #>
res = transformlist_from_outprefix(outprefix, typeofTransform = "Rigid", only_exists = TRUE) stopifnot(is.null(res))