neuroimagen:fs_long_analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
neuroimagen:fs_long_analysis [2020/07/15 08:49] – [añadiendo variables] osotolongo | neuroimagen:fs_long_analysis [2020/08/16 10:25] (current) – [Paired Analysis] osotolongo | ||
---|---|---|---|
Line 2: | Line 2: | ||
https:// | https:// | ||
+ | |||
+ | https:// | ||
Tengo dos puntos del proyecto FACEHBI asi que puedo hacer un proyecto longitudinal (apenas). A tener en cuenta, | Tengo dos puntos del proyecto FACEHBI asi que puedo hacer un proyecto longitudinal (apenas). A tener en cuenta, | ||
Line 601: | Line 603: | ||
ck.mgh --isec-labels lh.lfacehbi.fsaverage.cortex.label | ck.mgh --isec-labels lh.lfacehbi.fsaverage.cortex.label | ||
... | ... | ||
+ | [osotolongo@detritus lfacehbi]$ mri_glmfit --osgm --glmdir lh.lfacehbi.thickness-pc1.fwhm15 --y lh.lfacehbi.thickness-pc1.stack.fwhm15.mgh --label lh.lfacehbi.fsaverage.cortex.label --surf fsaverage lh | ||
+ | [osotolongo@detritus lfacehbi]$ mri_glmfit-sim --glmdir lh.lfacehbi.thickness-pc1.fwhm15/ | ||
</ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | < | ||
+ | [osotolongo@detritus lfacehbi]$ cat lh.lfacehbi.thickness-pc1.fwhm15/ | ||
+ | # Cluster Growing Summary (mri_surfcluster) | ||
+ | # $Id: mri_surfcluster.c, | ||
+ | # $Id: mrisurf.c,v 1.781.2.6 2016/12/27 16:47:14 zkaufman Exp $ | ||
+ | # CreationTime 2020/ | ||
+ | # cmdline mri_surfcluster.bin --in lh.lfacehbi.thickness-pc1.fwhm15// | ||
+ | # cwd / | ||
+ | # sysname | ||
+ | # hostname detritus.fundacioace.com | ||
+ | # machine | ||
+ | # FixVertexAreaFlag 1 | ||
+ | # FixSurfClusterArea 1 | ||
+ | # | ||
+ | # Input lh.lfacehbi.thickness-pc1.fwhm15// | ||
+ | # Frame Number | ||
+ | # srcsubj fsaverage | ||
+ | # hemi lh | ||
+ | # surface white | ||
+ | # group_avg_surface_area 82220 | ||
+ | # group_avg_vtxarea_loaded 1 | ||
+ | # annot aparc | ||
+ | # SUBJECTS_DIR / | ||
+ | # SearchSpace_mm2 75466.5 | ||
+ | # SearchSpace_vtx 147613 | ||
+ | # Bonferroni 2 | ||
+ | # Minimum Threshold 4 | ||
+ | # Maximum Threshold infinity | ||
+ | # Threshold Sign neg | ||
+ | # AdjustThreshWhenOneTail 1 | ||
+ | # CW PValue Threshold: 0.05 | ||
+ | # Area Threshold | ||
+ | # CSD thresh | ||
+ | # CSD nreps 10000 | ||
+ | # CSD simtype | ||
+ | # CSD contrast NA | ||
+ | # CSD confint | ||
+ | # Overall max 3.29752 at vertex 122410 | ||
+ | # Overall min -6.1539 at vertex 79545 | ||
+ | # NClusters | ||
+ | # FixMNI = 0 | ||
+ | # | ||
+ | # ClusterNo | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ---- | ||
**Voy a intentar algo aqui** | **Voy a intentar algo aqui** | ||
Line 634: | Line 695: | ||
<code bash> | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ mris_preproc --fsgd qdec.fsgd --target fsaverage --hemi lh --meas thickness --out lh.long.thickness.00.mgh | ||
+ | [osotolongo@detritus lfacehbi]$ mri_surf2surf --hemi lh --s fsaverage --sval lh.long.thickness.00.mgh --fwhm 10 --cortex --tval lh.long.thickness.10.mgh | ||
+ | </ | ||
+ | y lanzo el analisis ahora, | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ mri_glmfit --fsgd qdec.fsgd --glmdir lh.long.thickness.fwhm10 --y lh.long.thickness.10.mgh --C centiloid.mtx --C apoe.mtx --C years.mtx --C age.mtx --surf fsaverage lh | ||
</ | </ | ||
+ | Voy a ver, | ||
+ | |||
+ | Edad: | ||
+ | |||
+ | <code bash> | ||
+ | $ freeview -f / | ||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | APOEe4: | ||
+ | |||
+ | <code bash> | ||
+ | $ freeview -f / | ||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | ===== Paired Analysis ===== | ||
+ | |||
+ | Esto es una especie de ANOVA simplificada para dos puntos. | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Variables: | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ join -t";" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | 7 age | ||
+ | | ||
+ | | ||
+ | 10 CLv0 | ||
+ | 11 CLv2 | ||
+ | 12 ApoeE4 | ||
+ | </ | ||
+ | |||
+ | Los pares son asi entonces, | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ join -t";" | ||
+ | [osotolongo@detritus lfacehbi]$ sed -i ' | ||
+ | [osotolongo@detritus lfacehbi]$ head pairs.fsgd | ||
+ | GroupDescriptorFile 1 | ||
+ | Class Main | ||
+ | Input facehbi_0001 Main 71 8 0 -5.5932502480232 1 | ||
+ | Input f2cehbi_0001 Main 73.14 8 0 -3.01177159588474 1 | ||
+ | Input facehbi_0002 Main 70 12 1 12.0568081099059 0 | ||
+ | Input f2cehbi_0002 Main 72.3 12 1 9.07793600565404 0 | ||
+ | Input facehbi_0003 Main 70 8 0 -7.34233394547346 0 | ||
+ | Input f2cehbi_0003 Main 72.12 8 0 -7.74822070800795 0 | ||
+ | Input facehbi_0005 Main 68 20 1 -8.16586361015402 0 | ||
+ | Input f2cehbi_0004 Main 70.05 20 1 39.4041710834628 0 | ||
+ | </ | ||
+ | |||
+ | y empezamos, | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ mris_preproc --target fsaverage --hemi lh --meas thickness --out lh.paired-diff.thickness.mgh --fsgd pairs.fsgd --paired-diff | ||
+ | nsubjects = 318 | ||
+ | tmpdir is ./ | ||
+ | / | ||
+ | Log file is lh.paired-diff.thickness.mris_preproc.log | ||
+ | ... | ||
+ | ... | ||
+ | ... | ||
+ | [osotolongo@detritus lfacehbi]$ mri_surf2surf --s fsaverage --hemi lh --fwhm 5 --sval lh.paired-diff.thickness.mgh --tval lh.paired-diff.thickness.sm05.mgh | ||
+ | ... | ||
+ | ... | ||
+ | ... | ||
+ | |||
+ | </ | ||
+ | |||
+ | hacemos los //.mtx//, | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ echo "0 1 0 0 0 0" > age.mtx | ||
+ | </ | ||
+ | |||
+ | cada variable a analizar debe tener uno, | ||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ cat mean.mtx | ||
+ | 1 0 0 0 0 0 | ||
+ | [osotolongo@detritus lfacehbi]$ cat age.mtx | ||
+ | 0 1 0 0 0 0 | ||
+ | [osotolongo@detritus lfacehbi]$ cat apoe.mtx | ||
+ | 0 0 0 0 0 1 | ||
+ | [osotolongo@detritus lfacehbi]$ cat centiloid.mtx | ||
+ | 0 0 0 0 1 0 | ||
+ | </ | ||
+ | |||
+ | y hay que hacer el segundo archivo //.fsgd//. Primero voy a eliminar lso caracteres raros que de alguan manera han venido del archivo windows original. | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ sed ' | ||
+ | [osotolongo@detritus lfacehbi]$ tr -d ' | ||
+ | </ | ||
+ | |||
+ | y ahora elimino las referencias al segundo punto y cambio el nombre del primer punto, para tener nombres que no existan aun, | ||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ grep -v f2cehbi pairs_ok.fsgd | sed ' | ||
+ | [osotolongo@detritus lfacehbi]$ sed -i ' | ||
+ | </ | ||
+ | |||
+ | y ahora el //glmfit//, | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ mri_glmfit --glmdir lh.paired-diff --y lh.paired-diff.thickness.sm05.mgh --fsgd pair_diff.fsgd --C mean.mtx --C age.mtx --C apoe.mtx --C centiloid.mtx --surf fsaverage lh | ||
+ | </ | ||
+ | |||
+ | y obtenemos un analisis para cada variable, | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus lfacehbi]$ tree -d lh.paired-diff/ | ||
+ | lh.paired-diff/ | ||
+ | ├── age | ||
+ | ├── apoe | ||
+ | ├── centiloid | ||
+ | └── mean | ||
+ | |||
+ | 4 directories | ||
+ | [osotolongo@detritus lfacehbi]$ tree lh.paired-diff/ | ||
+ | lh.paired-diff/ | ||
+ | ├── C.dat | ||
+ | ├── cnr.mgh | ||
+ | ├── efficiency.dat | ||
+ | ├── F.mgh | ||
+ | ├── gamma.mgh | ||
+ | ├── gammavar.mgh | ||
+ | ├── maxvox.dat | ||
+ | ├── pcc.mgh | ||
+ | ├── sig.mgh | ||
+ | └── z.mgh | ||
+ | |||
+ | 0 directories, | ||
+ | |||
+ | </ | ||
+ | **Desgraciadamente sin resultados** m( |
neuroimagen/fs_long_analysis.1594802967.txt.gz · Last modified: 2020/08/04 10:45 (external edit)