Blame view

tools/scripts/KeepConfZone.pl 328 Bytes
e6be5137b   Jean-François Rey   reinitialized pro...
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
  #!/usr/bin/perl
  
  use strict;
  use warnings;
  
  # file: KeepConfZone.pl
  # brief: Print from stdin lines with conf grater or equal to 0.6
  #
  
  while(<STDIN>)
  {
      #chomp($_);
      my @sctm = split(/ /,$_);
      my $conf = $sctm[5];
  
      if($conf >= 0.6)
      {
          print $_;
      }
      else
      {
         print "# # # # #
  ";
      }
  }