neuroimagen:facehbi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
neuroimagen:facehbi [2019/06/07 09:03] – [Pegando] osotolongo | neuroimagen:facehbi [2019/06/07 09:06] – [Integrar fechas con datos] osotolongo | ||
---|---|---|---|
Line 439: | Line 439: | ||
</ | </ | ||
+ | |||
+ | |||
==== Integrar fechas con datos ==== | ==== 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: | osotolongo@daisy: | ||
Line 448: | Line 509: | ||
</ | </ | ||
- | jodido | + | jodidos |
+ | < | ||
+ | [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.txt · Last modified: 2020/08/04 10:58 by 127.0.0.1