-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvector_file_checkup.pl
52 lines (44 loc) · 1.26 KB
/
vector_file_checkup.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/perl
@input = ();
########## global variables ####################
$usage="\nUsage: \.\/vector_file_checkup\.pl \[file name\]\n\n";
$proj = $ARGV[0] || die "$usage\n";
open(KEY,"<$proj");
$iter = 0;
@input = '';
@inputold = '';
while(defined($origline=<KEY>)) {
$line = $origline;
chomp $line;
for($line) { s/^\s+//; s/\s+$//; s/\s+/ /g; }
@input = split(/ /,$line);
$arraysize = scalar(@input);
$pron = @input[0];
$runn = @input[1];
$clon = @input[2];
$timn = @input[3];
$c7n = @input[7];
$c13n = @input[13];
$c15n = @input[15];
# look for identical times #
if($timn == $timo){ print STDOUT "$pron $runn $clon $timn redundant time\n"; }
# compare columns 7, 13 & 15 to determine if identical values were used #
if(($c7n == $c7o)&&($c13n == $c13o)&&($c15n == $c15o)){ print STDOUT "$pron $runn $clon $timn identical values\n"; }
# look for time jumps #
$diff = $timn - $timo;
if($diff > 100.1){
if($clon == $cloo){
print STDOUT "$pron $runn $clon $timn timejump\n";
}
}
$proo = @input[0];
$runo = @input[1];
$cloo = @input[2];
$timo = @input[3];
$c7o = @input[7];
$c13o = @input[13];
$c15o = @input[15];
@inputold = @input;
$iter++;
}
close(KEY);