-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean_nist_giab_v2.19
More file actions
executable file
·68 lines (51 loc) · 1.1 KB
/
Copy pathclean_nist_giab_v2.19
File metadata and controls
executable file
·68 lines (51 loc) · 1.1 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/perl -w
use warnings;
use strict;
use POSIX;
use Getopt::Long;
use File::Path;
use File::Basename;
use Pod::Usage;
=head1 NAME
clean_nist_giab_v2.19
=head1 SYNOPSIS
clean_nist_giab_v2.19 [options]
=head1 DESCRIPTION
Adds missing INFO meta information in headers.
=cut
#option variables
my $help;
my $verbose;
my $debug;
#initialize options
Getopt::Long::Configure ('bundling');
if(!GetOptions ('h'=>\$help, 'v'=>\$verbose, 'd'=>\$debug)
|| scalar(@ARGV)!=1)
{
if ($help)
{
pod2usage(-verbose => 2);
}
else
{
pod2usage(1);
}
}
my $inputVCFFile = $ARGV[0];
open(VCF, "zcat $inputVCFFile |") || die "Cannot open $inputVCFFile";
while(<VCF>)
{
chomp;
if (/^#/)
{
if (/^#CHROM/)
{
print "##INFO=<ID=PLNCIIonWG,Number=.,Type=String,Description=\"Genotype likelihoods (PL) for ~80x mean 237bp Ion Torrent exome sequencing from Life Technologies, preceded by filtering info if this dataset was not used due to evidence of bias\"\n";
}
print "$_\n";
}
else
{
print "$_\n";
}
}