mincWriteVolume {RMINC} | R Documentation |
Writes a MINC volume to file.
mincWriteVolume(buffer, "filename.mnc", "optionalColumn")
buffer |
The data to be written to file. Usually the result of mincLm or some such command. |
filename |
The filename to which to write the data to. |
column |
Optional name of the column of a multidimensional MINC object to write out. By default the first column is used. |
like.filename |
An existing MINC filename which has the same dimensions as the data to be written out. Normally this information is stored inside MINC data objects. |
This function takes numeric data, usually the results computed from one of the other mincFunctions, and writes it to file so that it can be viewed or manipulated with the standard MINC tools.
mincLm,mincFDR,mincMean, mincSd
## Not run: # read the text file describing the dataset gf <- read.csv("control-file.csv") # run a linear model relating the data in all voxels to Genotype vs <- mincLm(filenames ~ Genotype, gf) # see what's in the results vs # write the results to file mincWriteVolume(vs, "output.mnc", "Genotype+") ## End(Not run)