Mercurial > repos > geert-vandeweyer > dc_genotyper
comparison DC_Genotyper.pl @ 20:8262299f8f3c draft
Fixed loading of dbsnp after bcftools-tabix switch.
author | geert-vandeweyer |
---|---|
date | Mon, 29 Sep 2014 07:17:11 -0400 |
parents | 8938f339ed37 |
children |
comparison
equal
deleted
inserted
replaced
19:8938f339ed37 | 20:8262299f8f3c |
---|---|
205 open SNP, ">$wd/dbsnp.txt"; | 205 open SNP, ">$wd/dbsnp.txt"; |
206 ## dummy line on chr zero to prevent R issues on empty file. | 206 ## dummy line on chr zero to prevent R issues on empty file. |
207 print SNP "chr0\t1\t.\tA\tT\n"; | 207 print SNP "chr0\t1\t.\tA\tT\n"; |
208 close SNP; | 208 close SNP; |
209 } | 209 } |
210 open IN, "$wd/dbsnp.txt"; | |
211 while (<IN>) { | |
212 chomp; | |
213 my @p = split(/\t/,$_); | |
214 $dbsnp{$p[0].'-'.$p[1]} = $p[3].'-'.$p[4].'-'.$p[2]; | |
215 } | |
216 close IN; | |
210 | 217 |
211 ## now process the bam file. | 218 ## now process the bam file. |
212 mkdir "$wd/WIGS/"; | 219 mkdir "$wd/WIGS/"; |
213 my $bam :shared; | 220 my $bam :shared; |
214 $bam = $opts{'b'}; | 221 $bam = $opts{'b'}; |