Skip to content

Commit

Permalink
Update Stats2Table_fs7.R
Browse files Browse the repository at this point in the history
Edit lines to read from aseg in FS7
  • Loading branch information
eduardklap authored Feb 23, 2021
1 parent a276d5f commit 4319a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Stats2Table/Stats2Table_fs7.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ readAseg <- function(){
readMetaAseg <- function(){
# The Aseg file of a subject is read in
# Its metadata containing 'lhCortex' etc. and their volume are saved
aseg_meta <- readLines("./stats/aseg.stats", n=35)[16:36] #Edited for fs7.0.0 from line 16 iso line 15
aseg_meta <- readLines("./stats/aseg.stats", n=35)[15:34] #Edited for fs7.0.0 from line 15 iso line 14
meta1 <- gsub("# ", "", aseg_meta)
meta <- t(data.frame(strsplit(meta1, ",")))[,c(2,4)]
metaTable <- t(data.frame(meta[,2]))
Expand Down

0 comments on commit 4319a8c

Please sign in to comment.