-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvcf_anno.pl
38 lines (33 loc) · 933 Bytes
/
vcf_anno.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
=pod
this script write for the database file info extract
Models:
=cut
#!/usr/bin/perl
#use strict;
use warnings;
my $VCF_file = shift @ARGV;
my $out_file = shift;
open FH1, "$VCF_file", or die "can not open it\n";
open OUT,">$out_file", or die "can not open it\n";
readline FH1;
#
my $Gene;
my $G1000;
my $Filter;
my $Modle_ID;
my $m = "LU-01-1004";
my $n = "EGFR";
my $i = "PASS";
#print OUT "$i\n";
while (<FH1>){
my @info = split /\t/;
# chomp $info;
$Modle_ID = $info[0];
$Filter = $info[6];
$G1000 = $info[8];
$Gene = $info[11];
#print $Gene;
if(($Gene eq $n) && ($Modle_ID eq $m)){
print OUT "$info[0]\t$info[6]\t$info[8]\t$info[11]\t$info[-1]\n";}
#print OUT "$info[0]\t$info[6]\t$info[8]\t$info[11]\t$info[-1]\n";}
}