Skip to content

Commit a94b031

Browse files
authored
add header
1 parent c565b13 commit a94b031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/vcf2vcf_forFreec.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969

7070
# to (Freq >0.01 by default; $minFreq) and keep only single nucleotide variants ($keepSingleOnly)
7171

72+
##INFO=<ID=MUT,Number=0,Type=Flag,Description="Is mutation (journal citation, explicit fact): a low frequency variation that is cited in journal and other reputable sources">
7273
#chr1 10177 rs367896724 A T . . RS=367896724;TOPMED=0.76728147298674821,0.23271852701325178
7374
#chr1 10352 rs555500075 T G . . RS=555500075;TOPMED=0.86356396534148827,0.13643603465851172
7475

@@ -83,7 +84,7 @@
8384

8485
while (<FILE>) {
8586
$lines++;
86-
next if (m/^\#\#/);
87+
if (m/^\#/) {print $_ ; next;}
8788
chomp;
8889
($chr,$start,$ID,$refAllele,$AltAllele,$dot,$dot2,$info) = split /\t/;
8990
$totalCount++;
@@ -122,4 +123,3 @@
122123

123124

124125
print STDERR "Read: $filename\tlines: $lines;\ttotal sites: $totalCount\taccepted sites: $numberOfSites\n";
125-

0 commit comments

Comments
 (0)