neuroimagen:facehbi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
neuroimagen:facehbi [2019/06/05 08:31] – [Reprocesamiento] osotolongo | neuroimagen:facehbi [2020/08/04 10:58] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 352: | Line 352: | ||
**Y ahora viene lo bueno pues hay que arreglar y/o rehacer toda la visita 2 por los posibles errores producto de esto.** | **Y ahora viene lo bueno pues hay que arreglar y/o rehacer toda la visita 2 por los posibles errores producto de esto.** | ||
+ | m( **otro problema** hay algunos drop-outs que no he conseguido identificar y estan repetidos en la visita 2. Por suerte, alguien los ha encontrado pormi ;-). | ||
+ | |||
+ | <code bash> | ||
+ | [osotolongo@detritus f2cehbi]$ cat delete.txt | ||
+ | F172 | ||
+ | F176 | ||
+ | F191 | ||
+ | </ | ||
+ | Las lineas que habria que borrar, | ||
+ | <code bash> | ||
+ | [osotolongo@detritus f2cehbi]$ for x in `cat delete.txt`; | ||
+ | dates_mri.csv: | ||
+ | gdata_mri.csv: | ||
+ | guia_mri.csv: | ||
+ | ids.csv: | ||
+ | info_mri.csv: | ||
+ | info_mri_proper.csv: | ||
+ | internos.csv: | ||
+ | dates_mri.csv: | ||
+ | gdata_mri.csv: | ||
+ | guia_mri.csv: | ||
+ | ids.csv: | ||
+ | info_mri.csv: | ||
+ | info_mri_proper.csv: | ||
+ | internos.csv: | ||
+ | dates_mri.csv: | ||
+ | gdata_mri.csv: | ||
+ | guia_mri.csv: | ||
+ | ids.csv: | ||
+ | info_mri.csv: | ||
+ | info_mri_proper.csv: | ||
+ | internos.csv: | ||
+ | </ | ||
+ | //Not so hard//, | ||
+ | <code bash> | ||
+ | [osotolongo@detritus f2cehbi]$ for x in `cat delete.txt`; | ||
+ | </ | ||
+ | :-P | ||
==== FBB ==== | ==== FBB ==== | ||
one random file by subject, | one random file by subject, | ||
Line 439: | Line 477: | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== Integrar fechas con datos ==== | ||
+ | <code perl join_conv.pl> | ||
+ | # | ||
+ | |||
+ | use strict; | ||
+ | use warnings; | ||
+ | use Data::Dump qw(dump); | ||
+ | |||
+ | my %fdates = ( FBBv0 => " | ||
+ | FBBv2 => " | ||
+ | MRIv0 => " | ||
+ | MRIv2 => " | ||
+ | ); | ||
+ | |||
+ | my %ofiles = ( FBBv0 => " | ||
+ | FBBv2 => " | ||
+ | MRIv0 => " | ||
+ | MRIv2 => " | ||
+ | ); | ||
+ | |||
+ | my $info_file = " | ||
+ | my %internos; | ||
+ | |||
+ | open IIF, "< | ||
+ | while(< | ||
+ | if(/ | ||
+ | (my $fnumber, my $inumber) = / | ||
+ | $internos{$fnumber} = $inumber; | ||
+ | } | ||
+ | } | ||
+ | close IIF; | ||
+ | |||
+ | my %dates; | ||
+ | foreach my $fdate (sort keys %fdates){ | ||
+ | open IDF, "< | ||
+ | while(< | ||
+ | if(/ | ||
+ | (my $fnumber, my $date) = / | ||
+ | (my $cdate = $date) =~ s/ | ||
+ | $dates{$fnumber}{$fdate} = $cdate; | ||
+ | } | ||
+ | } | ||
+ | close IDF; | ||
+ | open ODF, "> | ||
+ | print ODF " | ||
+ | foreach my $fnumber (sort keys %internos){ | ||
+ | print ODF " | ||
+ | if (exists $internos{$fnumber}){ | ||
+ | print ODF " | ||
+ | if (exists($dates{$fnumber}) && exists($dates{$fnumber}{$fdate})){ | ||
+ | print ODF " | ||
+ | }else{ | ||
+ | print ODF " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | close ODF; | ||
+ | } | ||
+ | | ||
+ | </ | ||
+ | < | ||
+ | osotolongo@daisy: | ||
+ | facehbi_mri.csv | ||
+ | osotolongo@daisy: | ||
+ | osotolongo@daisy: | ||
+ | </ | ||
+ | |||
+ | jodidos problemas de permisos m( | ||
+ | < | ||
+ | [root@detritus ~]# chmod g+rwx / | ||
+ | ..... | ||
+ | [osotolongo@detritus facehbi]$ ls / | ||
+ | bem label labels | ||
+ | [osotolongo@detritus facehbi]$ cat soloeste.csv | ||
+ | 0003;smc | ||
+ | [osotolongo@detritus facehbi]$ precon.pl -cut soloeste.csv facehbi | ||
+ | </ | ||
+ | |||
===== Reprocesamiento ===== | ===== Reprocesamiento ===== | ||
neuroimagen/facehbi.1559723494.txt.gz · Last modified: 2020/08/04 10:46 (external edit)