MRIcloudT1volumetrics is an R package for working with the output of MRIcloud T1 volumetric data. As of this writing, the package has three purposes:

  1. It text parses and reads in data from the most popular T1 processing algorithms through the function readSubject
  2. It can convert that data into a dataframe.
  3. It can read in a series of files and concatentate them into a dataframe

Here’s an example of basic reading in of one subject.

library(MRIcloudT1volumetrics)
fileLoc = system.file("extdata", "kirby127a_3_1_ax_283Labels_M2_corrected_stats.txt",
 package="MRIcloudT1volumetrics")
test = readSubject(fileLoc)
length(test)
## [1] 10
test[[1]]
##                  rawid             roi volume min max     mean     std type
## 1 kirby127a_3_1_ax.img Telencephalon_L 531111   0 374 128.3013 51.8593    1
## 2 kirby127a_3_1_ax.img Telencephalon_R 543404   0 300 135.0683 53.6471    1
## 3 kirby127a_3_1_ax.img  Diencephalon_L   9683  15 295 193.5488 32.2733    1
## 4 kirby127a_3_1_ax.img  Diencephalon_R   9678  10 335 193.7051 32.7869    1
## 5 kirby127a_3_1_ax.img   Mesencephalon  10268  55 307 230.8583 29.2249    1
## 6 kirby127a_3_1_ax.img   Metencephalon 159402   2 299 138.5200 52.2241    1
## 7 kirby127a_3_1_ax.img  Myelencephalon   4973  12 286 199.8497 36.6501    1
## 8 kirby127a_3_1_ax.img             CSF 109776   0 258  33.0193 26.3262    1
##   level
## 1     1
## 2     1
## 3     1
## 4     1
## 5     1
## 6     1
## 7     1
## 8     1