This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
neuroimagen:byicv [2015/01/28 10:02] osotolongo |
neuroimagen:byicv [2020/08/04 10:58] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to correct by Intracraneal | + | ====== How to correct by Intracranial |
+ | {{ : | ||
- | I'm going to suppose you did the pipeline thing over your MRI images and you already have the // | + | I'm going to suppose you did the pipeline thing over your MRI images and you already have the // |
+ | <code bash> | ||
+ | $ sed ' | ||
+ | </ | ||
- | Let's say we want to get the hippocampus volume (HV) correct | + | Let's say we want to get the hippocampus volume (HV) corrected |
- | Now first step is to fit a straight line for HV //vs// ICV and the ICV mean value (< | + | Now first step is to fit a straight line for HV //vs// ICV and the ICV mean value (< |
+ | |||
+ | Now we need to get the data. Let's try it in R. | ||
+ | <code R> | ||
+ | x <- read.csv(" | ||
+ | x$HV = 0.5*(x$" | ||
+ | a <- lm(x$HV~x$" | ||
+ | b=a$coefficients[[2]] | ||
+ | x$aHV = x$HV - b*(x$EstimatedTotalIntraCranialVol_eTIV - mean(x$EstimatedTotalIntraCranialVol_eTIV, | ||
+ | write.csv(x, | ||
+ | </ | ||
+ | |||
+ | ==== For ADNIMERGE package ==== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | El paquete ADNIMERGE provee los valores de Hipoocampo (suma de ambos) e ICV. Puede corregirse directamente y dividirse entre 2 para obtener valores similares. | ||
+ | |||
+ | <code R> | ||
+ | library(" | ||
+ | a <- lm(adnimerge$Hippocampus~adnimerge$ICV) | ||
+ | adnimerge$adj.Hippocampus = 0.5*(adnimerge$Hippocampus - a$coefficients[[2]]*(adnimerge$ICV - mean(adnimerge$ICV, | ||
+ | </ | ||
+ | |||
+ | Este procedimiento se debera aplicar para realizar la replica de cualquier estudio donde se utilize la semisuma corregida de ambos hipocampos. |