genetica:bonngwas_all
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
genetica:bonngwas_all [2013/01/31 13:10] – created tgif | genetica:bonngwas_all [2020/08/04 10:58] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 48: | Line 48: | ||
my $ifile = shift; | my $ifile = shift; | ||
- | |||
die "Must supply input filename!\n" | die "Must supply input filename!\n" | ||
- | |||
(my $bn) = $ifile =~ / | (my $bn) = $ifile =~ / | ||
my $pfile = $bn.' | my $pfile = $bn.' | ||
my $ofile = $bn.' | my $ofile = $bn.' | ||
- | |||
my $tl = int qx/wc -l $ifile | awk {' | my $tl = int qx/wc -l $ifile | awk {' | ||
- | |||
- | |||
open(IPF, "< | open(IPF, "< | ||
- | |||
- | |||
my @pairs; | my @pairs; | ||
- | |||
print " | print " | ||
- | |||
my $l = 0; | my $l = 0; | ||
- | |||
while(< | while(< | ||
(my $a, my $b) = / | (my $a, my $b) = / | ||
Line 76: | Line 66: | ||
my @aps = uniq get_proxies($a, | my @aps = uniq get_proxies($a, | ||
my @bps = uniq get_proxies($b, | my @bps = uniq get_proxies($b, | ||
- | |||
foreach my $ap (sort @aps){ | foreach my $ap (sort @aps){ | ||
foreach my $bp (sort @bps){ | foreach my $bp (sort @bps){ | ||
Line 119: | Line 108: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | 5.- Tras esto ya se puede correr intersnp deuna manera racional. | ||
+ | |||
+ | Para los dos ultimos pasos hemos hecho un script que engloba el procesamiento de un test en todas las DBs. | ||
+ | |||
+ | <code perl isnp4all.pl> | ||
+ | use strict; use warnings; | ||
+ | use File:: | ||
+ | use File:: | ||
+ | |||
+ | my $origpairs = shift; | ||
+ | my @dbs = qw(ADMURimpQC2 ADNIimpQC2 GenADA_impQC2 NIA_AD_impQC2 TGEN_impQC2); | ||
+ | my $sel_template = '/ | ||
+ | (my $test) = $origpairs =~ / | ||
+ | my $w_dir = ' | ||
+ | mkdir $w_dir; | ||
+ | chdir $w_dir; | ||
+ | my $odir = ' | ||
+ | mkdir $odir; | ||
+ | my $tmpsel = ' | ||
+ | foreach my $dbname (@dbs){ | ||
+ | my $targetdb = '/ | ||
+ | my $grpfile = ' | ||
+ | my $order =' | ||
+ | print "Grep $origpairs into $dbname...\n"; | ||
+ | system($order); | ||
+ | print " | ||
+ | open TEMPLATE, "< | ||
+ | open TMPS, "> | ||
+ | my $ofile = $odir.'/' | ||
+ | while (< | ||
+ | s/< | ||
+ | s/< | ||
+ | s/< | ||
+ | s/< | ||
+ | print TMPS " | ||
+ | } | ||
+ | close TMPS; | ||
+ | close TEMPLATE; | ||
+ | # my $order = ' | ||
+ | # | ||
+ | $order = ' | ||
+ | print " | ||
+ | system($order); | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Para ello utilizamos la plantilla, | ||
+ | |||
+ | < | ||
+ | $ cat selection_file_template.txt | ||
+ | BFILE < | ||
+ | TWO_MARKER 1 | ||
+ | PRINTTOP 50000 | ||
+ | TEST < | ||
+ | COMBIFILE < | ||
+ | COMBILIST 1 | ||
+ | OUTPUTNAME < | ||
+ | END | ||
+ | </ | ||
+ |
genetica/bonngwas_all.1359637801.txt.gz · Last modified: 2020/08/04 10:48 (external edit)